Skip to content

Tech Stack

IndieStack integrates a modern 2026 frontend tech stack covering framework, styling, backend, monitoring, and deployment.

Framework & Language

TechnologyVersionUsageKey Features
Next.js15.5.xReact full-stack frameworkApp Router, Server Components, Server Actions, Streaming SSR
TypeScript5.7.xType safetyStrict mode, compile-time checking, type generation
React19.xUI libraryServer Components, Taint APIs, use hook, Actions

Next.js 15's App Router provides file-system routing, nested layouts, loading states, and error boundaries. Server Components reduce client JS by default, Server Actions provide end-to-end type safety for forms and data mutations.

Styling & UI

TechnologyVersionUsageKey Features
Tailwind CSS3.4.xUtility CSSJIT compilation, dark mode class strategy, responsive breakpoints
shadcn/uiLatestComponent libraryRadix UI based, 24 customizable components, Copy-paste pattern
Lucide React0.477.xIcon library1000+ open source icons, Tree-shaking optimized

shadcn/ui components are copied directly into src/components/ui/ — fully under your control. The project uses cn() (clsx + tailwind-merge) for class merging. CSS variables in globals.css with .dark class enable theme switching.

Backend & Database

TechnologyVersionUsageKey Features
Supabase2.xBaaSManaged PostgreSQL, Auth with RLS, Realtime subscriptions
PostgreSQL15+Relational DBRLS, JSON/JSONB, full-text search, index optimization
Zod3.24.xSchema validationShared types across frontend/backend, parse-time validation

Supabase Client Architecture

Four client types for different scenarios:

ClientScenarioFeature
server.tsServer Components, Route HandlersCookie-based session
client.tsClient ComponentsBrowser-side queries
admin.tsServer privileged opsService Role, bypass RLS
middleware.tsNext.js MiddlewareRequest-level session refresh

Mock Mode

When NEXT_PUBLIC_MOCK_ENABLED=true, all Supabase queries use @faker-js/faker mock data:

  • Auto-detects missing Supabase env vars and enables mock mode
  • Generates realistic user, team, project, notification, audit log data
  • Data is consistent within a single request
  • Supports eq/order/range/limit/single query methods

Monitoring & Operations

TechnologyUsageConfiguration
SentryError tracking + performanceClient/Edge/Server configs, auto source map upload
ApparkAPM (planned)Not wired; module removed
StripePayment processingSubscription billing, Webhook handling, price plan management

Deployment

PlatformUsageMethod
VercelFrontend + API hostingGitHub auto-deploy (vercel --prod)
GitHub ActionsCI/CDPR auto lint + type-check + test, main merge auto deploy
DockerContainerized deploymentMulti-stage build (Node → Nginx), Docker Compose for local dev
Alibaba Cloud OSSFile storage + CDN (planned)Not wired; see architecture docs

Version Management

  • Code Quality: ESLint (Next.js ruleset) + Prettier + husky (pre-commit + commit-msg hooks)
  • Commit Convention: Conventional Commits (feat/fix/docs/chore/refactor/test)
  • Branch Strategy: main (production) → developfeature/*
  • CI Pipeline: PR → lint + type-check + test → merge → auto deploy

基于 MIT 协议开源