Quickstart
Quickstart
Section titled “Quickstart”This guide gets Juca running on your machine with the minimum viable configuration. For a complete setup including all optional services, see Installation.
Prerequisites
Section titled “Prerequisites”- Node.js 20+ — verify with
node -v - npm — ships with Node.js
- At least one LLM API key (Anthropic recommended)
1. Clone and Install
Section titled “1. Clone and Install”git clone https://github.com/sensdiego/juca.gitcd jucanpm install2. Configure Environment
Section titled “2. Configure Environment”Create a .env.local file with the minimum required variables:
# Required — at least one LLM providerANTHROPIC_API_KEY=sk-ant-your-key-hereGROQ_API_KEY=gsk_your-key-here
# Skip authentication for local developmentENABLE_DEV_AUTH=true3. Start the Dev Server
Section titled “3. Start the Dev Server”npm run devThe Turbopack dev server starts at http://localhost:3000.
4. First Interaction
Section titled “4. First Interaction”- Open http://localhost:3000 in your browser
- You’ll see the WorkCanvas with the Composer input at the bottom
- Type a legal query, e.g.: “Qual a jurisprudência do STJ sobre responsabilidade civil por dano moral?”
- Watch as blocks appear in real-time via SSE streaming — the system detects your intent, routes to the appropriate tool, and renders structured results
Available Scripts
Section titled “Available Scripts”| Script | Command | Purpose |
|---|---|---|
| Dev server | npm run dev | Start Turbopack dev server |
| Unit tests | npm test | Run Vitest unit tests |
| E2E tests | npm run test:e2e | Run Playwright E2E tests |
| Lint | npm run lint | ESLint check |
| Coverage | npm run test:coverage | Generate V8 coverage report |
Next Steps
Section titled “Next Steps”- Full Installation — Set up all optional services (Neo4j, embedding service, auth providers)
- Environment Variables — Complete reference for all 30+ env vars
- Architecture Overview — Understand how Juca’s hub model works