
Bun Nextjs
This gets Next.js running on Bun instead of Node.js, which means faster dependency installs and dev server startup. It covers the essentials: using the `--bun` flag to force Bun's runtime, accessing Bun-specific APIs like `bun:sqlite` in server components and API routes, and working around the fact that Vercel's edge runtime still uses V8. The security section on blocking post-install scripts and setting cooldown periods for new packages is more thorough than most quickstarts bother with. If you're already bought into Bun for speed gains and want to use it with Next.js without fighting the tooling, this walks through the setup and gotchas.
- skills.sh installs
- 358
- GitHub stars
- 248
- last updated
- Aug 21, 2026
Install
$ npx -y skills add secondsky/claude-skills --skill bun-nextjs --agent claude-codeInstalls into .claude/skills of the current project.
Files
Bun Next.js
Run Next.js applications with Bun for faster development and builds.
Quick Start
# Create new Next.js project with Bun
bunx create-next-app@latest my-app
cd my-app
# Install dependencies
bun install
# Development
bun run dev
# Build
bun run build
# Production
bun run start
Secure Installation
Scaffolding tools like bunx create-next-app download and execute remote code. Multiple install contexts (local, Docker) require pinning versions in both. Before running, follow supply chain security best practices:
- Block post-install scripts — Bun disables them by default; allow specific packages via
trustedDependenciesinpackage.json - Cooldown period — Configure
minimumReleaseAgeinbunfig.tomlto wait 7 days for new versions - Audit before installing — Run
socket package score npm <pkg>or usesocket npm install <pkg>to check packages
Load the dependency-upgrade skill for full security configuration including Socket CLI integration, cooldown setup, lockfile validation, and CI enforcement.
Project Setup
package.json
Sponsors
Details
- Repository
- github.com/secondsky/claude-skills
- Category
- Frontend Development
- First seen
- Jun 3, 2026
More from secondsky/claude-skills
All 146- Bun Package Manager358
- Bun Drizzle Integration353
- Bun Docker343
- Bun Runtime342
- Cloudflare Workers Testing340
- Bun Cloudflare Workers338
- Bun Test Coverage337
- Bun Http Server336
- Bun Test Mocking335
- Nuxt Seo335
- Bun Bundler334
- Bun Workers333
- Bun Shell331
- Bun React Ssr330
- Bun Tanstack Start329
- Cloudflare Workers Performance329
- Bun Hot Reloading328
- Bun Redis328
- Bun Ffi326
- Bun Jest Migration326
- Bun Websocket Server326
- Cloudflare Workers Runtime Apis326
- Swift Best Practices326
- Bun Nuxt323