Open-source foundation for AI-assisted sales quoting.
Turn customer requests, product knowledge, and past context into reviewed offer drafts.
Website · Getting started · Feature walkthrough · Modules guide
Solivio helps sales teams handle quoting workflows where product catalogs are large, offers contain many line items, and the knowledge needed to prepare a good quote is spread across systems and people.
The product path is intentionally practical: a customer sends a request, Solivio extracts requirements, searches the catalog, prepares a draft offer, and keeps a salesperson in the loop to review, edit, validate, accept, and export the final result. The public product and implementation story lives at solivio.ai; this repository is the open-source software foundation behind it.
Solivio is created by Derave and released under the MIT license.
Solivio is built for quote processes that are too manual, too inconsistent, or too dependent on individual sales experts. In its current open-source shape, it provides:
- product catalog import, search, embeddings, and product matching,
- customer and intake request management,
- AI-assisted draft offer generation from raw customer input,
- an offer review workspace with editable line items, validation, revisions, PDF preview, and acceptance flow,
- an offer assistant that can answer questions and help edit drafts,
- historical order recall for agents when repeat buying patterns matter,
- an internal knowledge base with semantic retrieval that grounds the agents in company-specific rules,
- CSV import capabilities for products, customers, and historical orders,
- a modular architecture for company-specific integrations and workflows.
The goal is not to remove the salesperson from the process. The goal is to remove repetitive operational work, make quoting knowledge easier to reuse, and turn the route from inquiry to reviewed offer into a clearer, faster pipeline.
- A customer request is entered or imported.
- Solivio reads the request with available business context: catalog data, customer data, past orders, pricing notes, and implementation-specific guidance.
- Agents extract requirements, match products, and prepare a structured draft.
- A salesperson reviews the draft, edits line items, uses the assistant when helpful, checks validation signals, and accepts or revises the offer.
- Accepted offers can be previewed and downloaded as PDFs. Downstream steps such as ERP sync, approval workflows, or final document templates are meant to be implemented through modules.
Solivio is a modular monolith. The core app stays small; feature code lives in modules that are compiled into the app at build time.
| Path | Purpose |
|---|---|
apps/solivio |
The Next.js app: auth, app shell, runtime boot, health checks, migrations, and generated module wiring. |
modules |
First-party feature modules such as catalog, customers, offers, offer chat, knowledge base, CSV import, order history, and product sync. |
sdk |
@solivio/sdk, the public contract modules build against. |
packages/domain |
Shared domain types, workflow constants, and fixtures. |
packages/ui |
Shared shadcn/ui component kit. |
packages/theme |
Design tokens used by the app and modules. |
scripts/generate |
Build-time module discovery, validation, and code generation. |
docs |
Contributor architecture, module, database, testing, API, and ADR documentation. |
apps/docs |
User-facing documentation site source. |
infra/postgres |
Local Postgres bootstrap files. |
Modules are TypeScript source packages under modules/<id>/. Each module can
contribute pages, API routes, services, events, jobs, agent tools, importers,
translations, navigation entries, UI slots, permissions, and its own Drizzle
migration journal.
solivio.config.ts is the deployment manifest. yarn generate reads it,
discovers enabled modules by file convention, validates the module graph, and
emits the app-router stubs and registries the Next.js app builds against.
Enabling a module is therefore a config + regenerate + rebuild operation, not a
runtime plugin install.
The default repository configuration enables:
catalog- products, prices, embeddings, and semantic search,customers- customers and intake requests,offers- offer drafts, line items, revisions, PDF rendering, and offer UI,offer-chat- review chat threads, messages, and the salesperson copilot,order-history- agent tools for recalling a customer's past orders,knowledge-base- internal knowledge base with semantic retrieval for agents,csv-import- CSV importers for products, customers, and historical orders,products-sync- a reference scheduled product-sync module.
Start with the Modules guide
for the operating model, then use
docs/module-system.md,
docs/codegen.md, and
docs/contracts.md when authoring modules or changing the
module boundary. modules/products-sync is the reference example for the full
module surface.
Requirements:
- Node.js
>=24.15.0 - Yarn
>=4.14.1 - Docker
Start from source:
yarn install
cp apps/solivio/.env.example apps/solivio/.env.local
yarn setup
yarn devBefore the first run, set BETTER_AUTH_SECRET in
apps/solivio/.env.local. A local value can be generated with:
openssl rand -base64 32OPENAI_API_KEY is optional for launching the app. Without it, AI-backed
features such as embeddings, semantic search, offer generation, and the offer
assistant are unavailable; the rest of the app still runs.
Open http://localhost:3000, create the first user from the login screen, and
load example data if you want content to explore:
yarn seed # Polish example data (default)
yarn seed --lang en # English example dataBoth languages cover the same electrical-materials domain (products, customers,
and a cross-referenced knowledge base). Example import files live under
examples/import/<lang>/.
For the Docker image path, see the
Getting started guide.
The published image is ghcr.io/solivio-ai/solivio-app.
yarn dev # generator watch mode + Next.js on :3000
yarn setup # start Postgres, generate wiring, apply migrations
yarn generate # regenerate module registries and app-router stubs
yarn biome check --write . # format, sort imports, apply safe lint fixes
yarn check # Biome + module boundary checker
yarn typecheck # type-check all workspaces
yarn test # Vitest suite
yarn e2e # Playwright smoke tests
yarn docs:dev # local docs site on :4321
yarn validate # generate --check + check + typecheck + tests
yarn validate:all # full local handoff suiteRun yarn generate after changing module files or solivio.config.ts. Run
yarn setup on a fresh checkout and again after new migrations are added.
- Getting started - Docker quick start and source checkout.
- Feature walkthrough - import a catalog, generate a draft, review, chat, accept, and download.
- Modules guide - how a deployment chooses and configures modules.
- Extending Solivio - custom modules without forking the base repository.
- Architecture - core/module split, pipeline shape, extension surfaces, and out-of-scope boundaries.
- Module system - module anatomy and authoring rules.
- Code generation - what
yarn generatereads, validates, and emits. - SDK contracts - the public
@solivio/sdksurface. - Database and ERD - schema ownership and migration model.
- API - route conventions and OpenAPI contract docs.
- Testing - Vitest, module tests, and Playwright strategy.
- Publishing and Deployment - image build and production deployment notes.
The AI benchmark suite lives in
apps/solivio/benchmarks. It contains a
fixed set of offer-generation scenarios and deterministic scoring rules for
tracking agent quality over time.
yarn benchmark
yarn benchmark:reportContributions should keep the default demo path simple, documented, and runnable without mandatory external services.
When adding functionality:
- keep feature code inside modules whenever it belongs to a business domain,
- use
@solivio/sdkand@solivio/sdk/runtimeinstead of app internals, - preserve module boundaries: no runtime imports between modules, no SQL joins across module tables, and no module-owned access to app internals,
- prefer mocks until the data model and integration boundary are clear,
- document new setup, environment, migration, or operator requirements,
- run
yarn biome check --write .,yarn check, andyarn testbefore handing changes back; addyarn typecheckfor TypeScript, server, API, or React behavior changes.
If you are new to the codebase, read docs/architecture.md and apps/docs/src/content/docs/guides/modules.md before making structural changes.
