Skip to content

Local Development

Nyravio is organized into two main components: a Java backend and a Svelte frontend.

Component Requirement
Backend JDK 21 (Eclipse Temurin recommended)
Frontend Node.js 22
Database Docker (for PostgreSQL via Testcontainers)
Build Gradle 9 (included via wrapper)
Terminal window
git clone https://github.com/LexProfi/Nyravio.git
cd Nyravio
Terminal window
cd backend
# Build and run all tests
./gradlew build
# Run the application
./gradlew bootRun

Integration tests use Testcontainers with PostgreSQL and pgvector:

Terminal window
./gradlew postgresIntegrationTest

This requires a running Docker daemon.

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
Terminal window
cd frontend
# Install dependencies
npm ci
# Type checking
npm run check
# Lint
npm run lint
# Unit tests
npm run test:unit
# Build
npm run build
# Development server
npm run dev
  • Svelte 5 with SvelteKit 3
  • TypeScript 6
  • Tailwind CSS 4
  • Vite for bundling

Start only the infrastructure services:

Terminal window
# From the project root
docker compose up -d db tika
# Backend (from backend/)
./gradlew bootRun
# Frontend (from frontend/)
npm run dev

This gives you hot-reload for both backend and frontend while using Docker only for PostgreSQL and Tika.

Terminal window
./gradlew build # Full build with tests
./gradlew postgresIntegrationTest # PostgreSQL integration tests
./gradlew test # Unit tests only
Terminal window
npm run check # Type checking
npm run lint # ESLint
npm run test:unit # Vitest unit tests
npm run build # Production build
Terminal window
docker compose up -d --build
bash scripts/ci/smoke-test.sh
  • Follow established architecture and coding conventions
  • Backend: standard Java/Spring patterns
  • Frontend: Svelte component conventions, TypeScript strict mode
  • Keep changes focused — no unrelated modifications