Discord π¬ | Demo π₯οΈ | Docs π | Deploy Locally in 30 Sec! π
Qlarr is an open-source framework for creating and running customizable, scientific, and offline-first surveys as code on all platforms. Surveys are defined using JSON to represent UI-agnostic survey components and JavaScript instructions to represent complex survey logic.
This repository is a monorepo containing the web frontend, the API backend, and deployment orchestration.
Repository Layout
| Directory | What it is | Docs |
|---|---|---|
frontend/ |
React web app β WYSIWYG survey editor, survey renderer, and admin GUI | frontend/README.md |
backend/ |
NestJS API server β survey CRUD, run/navigation, responses, exports, offline sync, auth | backend/README.md |
deploy/ |
Docker Compose + Caddy to run frontend and backend together | β |
Each app installs independently (its own package-lock.json) β there is no root package.json or npm workspace. Run frontend commands from frontend/ and backend commands from backend/.
Key Features
- π Survey As Code β Write survey structure in JSON, and survey logic in JavaScript
- π΄ Offline-First Design β Collect data anywhere without internet connectivity
- β° Conditional Logic & Skip Logic β Advanced branching based on user responses
- β Input Validation β Ensure data quality with built-in validation checks
- π² Randomization & Sampling β Randomize questions and options with weighted priorities
- π Multilingual Surveys β Support for multiple languages
- π Piping β Reference and display values from previous answers
- β¬ οΈβ‘οΈ Flexible Navigation β All questions, page-by-page, or question-by-question
- π¨ Conditional Formatting β Dynamic styling based on responses
- β±οΈπ Time Limits & Scoring (WIP) β Perfect for quizzes and timed assessments
Quick Start
The easiest way to run the full stack locally is with Docker Compose:
git clone https://github.com/qlarr-surveys/frontend.git qlarr
cd qlarr/deploy
docker-compose up
See the deployment guide for details. To run either app on its own for development, follow the setup in frontend/README.md or backend/README.md.
Architecture
The Qlarr ecosystem is made up of:
- Survey Engine (KMP) β Core UI-agnostic engine that parses survey definitions, generates state machines, and manages survey execution
- Survey Engine Script β JavaScript validation library for dynamic survey instructions
- Backend (
backend/) β NestJS application exposing REST APIs for survey CRUD, offline sync, auth, and administration - Frontend (
frontend/) β React web application for survey editing, rendering, and management - Android β Native app that reuses the same Survey Engine to render and run surveys offline
Contributing
We welcome contributors! The easiest way to get involved:
- Join our Discord server and talk to us directly
- For new features: start a Discussion / Idea
- For bugs: raise an issue with clear steps to reproduce β export the survey with the issue and include it in your bug report
See CONTRIBUTING.md for more.
License
Open-source β see LICENSE for details.
