Local Development
Nyravio is organized into two main components: a Java backend and a Svelte frontend.
Prerequisites
Section titled “Prerequisites”| Component | Requirement |
|---|---|
| Backend | JDK 21 (Eclipse Temurin recommended) |
| Frontend | Node.js 22 |
| Database | Docker (for PostgreSQL via Testcontainers) |
| Build | Gradle 9 (included via wrapper) |
Getting started
Section titled “Getting started”git clone https://github.com/LexProfi/Nyravio.gitcd NyravioBackend development
Section titled “Backend development”cd backend
# Build and run all tests./gradlew build
# Run the application./gradlew bootRunIntegration tests
Section titled “Integration tests”Integration tests use Testcontainers with PostgreSQL and pgvector:
./gradlew postgresIntegrationTestThis requires a running Docker daemon.
Key backend modules
Section titled “Key backend modules”| Module | Responsibility |
|---|---|
identity |
Authentication, JWT, MFA, federation |
chat |
Conversations, streaming, message state |
context |
Context engine, budget assembly |
llm |
Model adapters (OpenAI, Anthropic, Google, Ollama) |
corpus |
Knowledge base, ingestion, retrieval |
memory |
Personal and project-scoped memory |
tool |
Tool management and execution |
toolserver |
MCP server integration |
agent |
Multi-step task orchestration |
artifact |
Artifact management and canvas |
permission |
Fine-grained access control |
Frontend development
Section titled “Frontend development”cd frontend
# Install dependenciesnpm ci
# Type checkingnpm run check
# Lintnpm run lint
# Unit testsnpm run test:unit
# Buildnpm run build
# Development servernpm run devFrontend stack
Section titled “Frontend stack”- Svelte 5 with SvelteKit 3
- TypeScript 6
- Tailwind CSS 4
- Vite for bundling
Running locally without full Docker
Section titled “Running locally without full Docker”Start only the infrastructure services:
# From the project rootdocker compose up -d db tika
# Backend (from backend/)./gradlew bootRun
# Frontend (from frontend/)npm run devThis gives you hot-reload for both backend and frontend while using Docker only for PostgreSQL and Tika.
Verification commands
Section titled “Verification commands”Backend
Section titled “Backend”./gradlew build # Full build with tests./gradlew postgresIntegrationTest # PostgreSQL integration tests./gradlew test # Unit tests onlyFrontend
Section titled “Frontend”npm run check # Type checkingnpm run lint # ESLintnpm run test:unit # Vitest unit testsnpm run build # Production buildFull Docker smoke test
Section titled “Full Docker smoke test”docker compose up -d --buildbash scripts/ci/smoke-test.shCode style
Section titled “Code style”- Follow established architecture and coding conventions
- Backend: standard Java/Spring patterns
- Frontend: Svelte component conventions, TypeScript strict mode
- Keep changes focused — no unrelated modifications
Next steps
Section titled “Next steps”- Contributing — contribution guidelines and PR process
- Architecture Overview — system design and boundaries