Skip to content

Miyamura80/Bun-Template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

79 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bun-template

Bun-Template

🥟 Agent-ergonomic opinionated Bun template

Key FeaturesQuick StartConfigurationCreditsAbout the Core Contributors

Project Version Bun GitHub repo size GitHub Actions Workflow Status


Bun-Template Demo

Key Features

Feature Description
Bun runtime Fast TypeScript execution and package management
Zod config YAML + env var config with Zod schema validation
Biome Linting and formatting
knip Dead code and unused dependency detection
dependency-cruiser Module boundary enforcement
jscpd Duplicate code detection
prek Pre-commit hooks
Fumadocs Documentation site (Next.js)
Vite + React Frontend app

Quick Start

# Interactive onboarding
make onboard

# Install dependencies and run
make all

# Format code
make fmt

# Run tests
make test

# Run all CI checks (lint, deadcode, typecheck, etc.)
make ci

Configuration

Config is loaded from YAML with environment variable overrides:

import { globalConfig } from "@/config";

// Access config values from src/config/global-config.yaml
globalConfig.exampleParent.exampleChild;

// Access secrets from .env
globalConfig.openaiApiKey;

// Feature flags (overridable via FEATURES__FLAG_NAME=true)
globalConfig.features.newUi;

Precedence (highest to lowest):

  1. Environment variables (with __ for nesting, e.g. DEFAULT_LLM__DEFAULT_MAX_TOKENS=50000)
  2. .global-config.yaml (local override, git-ignored)
  3. src/config/production-config.yaml (if DEV_ENV=prod)
  4. src/config/global-config.yaml (base config)

Credits

  • Bun - JavaScript runtime and package manager
  • Biome - Linter and formatter
  • Zod - TypeScript schema validation
  • prek - Pre-commit hook framework
  • Fumadocs - Documentation framework

About the Core Contributors

Made with contrib.rocks.

About

🥟 Agent-ergonomic opinionated Bun template

Resources

License

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors