AgentBuff Stack
AgentBuff Stack is a reusable foundation for independent tool sites. The template and its official website have separate builds. JSON formatting and text cleanup are working examples for input, preview, download and private account history; they are sample content, not evidence of keyword demand.
The current iteration focuses on the template, its official website and English/Chinese support. Real products, model integrations and cloud deployment are deferred. stack.agentbuff.dev is the intended official template website domain.
Architecture
| Layer | Implementation | Configuration |
|---|---|---|
| Official website | Independent static Astro site, blog and showcase | apps/website/ |
| Product public pages | Astro, React islands and an edge router | apps/web/ |
| Account workspace | React, TanStack Router/Query and Jotai | apps/app/ |
| Design | Astryx, StyleX and retained Radix controls | packages/ui/ |
| API and identity | Hono, tRPC, Zod and Better Auth | apps/api/ |
| Database | PostgreSQL and Drizzle; Neon/Hyperdrive prepared | db/ |
| Email and payments | React Email/Resend and Stripe | Server-only environment |
| Documentation | VitePress with local search | docs/ |
Bun is the local toolchain; production code runs in Cloudflare Workers. Installed versions come from package.json and bun.lock. Keep original MIT notices and third-party licenses.
Configure in three places
- Public product options:
packages/core/website.ts. - Private service credentials: ignored local environment files or Worker Secrets.
- Resource bindings and routes: application Wrangler files and
infra/.
Changes to public options require rebuilding the applications. API environment changes require restarting the API. The official site does not import product runtime configuration.
Follow Quick start → Product configuration → Environment → Module boundaries. Core usage guides have paired Chinese versions. Detailed iteration history and acceptance records are intentionally kept in Chinese.