New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

create-buntime

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

create-buntime

Create a new Buntime app with Next.js 16, Bun runtime, and PostgreSQL

latest
Source
npmnpm
Version
0.0.7
Version published
Maintainers
1
Created
Source

create-buntime-app

The fastest way to create a Next.js app with Bun Runtime on Vercel.

Why Bun Runtime on Vercel?

  • ⚡ Faster execution - Generally faster than Node.js, especially for CPU-bound tasks
  • 🎯 Zero-config TypeScript - Built-in TypeScript and JSX support out of the box
  • 📦 All-in-one toolkit - Includes bundler, test runner, and package manager
  • 🚀 Vercel optimized - Runs on Fluid compute with full serverless support
  • 🔋 Modern by default - Latest JavaScript features with no additional setup
  • 🦊 Pure Bun - Uses Bun's native APIs exclusively, no Node.js dependencies

Quick Start

# Interactive mode (will prompt for project name)
bun create buntime-app

# With a project name
bun create buntime-app my-app

# In current directory (must be empty)
bun create buntime-app .

Then:

cd my-app  # Skip if you used "."
bun install
cp .env.example .env
# Add your POSTGRES_URL to .env
bun run dev

Open http://localhost:3000 🎉

What's Included

  • Next.js 16 with App Router
  • Bun Runtime configured for Vercel (bunVersion: "1.x")
  • PostgreSQL with Bun's native bun:sql adapter (pooling url recommended)
  • Tailwind CSS v4 - Modern utility-first styling
  • TypeScript - Strict mode enabled
  • Biome + Ultracite - Fast formatting and linting

API Examples

The template includes working database examples:

  • GET /api/db-check - Test database connection
  • GET /api/db-read - Read from PostgreSQL
  • POST /api/db-write - Write to PostgreSQL

All using Bun's native bun:sql for high-performance database queries.

Deploy to Vercel

# Install Vercel CLI (recommended but can also use bunx vercel)
bun add -g vercel

# Link to a new project
vercel link

# Add your environment variable
vercel env add POSTGRES_URL

# Deploy
vercel deploy

Your app automatically uses Bun runtime on Vercel (configured in vercel.json).

Requirements

  • Bun v1.0.0+
  • PostgreSQL database (for the included examples)

Learn More

License

MIT

Keywords

bun

FAQs

Package last updated on 11 Dec 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts