react-vite-bun-tailwind-biome Tailwind Templates

React Vite Bun Tailwind Biome

React + Vite + Bun + Tailwind + Biome

My personal frontend starter

Install bun

Then run:

bun i
bun dev

Optional sync with OpenAPI (Swagger)

Included is a way to generate a TanStack query client using OpenAPI TypeScript

Adjust synchronization script and fetchClient to point to your OpenAPI spec before running the sync:

// package.json

{
  "scripts": {
    // Update this
    "sync": "bun run openapi-typescript http://localhost:8888/openapi.json -o ./src/api/schema.d.ts"
  }
}
// src/api/index.tsx

const fetchClient = createFetchClient<paths>({
  // Update this
  baseUrl: "http://localhost:8888/",
});
bun sync

Backend recommendations

Top categories

Loading Svelte Themes