Skip to content

outer-snow/vibe-any-tanstack

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

128 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VibeAny

VibeAny

中文 | English

Production-grade full-stack boilerplate for modern Vibe Coding.
Authentication, payments, AI, i18n, and more — out of the box. Go from idea to launch in hours, not days.

License Stars Issues Discord

Watch Demo Documentation

VibeAny Landing Page

Why VibeAny

We noticed that many people have to repeatedly write boilerplate code and rebuild infrastructure when vibe coding new products. VibeAny changes that — with just 10–20 minutes of configuration, you get:

  • Complete authentication system with email/password, Google/GitHub OAuth, magic links
  • Multi-provider AI chat with 100+ models (OpenAI, Claude, Gemini, DeepSeek, Grok, and more)
  • Payment integration with Stripe, Creem, PayPal, WeChat Pay, Alipay — subscriptions & one-time
  • Credit system for AI monetization with daily rewards, sign-up bonuses, and FIFO consumption
  • Enterprise-grade landing page components — responsive and SEO-friendly
  • Admin panel with user management, dynamic config, role management
  • Blog & Docs powered by MDX and Fumadocs, with full-text search
  • Type-safe i18n with Intlayer — translation errors caught at compile time

Screenshots

🔐 Authentication 🤖 AI Chat (100+ models)
Authentication AI Chat
💳 Payment & Pricing ⚙️ Dynamic Config
Payment Admin Config
📝 Blog & Roadmap 📚 Documentation
Blog & Roadmap Documentation

Features

Category What You Get
Framework TanStack Start + React 19 + Vite — file-based routing, SSR, server functions
Auth Email/password, Google, GitHub OAuth, magic links, email verification (Better Auth)
RBAC Role-based access control with permission inheritance
AI Vercel AI SDK with 12 providers, 100+ models, streaming responses
Payments Stripe, Creem, PayPal, WeChat Pay, Alipay — subscriptions & one-time payments
Credits Token-based AI billing with FIFO consumption, daily rewards, sign-up bonuses
Landing Page Hero, features, benefits, testimonials, FAQ, CTA — all configurable
Blog & Docs MDX-powered blog + Fumadocs documentation, multilingual
Changelog & Roadmap Product changelog timeline and visual roadmap board
Admin Panel User management, system configuration, role management
i18n Type-safe internationalization with Intlayer (English + Chinese out of the box)
Email Verification and magic link emails via Resend or custom SMTP
Storage S3-compatible upload (Cloudflare R2, AWS S3, MinIO)
UI Tailwind CSS v4, shadcn/ui, Radix primitives, Lucide icons
Theme Light / dark / system with one-click toggle
Deployment Node.js, Docker, or Cloudflare Workers (edge-native with D1 + R2)

Architecture

graph TB
    Client([Browser])

    subgraph Frontend
        Router[TanStack Router]
        Query[TanStack Query]
        UI[React 19 + shadcn/ui]
        I18n[Intlayer i18n]
    end

    subgraph Backend["TanStack Start (Vite + Nitro)"]
        API[Server Functions / API Routes]
        Auth[Better Auth]
        Services[Business Logic]
        RBAC[RBAC Middleware]
    end

    subgraph Data
        DB[(PostgreSQL)]
        ORM[Drizzle ORM]
        S3[S3 Storage]
    end

    subgraph Content
        MDX[MDX Blog]
        Docs[Fumadocs]
    end

    subgraph External
        AI[AI Providers]
        Email[Resend / SMTP]
        OAuth[GitHub / Google OAuth]
        Pay[Stripe / PayPal / ...]
    end

    Client --> Router
    Router --> Query
    Query --> API
    UI --> Router
    I18n --> UI
    API --> Auth
    API --> Services
    Auth --> RBAC
    Auth --> OAuth
    Services --> ORM
    ORM --> DB
    Services --> S3
    Services --> AI
    Services --> Email
    Services --> Pay
    Router --> MDX
    Router --> Docs
Loading

Tech Stack

Layer Technology
Framework TanStack Start + React 19 + Vite
Routing TanStack Router (file-based)
Data Fetching TanStack Query
Database PostgreSQL + Drizzle ORM
Auth Better Auth
Payments Stripe / Creem / PayPal / WeChat / Alipay
AI Vercel AI SDK (12 providers, 100+ models)
Styling Tailwind CSS v4 + shadcn/ui
i18n Intlayer
Content Fumadocs (docs) + MDX (blog)
Validation Zod
State Zustand
Animation Motion
Linting Biome

Quick Start

Prerequisites

  • Node.js 20+
  • pnpm 9+
  • PostgreSQL database

1. Clone and install

git clone https://github.com/jiahao-jayden/vibe-any-tanstack.git
cd vibe-any
pnpm install

2. Configure environment

cp .env.example .env.local

The app runs in static mode with zero configuration — landing page, blog, and docs work without a database. To enable auth and user features, set DATABASE_URL and BETTER_AUTH_SECRET.

3. Set up database (optional)

pnpm db:push

4. Start development

pnpm dev

Open http://localhost:3377.

For full setup instructions including AI, payments, and email, see the Documentation.

Project Structure

src/
├── actions/          # Server actions
├── config/           # Site config, i18n content, dynamic config
├── db/               # Drizzle schema (auth, config, RBAC)
├── integrations/     # RBAC checker, storage, TanStack Query, AI
├── routes/
│   ├── api/          # API routes (auth, admin, file upload)
│   └── {-$locale}/   # Page routes with i18n prefix
│       ├── _main/
│       │   ├── _landing/   # Landing pages (home, blog, changelog, etc.)
│       │   ├── admin/      # Admin panel
│       │   └── chat/       # AI chat
│       ├── docs/     # Documentation
│       └── login/    # Login page
├── services/         # Business logic
└── shared/
    ├── components/   # UI components
    ├── context/      # React context (global state)
    ├── hooks/        # Custom hooks
    ├── lib/          # Utilities (auth, email, config, tools)
    ├── middleware/    # Route middleware (auth, locale)
    ├── model/        # Database query functions
    └── types/        # TypeScript types

Deployment

Cloudflare Workers

Deploy to the edge with zero cold starts using Cloudflare Workers + D1 (SQLite) + R2 (storage):

pnpm build:cf
wrangler deploy

Configure wrangler.toml with your D1 database and R2 bucket bindings. See the Cloudflare deployment guide for details.

Docker

docker build -t vibe-any .
docker run -d -p 3000:3000 vibe-any

Node.js

pnpm build
node .output/server/index.mjs

Works with any Node.js hosting — Vercel, Railway, Fly.io, VPS, Docker, etc.

Contributing

Contributions are welcome! Please read the Contributing Guide before submitting a PR.

Community

License

Apache License 2.0

About

Full-stack starter for building AI-powered web apps with TanStack Start.Ships with authentication, database, landing page, blog, docs, i18n, admin panel, and more — ready to deploy in minutes.

Resources

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages