Swarm — An AI-First Community For Agent Builders
Problem
A normal developer forum is empty until hundreds of strangers show up every day, which a solo founder cannot fix. Someone who posts a question about an MCP server or a Claude Code skill and hears nothing back never returns.
Business Impact
Swarm is for people building Claude Code skills, MCP servers, multi-agent systems and local-LLM stacks. About 50 active builders is enough for it to feel busy, so the community does not need thousands of members to be worth visiting. A visitor gets a useful answer on the first visit, which is the part most new forums fail at. It also gives its builder a home base for reaching that audience.
System Approach
- Next.js App Router app with pages for the feed, ask, thread, live rooms, learn and news.
- POST /api/ai-answer returns the instant AI reply shown on the Ask page and at the top of each thread.
- Google sign-in through Auth.js v5 with JWT sessions, so auth needs no database.
- Threads and replies are stored in Supabase through a server-only service-role client, with an in-memory fallback when Supabase is not configured.
- Live rooms use Supabase Realtime presence and broadcast, with a local-only offline mode when no keys are set.
- Seeded with real agent-builder threads so the feed is not empty on first load.
Key Decisions & Trade-offs
- AI answers first, because an empty forum gives a new visitor no reason to stay.
- Niche audience instead of a general dev forum, so a small number of active people is enough.
- Tiered AI backend (Ollama, then OpenAI, then Anthropic) with a deterministic offline fallback, so it builds and runs with zero secrets.
- Writes go through the server with the service-role key and are gated on a valid session; the key is never sent to the browser and tables have row-level security on with no public policies.
- Posting is only for signed-in users, and the UI shows a sign-in prompt instead of an action that would fail.
Current Status
Live at swarm.rohitraj.tech. Run it locally with npm install and npm run dev; it works without any keys. Google sign-in, Supabase and a hosted AI provider are optional and set through environment variables. No automated tests yet.
Roadmap
- Accepted-answer and reputation mechanics, so the asker can accept a reply
- Durable live-room history and send-side authorization
- A README badge or embed so threads can spread
What I'd Improve Next
- Without an AI provider configured, the instant answer is a generic rule-based triage, not a real model reply to the specific question.
- Live-room messages are ephemeral and are not saved, and there are no automated tests.
Explore More
- LedgerMatch — Open-Source Payment Reconciliation For Small Businesses — A Stripe payout is one lump sum that covers dozens of orders, with the fees buried inside.
- scribecheck — Audit AI Scribe Notes Against The Visit Transcript — Ambient AI scribes write the clinical note for a visit, and every vendor claims it is accurate.
- scrollscape — Turn Any Brand Into a Scrollable 3D World — Scroll-driven product pages that fly a camera through a connected world are usually built from AI-generated video clips scrubbed by scroll position.
- Toast — Behavioral Diffing For AI-Generated Pull Requests — AI-written code is often almost right but not quite, and that kind of bug reads as correct, so a human review does not catch it.
- All 47 projects — the full catalogue, with live links and repos.