高速イテレーション期 · API とドキュメントは変更される場合があります
Liri Liri ドキュメント
すべてのドキュメント
JA

ドキュメントは現在英語のみ提供しています。

This page is synced from app/docs/快速入门/setup.md in the GitHub repository. If it differs from the source, the repository wins.

Environment Setup

Development environment

  • Editor: VS Code or WebStorm
  • Node version manager: nvm-windows (Windows) or nvm (macOS/Linux)
  • Package manager: Bun (recommended) or npm/pnpm/yarn
  • TypeScript + JavaScript
  • ESLint
  • Prettier
  • Rust (for native module development)

Development commands

# Install all dependencies (including dev dependencies)
bun install

# Run tests
bun test

# Type check
npx tsc --noEmit

# Lint code
bun run lint

Production environment

Environment variables

VariableDescriptionDefault
DEEPSEEK_API_KEYDeepSeek API key (get one at: https://platform.deepseek.com/api_keys)-
DEEPSEEK_BASE_URLDeepSeek API endpointhttps://api.deepseek.com
DEEPSEEK_MODELDeepSeek model namedeepseek-chat
LOG_LEVELLog levelinfo
PORTService port3000
NODE_ENVRuntime environmentdevelopment

Performance tuning

# Build optimization
bun run build

# Set production environment
NODE_ENV=production bun run start

Database configuration

Liri persists data on the filesystem. Default storage paths:

  • Session data: data/sessions/
  • Cache data: data/cache/
  • Log files: logs/
  • OAuth tokens: data/oauth-tokens.json

ソースファイル: app/docs/快速入门/setup.md