Stack Reference
Use primary documentation and refresh the relevant pages before implementation. Package names, adapters, runtime flags, CLI syntax, and generated types can change.
Application runtime and build
- Bun package manager — installs, lockfiles, scripts, workspaces, and package executable commands when Bun is available.
- TanStack Start: Cloudflare Workers official partner hosting — required Vite plugin, SSR environment, Worker entrypoint, scripts, and deployment flow.
- Cloudflare Vite plugin — Worker runtime emulation, configuration, bindings, environments, and limitations.
- Vite 8 migration guide — Rolldown/Oxc changes and removed or deprecated configuration.
- Cloudflare bindings — binding configuration and runtime access.
- Wrangler configuration — current
wrangler.jsoncschema and environment rules.
Authentication and database
- Better Auth Drizzle adapter — adapter package, provider values, schema generation, relations, and table mapping.
- Better Auth database concepts — auth schema, migration boundaries, joins, IDs, and hooks.
- Drizzle with Cloudflare D1 — D1 driver and SQLite schema/query behavior.
- Drizzle Kit with D1 — remote migration tooling configuration.
- Cloudflare D1 Worker API — D1 binding behavior and platform types.
- Cloudflare D1 migrations — generating, applying, and inspecting D1 migrations.
- Hyperdrive getting started — binding, connection string, local development, and driver setup.
- Hyperdrive with Drizzle — current Worker-compatible PostgreSQL/Drizzle pattern.
- Hyperdrive FAQ — D1 incompatibility, placement, caching, and read-after-write rules.
- Hyperdrive supported databases — supported PostgreSQL/MySQL engines and features.
Database invariant
Cloudflare documents that Hyperdrive does not support D1. D1 is already designed for direct, low-latency Worker access. Hyperdrive pools and accelerates connections to separate PostgreSQL/MySQL-compatible databases.
UI system
- Tailwind CSS with Vite — Tailwind v4 Vite plugin and CSS import.
- Tailwind CSS v4 upgrade guide — v3-to-v4 removals and configuration changes.
- shadcn/ui for Vite — current CLI, aliases, Tailwind setup, and component installation.
- shadcn/ui with Tailwind v4 — v4 tokens, components, and migration notes.
- coss ui LLM index — current component and hook documentation map.
- coss ui getting started — installation and project setup.
- coss Radix/shadcn migration — migration guidance when replacing existing primitives.
Read the individual coss component page linked from llms.txt before copying that component. Do not assume its API matches shadcn or Radix.
Object storage
- Cloudflare R2 API — Workers binding, S3-compatible API, and REST API roles.
- R2 Workers API — Worker-side bucket methods and object types.
- R2 S3 compatibility — S3 endpoint, supported operations, and differences from AWS S3.
- R2 presigned URLs — direct client transfer design and restrictions.
Prefer the R2 Worker binding for application runtime traffic. Use S3 credentials only for callers outside the Worker binding boundary or when an S3-specific workflow is required.