init

Lightweight project bootstrapper

Go Execution GitHub

Embed and write template files (LICENSE, CONTRIBUTING.md) at compile time. Refuses to overwrite existing files. Fast project scaffolding for new tools.

Features

  • Embeds templates at compile time
  • Writes LICENSE, CONTRIBUTING.md, and scaffolding
  • Refuses to overwrite existing files
  • MCP server and CLI modes

Install

go install github.com/hegner123/init@latest

The Problem: Repeating boilerplate for every new project

# Every new tool needs:
# - LICENSE file
# - CONTRIBUTING.md
# - .gitignore
# - Basic project structure
#
# Copy-paste from last project, update names,
# forget something, fix it later.

Solution

$ init --cli --name my-new-tool --license MIT

Output

{"created":["LICENSE","CONTRIBUTING.md",".gitignore"],"skipped":[],"name":"my-new-tool"}

Comparison

MetricValue
TemplatesEmbedded at compile time - no external files
SafetyNever overwrites existing files