Skip to content

Quickstart

This guide gets Juca running on your machine with the minimum viable configuration. For a complete setup including all optional services, see Installation.

  • Node.js 20+ — verify with node -v
  • npm — ships with Node.js
  • At least one LLM API key (Anthropic recommended)
Terminal window
git clone https://github.com/sensdiego/juca.git
cd juca
npm install

Create a .env.local file with the minimum required variables:

Terminal window
# Required — at least one LLM provider
ANTHROPIC_API_KEY=sk-ant-your-key-here
GROQ_API_KEY=gsk_your-key-here
# Skip authentication for local development
ENABLE_DEV_AUTH=true
Terminal window
npm run dev

The Turbopack dev server starts at http://localhost:3000.

  1. Open http://localhost:3000 in your browser
  2. You’ll see the WorkCanvas with the Composer input at the bottom
  3. Type a legal query, e.g.: “Qual a jurisprudência do STJ sobre responsabilidade civil por dano moral?”
  4. Watch as blocks appear in real-time via SSE streaming — the system detects your intent, routes to the appropriate tool, and renders structured results
ScriptCommandPurpose
Dev servernpm run devStart Turbopack dev server
Unit testsnpm testRun Vitest unit tests
E2E testsnpm run test:e2eRun Playwright E2E tests
Lintnpm run lintESLint check
Coveragenpm run test:coverageGenerate V8 coverage report