← The Vault

Building an AI-Powered Newsletter From Scratch: The Complete Technical Playbook

How we built Agentic Edge — a newsletter that curates itself. 376 sources, keyword scoring, trending detection, zero API costs. Full architecture and code.

Most newsletters are manually curated. One person reads 200 articles, picks 10, writes summaries. That's 4-6 hours per issue.

We built a system that does this in 5 minutes. Here's exactly how.

``` ┌─────────────────────────────────────────────────────────┐ │ FETCH LAYER │ │ │ │ Layer 0: Curator Newsletters ──┐ │ │ 17 feeds, 15 articles each │ │ │ (80% of final content) │ │ │ ├──→ Raw Article Pool │ │ Layer 1: Primary Sources ──────┤ (~200/day) │ │ 8 company blogs │ │ │ HN top 100 + 13 subreddits │ │ │ (15% of final content) │ │ │ │ │ │ Layer 2: Background Sources ───┘ │ │ 21 niche feeds (weekly only) │ │ (5% of final content) │ │ │ ├─────────────────────────────────────────────────────────┤ │ FILTER LAYER │ │ │ │ Step 1: Deduplication │ │ URL normalization → SHA-256 hash → SQLite check │ │ │ │ Step 2: Blocklist (94 patterns) │ │ Kill: NixOS, FPGA, VPNs, beginner tutorials │ │ │ │ Step 3: Keyword Scoring (0-10) │ │ Paradigm shift +2.0 | Actionable +1.0 │ │ Infrastructure +0.3 | Research penalty 0.2x │ │ │ │ Step 4: Trending Boost │ │ HN 500+ pts = 1.8x | 200+ = 1.5x | 100+ = 1.3x │ │ │ │ Output: ~30 scored articles/day │ │ │ ├─────────────────────────────────────────────────────────┤ │ OUTPUT LAYER │ │ │ │ Claude API → Summaries (5 sentences each) │ │ Markdown → Astro static site │ │ Resend API → Email delivery │ │ SQLite → Archive + dedup store │ │ │ └─────────────────────────────────────────────────────────┘ ```

Continue reading in The Vault

This article is available to Pro members.

Unlock access →

Already a member? Sign in