Emmanuel BalogunFrontend & Full-Stack Developer
--:--:-- WAT

10AI · News tool

AI News Surface

Live headlines turned into short AI-written articles you can question

A Next.js app that pulls current headlines from NewsAPI, uses a Groq-hosted Llama model to expand one into a short article, and lets the reader ask follow-up questions about it.

Year
2026
Role
Frontend developer · AI integration
Stack
Next.js 16 (App Router) · React 19 · TypeScript · Tailwind CSS v4 · Groq SDK (Llama 3.3 70B) · NewsAPI · Vercel
A — The problem

Headlines on their own say little, and full articles take time to read. The tool tests whether an AI can turn a headline into a short, readable explainer and then answer questions about it.

B — What it does
  • 01Fetch trending headlines from a randomly chosen category so the feed stays varied.
  • 02Generate a short, roughly 250-word article from a selected headline.
  • 03Ask follow-up questions answered using that article as context.
C — Decisions & trade-offs
  1. D-01

    Keep API keys on the server

    All Groq and NewsAPI calls go through Next.js API routes, so the browser never sees a key, and each route checks its keys are configured before doing any work.

    Trade-offEvery action needs a server round trip, but the keys cannot leak from the client bundle.

  2. D-02

    Scope the chat to the article

    Follow-up questions are sent with the generated article as context, keeping answers about the story on screen rather than open-ended chat.

    Trade-offAnswers are limited to what the article says, which is safer but less helpful for broader questions.

D — Outcome
3API routes: trending, article generation and Q&A
Livepublic deployment
E — Known limits
  • AI-generated text can be wrong, so it still needs source checking before anyone relies on it.
  • No saved history of generated articles yet.