Skip to content

About

Aggregator for AI tool free tiers, trials and verified promo codes

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

FreeTierHunt 🏹

Aggregator for AI tool free tiers, trials, and verified promo codes.

Status: Bootstrapped — Hafta 1 setup phase. See docs/plan/v3-part2-execution.md for the 13-week execution plan.

Screenshots

Captured locally from pnpm dev against a local Postgres loaded with pnpm db:seed (sample products and offers). A few offers were marked verified with clearly labelled demo evidence to show the source-proof UI — not live production data.

Home — hero, live stats and today's top deals ranked by score, with source proof and votes:

FreeTierHunt home page: "Stop overpaying for AI tools" hero, stats for 20 AI tools and 29 active offers, and the Today's Top Deals list with Cursor, OpenAI and Vercel offers

Product page — every offer for one tool, with promo code copy, source proof and re-check state:

FreeTierHunt product page for Hugging Face: a verified free-tier offer with source proof and a Get offer button next to a 50% off discount with a copyable code awaiting re-check

Categories — browse AI tools by type:

FreeTierHunt categories page listing AI Coding, AI Search, Backend, Data, Hosting, Inference and LLM categories with product counts

Stack

  • Framework: Next.js 15 (App Router) + React 19 + TypeScript (strict)
  • Styling: Tailwind CSS (brutal design system)
  • DB: Supabase Postgres + Drizzle ORM
  • Auth: Supabase Auth (email magic link)
  • Queue: BullMQ + Redis (Oracle Always Free VM)
  • Worker: Node.js + PM2 (Oracle ARM A1)
  • LLM Router: Groq → OpenRouter → NVIDIA NIM → OpenAI fallback
  • Email: Resend
  • Hosting: Vercel (web) + Oracle VM (worker) + Cloudflare (DNS/CDN)
  • Monitoring: Sentry + PostHog + Discord webhooks

Local Setup (5 min)

Prerequisites

  • Node.js 20+ ✓ (you have 24)
  • pnpm 9+ → npm install -g pnpm
  • Postgres client (TablePlus / pgAdmin) — optional

Steps

# 1. Install deps
pnpm install

# 2. Environment
cp .env.example .env.local
# Fill values from password vault ('FreeTierHunt' folder)

# 3. Database (after schema is written in Hafta 2)
pnpm db:push
pnpm db:seed

# 4. Run dev
pnpm dev                # web → http://localhost:3000
pnpm worker:dev         # worker (separate terminal)

Common Issues

Problem Fix
pnpm db:push fails Use DIRECT_URL (port 5432), not pooler 6543
Sentry init error NEXT_PUBLIC_SENTRY_DSN must be set client-side
Worker Redis fail redis-cli ping must return PONG
Vercel build "Cannot resolve module" Confirm pnpm-lock.yaml is committed

Project Structure

src/
  app/                  Next.js App Router (pages + API routes)
    api/health/         Uptime probe (k6 + Vercel monitoring)
  lib/
    db/                 Drizzle schema + queries
    logger.ts           Pino structured logger
  middleware.ts         CSP + security headers (audit B20)
  instrumentation.ts    Sentry hook (audit B6)
worker/
  index.ts              BullMQ worker entry (TZ=UTC enforced — audit B1)
.github/
  dependabot.yml        Weekly dep updates (audit B31)
  workflows/ci.yml      Lint · typecheck · build
docs/                   Operator notes
ecosystem.config.cjs    PM2 production (instances:1 fork — audit B3)
drizzle.config.ts       Migration config (uses DIRECT_URL)

Plan References

Scripts

Command Purpose
pnpm dev Next.js dev server
pnpm build Production build
pnpm typecheck tsc --noEmit
pnpm lint ESLint
pnpm format Prettier write
pnpm db:push Push schema (dev)
pnpm db:generate Generate migration SQL
pnpm db:studio Drizzle Studio
pnpm worker:dev tsx watch worker
pnpm worker:start PM2 production worker

License

MIT (TBD)

About

Aggregator for AI tool free tiers, trials and verified promo codes

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages