Development Guide

How to contribute to the Locus project.

Project Structure

Locus is a monorepo managed with Turborepoarrow-up-right and Bunarrow-up-right:

locus/
├── apps/
│   ├── api/           # NestJS API server
│   ├── web/           # Next.js dashboard
│   └── www/           # Marketing website
├── packages/
│   ├── cli/           # @locusai/cli — Command-line interface
│   ├── sdk/           # @locusai/sdk — TypeScript SDK
│   ├── telegram/      # @locusai/telegram — Telegram bot
│   ├── shared/        # Shared types and utilities
│   └── ai-sdk/        # AI provider abstraction layer
└── scripts/           # Setup and deployment scripts

Setting Up the Development Environment

Prerequisites

Clone and Install

Build All Packages

Run Type Checking

Run Linting


Working on Packages

CLI

Telegram Bot

SDK


Tech Stack

Component
Technology

Monorepo

Turborepo + Bun

API

NestJS + PostgreSQL

Dashboard

Next.js (React)

CLI

TypeScript + Commander-style parsing

SDK

TypeScript

Telegram

Telegraf (Node.js Telegram framework)

AI Providers

Claude CLI, Codex CLI

Testing

Jest

Last updated