Bun Nextjs
Running Next.js on Bun with Bun-native APIs, supply-chain guardrails, and Next 16 deployment caveats.
- CCM score
- 48 of 100
- skills.sh installs
- 453
- GitHub stars
- 257
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers project scaffolding, dev, build, and production start under Bun, plus
bun --bunruntime wiring in package.json scripts - Includes Bun SQLite and file API examples in server components, route handlers, and server actions, plus a Dockerfile and Vercel notes
- Enforces supply-chain guardrails:
trustedDependenciesfor post-install scripts, a 7-dayminimumReleaseAgecooldown, and Socket package audits - Designed for developers building Next.js 16 apps on Bun, including those deploying via OpenNext to Cloudflare
Install
$ npx -y skills add secondsky/claude-skills --skill bun-nextjs -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
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
Details
- Repository
- github.com/secondsky/claude-skills
- Categories
- Frontend & UI Code, Backend & APIs
- First seen
- Jun 3, 2026
Questions
How do I run Next.js with Bun?
Add the bun-nextjs skill with npx -y skills add secondsky/claude-skills --skill bun-nextjs -y in your project. The skill then guides the agent to run Next.js on Bun as the runtime, using the bun --bun flag for dev, build and start scripts.
Can bun-nextjs help me use Bun APIs like bun:sqlite inside Next.js?
Yes, the skill shows how to use Bun APIs such as bun:sqlite and Bun.file inside Server Components, API routes and Server Actions. It also explains that serverExternalPackages in next.config must list bun:sqlite, and that Vercel edge runtime does not run Bun APIs.
Where does bun-nextjs stand in the Frontend and UI Code category?
bun-nextjs is listed in the Frontend and UI Code category on Claude Marketplaces, alongside vercel-react-best-practices, web-design-guidelines, design-taste-frontend, vercel-composition-patterns and lark-apps. It is aimed at developers who want Next.js with Bun rather than general React styling or design guidance.
More from secondsky/claude-skills
All 116- Websocket Implementation452
- Root Cause Tracing450
- Seo Keyword Cluster Builder450
- Mobile App Debugging449
- Recommendation Engine449
- App Store Deployment448
- Push Notification Setup447
- Api Response Optimization445
- Drizzle Orm D1445
- Api Pagination444
- Api Filtering Sorting442
- Bun Drizzle Integration441
- Session Management441
- Defense In Depth Validation440
- Bun Runtime438
- Nuxt Production435
- Ultracite435
- Bun Docker434
- Bun Tanstack Start434
- Nuxt Ui V4432
- Oauth Implementation432
- Api Gateway Configuration431
- Health Check Endpoints431
- Bun Test Mocking430
Similar to Bun Nextjs
More Frontend & UI Codebun-sveltekitsecondsky/claude-skills526 installsGuide for building and running SvelteKit apps on Bun, covering SSR, the Bun adapter, and Bun-specific APIs.
bun-nuxtsecondsky/claude-skills409 installsNuxt 3 setup and runtime guide for running and building Nuxt apps on the Bun runtime.
nextjs-turbopackaffaan-m/ecc12.9K installsIncremental Turbopack guidance for Next.js 16+ dev speed, bundler choice, and proxy.ts naming.
nextjs-on-cloudflarecloudflare/skills72.9K installsBuild and deploy Next.js apps on Cloudflare Workers with vinext, not OpenNext, for new projects.
nextjs-deploymentgiuseppe-trisciuoglio/developer-kit4K installsProduction deployment patterns for Next.js covering Docker, CI/CD, environment config, health checks, and monitoring.