Skip to content

About

The newsroom behind Machine Intelligence, the AI department magazine at NFC IET Multan.

Topics

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Machine Intelligence App

The newsroom behind Machine Intelligence, the magazine of the Department of Artificial Intelligence at NFC IET Multan.

The newsroom collects stories from an explicit trusted-feed allowlist twice a day, asks Gemini to summarize and arrange approved AI news, and builds a complete private LaTeX/PDF draft for editors to review. An issue cannot be published until it has been open for at least 14 days, trusted-source collection succeeds, all AI and editor queues are clear, every approved story is included, the editor's note is reviewed, and the current PDF is compiled.

Foundation status

  • Public site: home, issue archive and issue detail, About, How it is made, Privacy, sitemap, robots, Open Graph image, and a custom not-found page.
  • Editor desk: Supabase email-and-password sign-in for approved addresses on the editor list; Supabase-backed story review and quarantine; editable issue title, publication masthead, cover and back-cover copy, theme, section names, slot targets, supervisor, editor credits, and editor note.
  • Supabase: editor, edition, run, source, article, story, and image tables; row-level security; public issues and private drafts buckets; vector extension.
  • Ingest: authenticated twice-daily RSS collection from explicitly trusted sources, robots-aware article text extraction, URL-hash deduplication, conservative title-based grouping, Gemini summaries and scoring, and a numeric claim check against stored source text.
  • Draft builder: Gemini arranges approved stories within their editor-assigned sections, chooses story order and presentation, and can draft an editor note using structured JSON. Editable section slot targets guide the layout; overflow stories become briefs so no approved story is dropped. The app validates the plan, renders trusted TeX with escaped story text, and stores the source file in the private drafts bucket.
  • Publication: GitHub Actions compiles the current private draft PDF after each scheduled ingest attempt. Editors get a visible checklist and a disabled publish button until the 14-day and editorial checks pass. Publishing atomically freezes the issue, marks its stories used, and opens the next draft.
  • Automation: CI checks, twice-daily 08:00/20:00 Pakistan-time ingest, automatic draft PDF compilation, and a LaTeX reference compile workflow.
  • Editorial control: Gemini grounds stories in trusted source text and flags unsupported numbers. Editors still need to inspect the linked evidence and approve the stories and editor's note; AI output is not automatically published.

Stack

Next.js App Router, React, TypeScript, Tailwind CSS, Supabase Auth/Postgres/Storage, Google GenAI, GitHub Actions, Vercel, and TeX Live.

Development

Use Node.js 26.13.1, matching .nvmrc.

nvm install
nvm use
npm ci
cp .env.example .env.local
npm run dev

The public site can show its sample preview without Supabase credentials. Sign-in, the editor desk, and ingestion need the required values in .env.local. See the setup guide and the ingestion notes.

npm run lint
npm run typecheck
npm run build

Project documents

Project layout

app/                   public pages, editor desk, and API routes
app/icon.svg           supplied magazine favicon and app icons
components/            shared site, editor, and UI components
config/                magazine identity, sections, and slot counts
content/site.ts        public and editor-facing copy
lib/data/              clearly labeled sample issue and story data
lib/ingest/            feed collection, story enrichment, and scoring
lib/magazine/          editable template, AI layout planning, and safe TeX rendering
public/brand/          supplied Machine Intelligence logo pack
latex/templates/       source template used by the issue renderer
supabase/migrations/   database schema and access policies
.github/workflows/     CI, ingest request, and LaTeX reference checks

A Coding Moves project.

Contributions

Contributions are for current NFC-IET students. See CONTRIBUTING.md.

People

  • Supervised by: Dr. Muhammad Siddique, Head of Department, AI, NFC IET Multan
  • Built and maintained by: Muawiya Amir, student developer and code owner, AI Department, NFC IET Multan (2k24bsai72@undergrad.nfciet.edu.pk)
  • Editors: Muawiya Amir, Faizan Ishfaq, Shazada M. Umar

A Coding Moves project.

License

The code is released under the MIT License (see LICENSE.md). The magazine content, the Machine Intelligence name, and the department's design belong to the Department of Artificial Intelligence, NFC IET Multan, and are not covered by the MIT License.

About

The newsroom behind Machine Intelligence, the AI department magazine at NFC IET Multan.

Topics

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages