bun-init

Initialize a Bun project with TypeScript and production-friendly configuration.

6|Updated Mar 26, 2026
One-click install
npx skills add https://github.com/memoirlabs/mog --skill bun-init-memoirlabs
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: bun-init
Source: https://github.com/memoirlabs/mog/tree/main/.agents/skills/bun-init
Command: npx skills add https://github.com/memoirlabs/mog --skill bun-init-memoirlabs

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It helps you quickly scaffold a new Bun project with sensible TypeScript configuration so you can start building immediately without guessing settings.

Core Features & Use Cases

  • Project bootstrapping with Bun: Runs Bun init and confirms prerequisites so the project starts correctly.
  • TypeScript configuration by project type: Adjusts key compiler options (module resolution, strictness, bun types, JSX target) for CLI, web app, API server, or library use cases.
  • Practical setup extras: Creates a clean project structure, .gitignore, .env.example, and starter scripts (dev/test/typecheck) plus a basic tests file.

Example: You need to spin up a new Bun-based API server in TypeScript; this skill guides initialization, applies a server-appropriate tsconfig (including path aliases if desired), and produces the initial routes/server skeleton you can build on.

Quick Start

Tell the AI: “Initialize a Bun project for a TypeScript API server and generate the recommended files and scripts.”

Frequently Asked Questions about bun-init

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I initialize a new Bun project with TypeScript configuration?

To initialize a Bun project with TypeScript, run Bun init and the skill scaffolds the project structure, applies production-friendly tsconfig compiler options, generates .gitignore and .env.example templates, and updates package scripts for immediate development.

What's the best way to scaffold a Bun API server in TypeScript?

Scaffolding a Bun API server in TypeScript is handled by applying a server-appropriate tsconfig with correct module resolution and strictness, generating starter scripts like dev and typecheck, and producing an initial routes or server skeleton to build upon.

Does this Bun project initialization require a specific runtime version?

Bun project initialization requires Bun 1.0 or higher to ensure compatibility with the TypeScript configuration, project scaffolding, environment templates, and starter scripts that the skill generates during setup.

Can I use this to set up TypeScript for different project types like CLI tools and libraries?

You can set up TypeScript for CLI tools, web apps, API servers, and libraries using this initialization. It adjusts key compiler options such as module resolution, strictness, Bun types, and JSX target based on your specific project type.

What files and scripts are generated when starting a Bun and TypeScript project?

Starting a Bun and TypeScript project generates a clean project structure, .gitignore file, .env.example template, and starter scripts for dev, test, and typecheck, along with a basic tests file to begin development immediately.

Why should I use an optimized Bun starting template instead of manual TypeScript setup?

Using an optimized Bun starting template eliminates guessing TypeScript settings by automatically applying sensible compiler options and practical setup extras, allowing you to start building immediately without manually configuring tsconfig and project scripts.