Contributing
Set up the Code Insights development environment, understand the monorepo structure (CLI, dashboard, server), and submit your first contribution.
Repository structure
Code Insights is a pnpm workspace monorepo at github.com/melagiri/code-insights.
code-insights/
├── cli/ # Node.js CLI (Commander.js, SQLite, providers)
├── dashboard/ # Vite + React SPA (embedded dashboard)
└── server/ # Hono API server (serves dashboard + REST API)
Prerequisites
- Node.js 18+
- pnpm (
npm install -g pnpm)
Setup
git clone https://github.com/melagiri/code-insights
cd code-insights
pnpm installDevelopment
# CLI (watch mode)
cd cli && pnpm dev
# Dashboard (Vite dev server)
cd dashboard && pnpm dev
# Server
cd server && pnpm devBuilding
# Build all packages from repo root
pnpm buildTesting the CLI locally
cd cli
pnpm build
npm link
code-insights --versionProject conventions
- TypeScript strict mode, ES Modules
- CLI binary:
code-insights - npm package:
@code-insights/cli - Dashboard uses shadcn/ui (New York style) + Tailwind CSS 4
- SQLite schema changes require versioned migrations in
cli/src/db/
Submitting changes
- Fork the repository
- Create a feature branch:
git checkout -b feature/my-feature - Commit changes with descriptive messages
- Push and open a pull request
All PRs require a passing pnpm build across the workspace.