Skip to main content

Build your AI SaaS
this weekend.

The production-ready RAG starter kit for Next.js developers. Ingest PDFs & URLs in seconds, chat with your documents using Claude Haiku and Voyage AI embeddings, and deploy to Vercel in minutes — not weeks.

Try the live demo — no signup required
MIT License · Deploy anywhere
Lifetime updates included
pages/api/chat.js
ingest-url.jsembeddings.js
1// Scrape any URL — Cheerio, no headless browser needed
2const text = await scrapeUrl('https://docs.example.com');
3const chunks = await chunkText(text);
4const embeddings = await embedBatch(chunks); // voyage-3.5
5
6// Store in Pinecone under a namespace
7await upsertVectors(embeddings, namespace);
8
9// Stream Claude Haiku responses with source citations
10const stream = anthropic.messages.stream({
11 model: 'claude-haiku-4-5-20251001',
12 system: buildSystemPrompt(contextChunks),
13 messages: [{ role: 'user', content: query }],
14});
15
16// First SSE event carries sources before text begins
17res.write(`data: ${JSON.stringify({ sources, hasContext })}`);

Powered by modern infrastructure

Next.js
Claude Haiku
Pinecone
LangChain.js
Voyage AI
React
Tailwind CSS
Cheerio
Framer Motion
Next.js
Claude Haiku
Pinecone
LangChain.js
Voyage AI
React
Tailwind CSS
Cheerio
Framer Motion
Next.js
Claude Haiku
Pinecone
LangChain.js
Voyage AI
React
Tailwind CSS
Cheerio
Framer Motion

Everything included

Production-ready, out of the box.

Stop spending weeks configuring boilerplate. FastRAG handles the infrastructure so you can focus on what makes your product unique.

Scraping

Web Scraping Engine

Paste any URL — docs site, blog, or landing page. Cheerio targets semantic content zones like <main> and <article>, strips boilerplate, and vectorizes clean text in seconds. Fully serverless, zero ESM conflicts on Vercel.

⚡ No headless browser required
Ingestion

PDF Ingestion Pipeline

Drag & drop any PDF up to 20MB. Multipart upload via Formidable, full text extraction with pdf-parse, automatic chunking with configurable overlap — from dense legal contracts to research papers.

📁 Up to 20MB, returns chunk stats
Embeddings

Voyage AI Embeddings

Anthropic's recommended embedding model — voyage-3.5 via LangChain. Separate document and query embedders optimise the vector space for asymmetric retrieval. First 200M tokens are completely free.

🚀 200M free tokens to start
Streaming

Real-Time Claude Streaming

claude-haiku-4-5 streams answers token-by-token via Server-Sent Events. The first SSE event carries source citations and usage data — no loading spinners, no separate status calls.

⚡ Sub-second TTFT with Haiku
Multi-Tenant

Namespace Isolation

Each user's documents live in a private Pinecone namespace. One index, unlimited tenants, zero cross-contamination. Swap "demo" for a userId and you have enterprise-grade multi-tenancy from day one.

🔒 User-scoped vector buckets
Demo Safety

IP-Based Rate Limiting

Built-in demo protection: 5 messages and 3 ingestions per visitor per 24 hours. File-based session store — no Redis needed. Returns resetAt timestamps so the UI shows exact countdowns.

🛡️ No Redis or DB required
Developer

No Black Boxes

Full access to every API route under pages/api. Swap the vector DB, change the LLM, tweak prompts — everything is your code. MIT licensed, no vendor lock-in, no magic abstractions.

🔓 100% customizable, MIT license
Architecture

Production-Grade RAG

RecursiveCharacterTextSplitter chunking, cosine similarity threshold filtering (0.3), context injected into Claude system prompt via <context> tags, graceful fallback when retrieval finds nothing relevant.

🏗️ Retrieval-first, hallucination-resistant
Lifetime

Lifetime Updates

Buy once, get every future update. Private GitHub repo access means you pull improvements the day they ship. No new version to purchase, no subscription.

♾️ Forever access, private repo

Simple setup

From zero to
AI-powered app in four steps.

No ML expertise required. No infrastructure headaches. Just clone, configure, and ship.

Ingest01

Upload your content

Drop in a PDF or paste any public URL. The ingestion pipeline scrapes with Cheerio, parses with pdf-parse, and chunks everything using LangChain's RecursiveCharacterTextSplitter — 1000-token chunks with 200-token overlap by default.

Next: Embed with Voyage AI & store in Pinecone
Step 01
// pages/api/ingest-url.js
// → fetch URL with 15s timeout
// → load HTML into Cheerio
// → remove script/style/nav/footer
// → target
or
first
// → chunk text (1000 tokens, 200 overlap)
// → embed + upsert to Pinecone namespace
// pages/api/ingest-pdf.js
// → parse multipart upload (max 20MB)
// → extract text with pdf-parse
// → chunk → embed → upsert
// → return { chunksIngested, totalCharacters }
Vectorize02

Embed with Voyage AI & store in Pinecone

Text chunks are embedded using Voyage AI's voyage-3.5 — Anthropic's recommended model, with 200M free tokens. Vectors are stored in a Pinecone namespace scoped to the user. One index, unlimited tenants, zero cross-contamination.

Next: Answer questions with Claude Haiku
Step 02
// lib/embeddings.js
// Separate instances for ingestion vs retrieval
// inputType: 'document' → for chunks
// inputType: 'query' → for user questions
// lib/vector-store.js
// upsertVectors(vectors, namespace)
// → pinecone.index().namespace(userId).upsert()
// Each tenant's vectors are fully isolated.
// Swap 'demo' for userId for multi-tenancy.
Chat03

Answer questions with Claude Haiku

When a user asks a question, FastRAG embeds it with Voyage AI, retrieves the top-5 most relevant chunks from Pinecone (above a 0.3 cosine threshold), injects context into Claude's system prompt, and streams the response token-by-token via SSE.

Next: Ship to production in minutes
Step 03
// pages/api/chat.js
// 1. embedQuery(query) → Voyage AI query embedding
// 2. querySimilar(embedding, topK=5, namespace)
// 3. filter matches by score >= 0.3
// 4. inject chunks into Claude system prompt
// 5. stream claude-haiku-4-5 via SSE
// First SSE event carries:
// → sources[], hasContext, usage{}
// Subsequent events carry text deltas.
// Final event: { done: true, usage }
Deploy04

Ship to production in minutes

Push to Vercel with one command. Add three environment variables and you're live. The IP-based rate limiter protects your demo with zero infrastructure — no Redis, no database, just a lightweight JSON session store.

Step 04
# .env.local — only 3 keys required
ANTHROPIC_API_KEY=sk-ant-...
PINECONE_API_KEY=pcsk_...
PINECONE_INDEX=fastrag
VOYAGEAI_API_KEY=pa-...
# One-command deploy
$ vercel --prod
# ✅ https://yourapp.vercel.app
# Demo rate limiting: zero extra infra
# 5 messages + 3 ingestions per visitor/24h

Real-world applications

Ship anything.
Built for every industry.

FastRAG is a foundation, not a template. Here's what you can build with it this weekend.

Knowledge Base

Internal Company Wiki

Let employees query your entire docs, PDFs, and internal pages in plain English. Ingest URLs with one click — no Notion API, no Confluence plugin. Just paste and ask.

~5 min
Setup time
PDFs + URLs
Ingests
Customer Support

AI Support Agent

Train on your help docs, FAQs, and product manuals. Claude Haiku answers tier-1 tickets instantly — 24/7, grounded in your actual content, with source citations on every response.

<2s first token
Streaming latency
Source-cited
Every answer
EdTech

AI Course Tutor

Upload lecture notes, textbooks, and syllabi. Students get instant, cited answers from course material instead of waiting for office hours or searching through PDFs manually.

Notes + textbooks
Handles
Always cited
Answers
Legal

Contract & Policy Q&A

Upload NDAs, contracts, and compliance PDFs. Lawyers and ops teams query them conversationally — FastRAG cites the exact clause it drew from, so answers are always verifiable.

Exact clause
Citation level
20MB per PDF
Max file size
Developer Tools

Code Docs Search

Point FastRAG at your API reference, README files, and changelogs. Scrape any docs URL in seconds with Cheerio — developers find what they need without leaving their editor.

Cheerio, serverless-safe
Scraper
Any docs URL
Source
E-commerce

Product Advisor Bot

Ingest your product catalog, specs, and reviews. Build a conversational shopping assistant powered by Claude that upsells intelligently and handles product questions at scale.

SSE streaming
Response
Your own catalog
Grounded in

Why trust this

Built by one developer,
for developers.

I built FastRAG because I was tired of re-wiring the same Pinecone + LangChain plumbing for every AI project. It's the kit I wish existed — and I stand behind it.

48 hours money-back guarantee

If product is not delivered under 48 hours, you get a full refund. No questions asked.

Try before you buy

The live demo at fastrag.live/demo runs real Claude Haiku streaming and real Pinecone retrieval — no signup required.

MIT commercial license

Use it in unlimited client and personal projects. Charge for what you build, keep all the revenue.

$19
One-time price
MIT
Commercial license
Instant
Delivery via Gumroad
24hr
Support reply target

Simple pricing

Pay once.
Own it forever.

No subscriptions. No seat fees. No surprise bills. You only pay for your own infrastructure — Anthropic, Voyage AI, Pinecone, Vercel.

Starter

Everything you need to ship your first production RAG app this weekend.

$19$29

Launch price · ends soon · deploy to unlimited projects

Get Starter Kit
  • Full Next.js source code (Pages Router)
  • Web scraping engine — Cheerio, serverless-safe
  • PDF ingestion — up to 20MB per file
  • Claude Haiku chat with SSE streaming
  • Voyage AI embeddings — 200M free tokens
  • Pinecone vector store with namespace isolation
  • IP-based demo rate limiting (no Redis needed)
  • Mobile-responsive chat UI
  • Private GitHub repository access
  • Lifetime updates included
  • Commercial usage — MIT license

🔒 Secure checkout via Gumroad · Instant delivery

Most Popular
ProBest value

Advanced features for teams building multi-tenant SaaS products at scale.

$49$79

Launch price · ends soon · deploy to unlimited projects

Get Pro Kit
  • Everything in Starter, plus:
  • Multi-tenant dashboard (per-user analytics)
  • Admin panel with ingestion history
  • Rate limiting & token usage tracking
  • Slack / webhook notifications on ingest
  • Custom system prompt UI (per namespace)
  • Pinecone metadata filtering
  • Auth-ready (NextAuth.js integration)
  • Priority email support (24hr response)

🔒 Secure checkout via Gumroad · Instant delivery

Full comparison

FeatureStarterPro
Full Next.js source code
PDF ingestion (up to 20MB)
Web scraping — Cheerio
Claude Haiku SSE streaming
Voyage AI embeddings
Pinecone namespace isolation
IP-based demo rate limiting
MIT commercial license
Lifetime updates
Multi-tenant admin dashboard
Per-user analytics & usage
Auth integration (NextAuth.js)
Priority support

Questions about which plan is right for you? Talk to us →

Common questions

Everything you
need to know.

Still have a question after reading? Reach out — we reply within 24 hours.

You get an invite to a private GitHub repository (or a ZIP download) containing the complete Next.js source code — ingestion API routes, Pinecone configuration, Claude chat streaming, the Cheerio web scraping pipeline, Voyage AI embeddings, and IP-based demo rate limiting. Everything is yours, forever.

Still have a question?

Contact support