Development Setup

Development Setup

Get your development environment ready to contribute to LLPM.

Prerequisites

Before you begin, ensure you have the following installed:

  • Bun runtime (latest version recommended) - the only required JavaScript runtime
  • Git for version control

Note: Node.js is not required. LLPM uses Bun as its runtime.

Clone and Install

  1. Fork and clone the repository

    git clone https://github.com/YOUR_USERNAME/llpm.git
    cd llpm
  2. Install dependencies

    bun install

Environment Setup

Create a .env file in the project root with your API keys:

# At least one AI provider is required for testing
OPENAI_API_KEY=sk-...
ANTHROPIC_API_KEY=sk-ant-...
GROQ_API_KEY=gsk_...

# GitHub integration (optional but recommended)
GITHUB_TOKEN=ghp_...

Bun automatically loads environment variables from .env files.

Verify Setup

Run the test suite to ensure everything is working:

bun run test

Start the application in development mode:

bun run start

You should see the LLPM welcome screen and prompt.

Development Scripts

ScriptDescription
bun run startStart LLPM in development mode
bun run testRun the test suite once
bun run test:watchRun tests in watch mode
bun run test:coverageRun tests with coverage report
bun run test:uiOpen Vitest UI
bun run lintCheck for linting errors
bun run lint:fixFix auto-fixable linting errors
bun run typecheckRun TypeScript type checking
bun run formatFormat code with Prettier

Pre-commit Checklist

Before submitting a pull request, ensure:

  1. All tests pass: bun run test
  2. No linting errors: bun run lint
  3. Types check correctly: bun run typecheck
  4. Code is formatted: bun run format
  5. Coverage meets thresholds: bun run test:coverage