Prerequisite

Before you start using Buntal JS, ensure you have the following prerequisites installed on your system:

  • Bun ^1.2 - Buntal JS is built on top of the Bun runtime and API, so you need to have it installed. You can download it from the Bun website.

Installation

  • If you want to build an HTTP server, you only need to install the @buntal/http package:

    bun add @buntal/http

    The built-in middlewares (auth, cors, logger, secureHeaders) are included and imported from @buntal/http/middlewares.

    Then, you can continue here.

  • If you want to build a full-stack web application, you can create it from a template:

    bun create buntal@latest my-app

    Change my-app to your desired project name. It will initialize your project and install all the necessary dependencies. The output will look something like this:

    bun install v1.2.14 (6a363a38)
    Resolving dependencies
    Resolved, downloaded and extracted [103]
    Saved lockfile
    
    + typescript@5.8.3
    + @buntal/cli@0.0.2
    + @types/bun@1.2.14
    + @types/react@19.1.6
    + @types/react-dom@19.1.5
    + @tailwindcss/cli@4.1.8
    + buntal@0.0.4
    + clsx@2.1.1
    + react@19.1.0
    + react-dom@19.1.0
    + tailwind-merge@3.3.0
    + tailwindcss@4.1.8
    
    63 packages installed [2.88s]
    
    Blocked 2 postinstalls. Run `bun pm untrusted` for details.
    
    Done! 🔥
    To get started, run: `cd my-app && bun dev`

    Then, you can read more about it here.

Templates

create-buntal asks which template to start from, or pass --template (use the long form: bun create keeps short flags like -t for itself):

bun create buntal@latest my-app --template landing
TemplateWhat you get
defaultMinimal starter with Tailwind CSS
landingLanding page and portfolio: sections, case studies, a contact form saved to a database, full SEO
blogMarkdown blog with posts in a database, tags, pagination, RSS, sitemap and structured data

Templates that use a database come with Bun.SQL (Bun's built-in SQL client, no ORM to install), SQLite by default and Postgres through DATABASE_URL. Migrations and sample content are applied for you on create. See screenshots on the Templates page, or browse the source on GitHub.

Using an AI agent

Building with Claude Code, Cursor or another coding agent? Give it /llms-full.txt and start from one of the ready-made prompts in Build with AI.

Last modified: 2026-10-02