Built for Digital Media · Next.js 16 · RSS ingestion · Groq summaries · Vercel
EkJhalak News
A bilingual news reader for Nepal. It reads the public feeds of the major Nepali and international newsrooms, removes duplicate stories, and shows each story in Nepali or English with a model-written summary and translation that the site says plainly are not reporting. Filter by category, Nepal or world, and day, week or month, switch themes, and get a morning email digest. Built with Next.js 16 and deployed on Vercel at ekjhalak.news.
RSS Adapters → Deduplicator → Groq Summaries → Bilingual UI

Role
Full-Stack Developer
Duration
Ongoing since March 2026
Tech Stack
The Problem
Nepali news has become tiring to follow: serious reporting is buried in social timelines, clips arrive without context, and the same story reaches a reader five times from five outlets, in two languages.
The goal was a quiet reader that gathers the stories from trusted newsrooms, shows each one once, makes it readable in either language, and sends people to the publisher for the full article.
My Approach
- Sources. A registry of 38 Nepali and international newsrooms, 23 of them active, each with a language, categories, a priority and an on or off switch. RSS 2.0, Atom and RSS 1.0 feeds are fetched in parallel with a timeout per source, and a failing source never affects the others.
- Normalising. Each item gets a fingerprint from its cleaned URL (tracking parameters stripped), and items dated in the future are rejected.
- De-duplication in two passes: an exact URL match, then a title similarity (Jaccard, threshold 0.45) inside a two-hour window, with the higher-priority source's version kept. The threshold was set from a measurement recorded in the README: in a live feed of 475 stories the two closest real headlines scored 0.50.
- Summaries and translation. A language model on Groq writes a short summary in the story's own language and a translation into the other. A translation in the wrong script is discarded, and a publish policy withholds a story that lacks the translated title or summary it requires. The editorial page states that these are model output.
- Reading. Next.js 16 with five-minute caching and revalidation, category, Nepal and world views, day, week and month ranges, pagination, a Worth your time list ranked by newsroom coverage, light and dark themes, and an interface in Nepali or English.
- Newsletter. A morning digest through Resend, with signed subscriber tokens that expire, sent on a schedule timed for early morning in Kathmandu.
- Quality gates. A verify pipeline (lint, type check, unit tests, a WCAG contrast check in both themes and a dependency audit), mutation checks on the security-sensitive code, and Playwright visual-regression baselines.
Results & Impact
Re-run on 2026-11-14 in a scratch copy: lint and the type check are clean, 239 unit tests pass, and the WCAG 2.1 AA contrast check passes in both themes (the closest pair is 4.61:1 against the 4.5:1 limit). The mutation driver put 65 deliberate bugs back one at a time in the token, secret, cron, email, image-host and publish-gate code, and the tests failed for all 65.
The live site was loaded on that date in Chromium: the feed, the dark theme, the Nepali interface, a category filter, the Nepal view with the week range, pagination, the About and Editorial standards pages, the newsletter block (no address was entered) and a phone-width view with no horizontal overflow.
Recorded in the repository's modernization note (2026-11-12): the existing gates passed with 214 tests; a dependency with a quadratic-CPU advisory in the feed parser was upgraded; the first mutation run killed 41 of 66, and 23 new tests closed the 25 gaps it found.
Not verified: the CI workflow on GitHub; the visual-regression suite, whose baselines are platform-specific; the repository's live-site checks (feed quality, accessibility scan, SEO); and the quality of the model's Nepali translations, which was not assessed.