The Indie Hacker's Guide to Building on Open Source
The Indie Hacker's Guide to Building on Open Source
As an indie hacker, your two scarcest resources are money and time. Open source gives you both back — if you use it strategically.
The Indie Hacker's OSS Stack
Your Product Stack (Build With)
| Need | Tool | Why |
|---|---|---|
| Database | Supabase (self-hosted) or PocketBase | Auth + database + storage in one |
| Backend | PocketBase (Go binary) or Supabase | Zero infrastructure for MVP |
| Auth | Supabase Auth or Logto | Don't build auth yourself |
| Search | Meilisearch | Instant search, simple API |
| Email (transactional) | Resend or SES ($0.10/1K) | OSS tools send, SaaS delivers |
| Payments | Stripe | No OSS alternative that works |
| Hosting | Coolify on Hetzner | Deploy anything, $7/month |
Your Business Stack (Run With)
| Need | Tool | Replaces | Savings |
|---|---|---|---|
| Analytics | Plausible | Google Analytics | Privacy + accuracy |
| Email marketing | Listmonk | Mailchimp | $0 vs $20+/month |
| Customer support | Chatwoot | Intercom | $0 vs $39+/month |
| Scheduling | Cal.com | Calendly | $0 vs $12/month |
| Monitoring | Uptime Kuma | Better Stack | $0 vs $25/month |
| Link tracking | Dub | Bitly | $0 vs $35/month |
| Forms | Formbricks | Typeform | $0 vs $29/month |
| CRM | Twenty | HubSpot | $0 vs $20+/month |
| Automation | n8n | Zapier | $0 vs $49/month |
Total SaaS cost replaced: $230+/month → $0 (software) + $7-14 (hosting)
The $14/Month Indie Stack
Everything you need to launch and run a product:
| Component | Tool | Server |
|---|---|---|
| Product backend | PocketBase | Server 1 |
| Product hosting | Coolify | Server 1 |
| Analytics | Plausible | Server 2 |
| Email marketing | Listmonk | Server 2 |
| Customer support | Chatwoot | Server 2 |
| Scheduling | Cal.com | Server 2 |
| Monitoring | Uptime Kuma | Server 2 |
| Link shortener | Dub | Server 2 |
| Reverse proxy | Caddy | Both |
Server 1: Hetzner CX22 ($4.50) — Your product Server 2: Hetzner CX32 ($7) — Your business tools SMTP: Amazon SES ($2.50) Total: $14/month
Building With OSS: Practical Patterns
Pattern 1: PocketBase MVP
Ship an MVP in a weekend:
// PocketBase gives you auth + database + API + file storage
const pb = new PocketBase('https://api.yourapp.com')
// Auth
await pb.collection('users').authWithPassword('user@email.com', 'pass')
// CRUD
const posts = await pb.collection('posts').getList(1, 20)
await pb.collection('posts').create({ title: 'Hello', body: '...' })
// Realtime
pb.collection('posts').subscribe('*', (e) => console.log(e))
No backend code needed. Frontend talks directly to PocketBase.
Pattern 2: Supabase Full-Stack
For more complex apps:
// Supabase: PostgreSQL + Auth + Storage + Realtime + Edge Functions
import { createClient } from '@supabase/supabase-js'
const supabase = createClient(url, key)
// Auth with magic link
await supabase.auth.signInWithOtp({ email: 'user@email.com' })
// Query with row-level security
const { data } = await supabase
.from('posts')
.select('*')
.eq('user_id', user.id)
// File upload
await supabase.storage.from('avatars').upload('avatar.png', file)
// Realtime subscriptions
supabase.channel('posts').on('postgres_changes',
{ event: 'INSERT', schema: 'public', table: 'posts' },
(payload) => console.log(payload)
).subscribe()
Pattern 3: Coolify Deploy Pipeline
# 1. Install Coolify on your VPS
curl -fsSL https://cdn.coollabs.io/coolify/install.sh | bash
# 2. Point your repo at Coolify
# Push to main → Coolify auto-deploys
# 3. Add services from Coolify marketplace
# PostgreSQL, Redis, Meilisearch — one click each
No Docker knowledge required. No CI/CD to configure. Push and deploy.
Monetization-Friendly OSS Stack
| Revenue Model | OSS Tools to Support It |
|---|---|
| SaaS (subscriptions) | Supabase (user management) + Stripe + Plausible (track conversions) |
| Marketplace | Medusa (e-commerce) + Meilisearch (search) + Stripe |
| Content/courses | PocketBase (content delivery) + Listmonk (email marketing) + Plausible |
| Consulting | Cal.com (booking) + Twenty (CRM) + Chatwoot (communication) |
| Community | Mattermost (chat) + Outline (knowledge base) + Formbricks (feedback) |
Automation Recipes for Indie Hackers
Using n8n to automate your indie business:
New Customer Onboarding
Stripe webhook (new subscription)
→ Create user in PocketBase
→ Send welcome email via Listmonk
→ Add to CRM (Twenty)
→ Notify you in Mattermost
Content Publishing
New blog post (webhook)
→ Create short link (Dub API)
→ Schedule social posts
→ Add to email newsletter (Listmonk)
→ Track in Plausible (custom event)
Support Triage
New Chatwoot message
→ Check if customer (PocketBase lookup)
→ If paying customer → priority label
→ If common question → auto-respond with link
→ If urgent → notify Mattermost channel
Common Mistakes
1. Over-Engineering the Stack
Mistake: Self-hosting 15 tools before you have customers. Fix: Start with PocketBase + Plausible + Listmonk. Add tools as needs emerge.
2. Building Instead of Shipping
Mistake: Spending 2 weeks perfecting your self-hosted setup. Fix: Use managed options (Supabase Cloud, Plausible Cloud) for MVP, self-host when revenue justifies it.
3. Ignoring Backups
Mistake: "I'll set up backups later." Fix: Set up automated daily backups on day 1. It takes 15 minutes.
4. Premature Self-Hosting Everything
Mistake: Self-hosting email (Mailu/Mail-in-a-Box) to save $6/month. Fix: Some things are worth paying for. Email deliverability is hard.
The Decision Framework
| Stage | Approach | Budget |
|---|---|---|
| Idea validation | All free tiers (SaaS) | $0 |
| MVP | PocketBase/Supabase + Coolify | $7-14/month |
| First customers | Add Plausible + Listmonk + Chatwoot | $14/month |
| $1K MRR | Full self-hosted stack | $14-30/month |
| $5K MRR | Upgrade servers, add redundancy | $50-100/month |
| $10K+ MRR | Consider managed options for sanity | $100-300/month |
The Bottom Line
As an indie hacker, open source is your unfair advantage:
- $0 software costs means more runway
- Full control means no feature limitations
- Data ownership means you can pivot freely
- Self-hosting skills compound over your career
Start with 3-4 tools. Ship your product. Add more as you grow.
Find every tool you need for your indie stack at OSSAlt.