bun-nuxt

Solid

Use when running Nuxt 3 with Bun runtime, building Vue/Nuxt apps with Bun, or configuring Nuxt projects to use Bun for development and production.

Web & Frontend 162 stars 25 forks Updated 2 weeks ago MIT

Install

View on GitHub

Quality Score: 88/100

Stars 20%
74
Recency 20%
90
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# Bun Nuxt Run Nuxt 3 applications with Bun for faster development. ## Quick Start ```bash # Create new Nuxt project bunx nuxi@latest init my-app cd my-app # Install dependencies bun install # Development bun run dev # Build bun run build # Preview production bun run preview ``` ## Project Setup ### package.json ```json { "scripts": { "dev": "nuxt dev", "build": "nuxt build", "generate": "nuxt generate", "preview": "nuxt preview", "postinstall": "nuxt prepare" }, "dependencies": { "nuxt": "^4.0.0", "vue": "^3.5.0" } } ``` ### Use Bun Runtime ```json { "scripts": { "dev": "bun --bun nuxt dev", "build": "bun --bun nuxt build", "preview": "bun --bun .output/server/index.mjs" } } ``` ## Configuration ### nuxt.config.ts ```typescript export default defineNuxtConfig({ // Enable SSR ssr: true, // Nitro configuration nitro: { // Use Bun preset preset: "bun", // External packages externals: { external: ["bun:sqlite"], }, }, // Development devServer: { port: 3000, }, // Modules modules: ["@nuxt/ui", "@pinia/nuxt"], }); ``` ## Using Bun APIs ### Server Routes ```typescript // server/api/users.ts import { Database } from "bun:sqlite"; export default defineEventHandler(async (event) => { const db = new Database("data.sqlite"); const users = db.query("SELECT * FROM users").all(); db.close(); return users; }); ``` ### Server Middleware ```typescript // serv...

Details

Author
secondsky
Repository
secondsky/claude-skills
Created
6 months ago
Last Updated
2 weeks ago
Language
TypeScript
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category