Skip to main content
InsightHub is a Next.js application. The fastest way to run it locally is Lite mode, which uses a built-in SQLite database and local credentials — no external services required beyond an Alquimia Runtime instance.

Prerequisites

  • Node.js 20+
  • A running Alquimia Runtime instance (its URL becomes ASSISTANT_BASEURL)

Lite mode (no database setup)

Lite mode replaces PostgreSQL with SQLite and Keycloak with local-credentials login. It is designed for development and demos — zero infrastructure besides Node.
1

Install dependencies

2

Configure your environment

Open .env.local and set at minimum:
3

Start the dev server

Open http://localhost:3000.
The SQLite database and tables are created automatically on first startup. You do not need to run migrations in Lite mode.

Production setup (PostgreSQL + Keycloak)

For production deployments with a real database and enterprise SSO:
1

Install dependencies

2

Configure your environment

Copy .env.example to .env.local. Set DB_STRATEGY=postgres with a valid DATABASE_URL, and AUTH_STRATEGY=keycloak with your Keycloak credentials.
3

Run database migrations

4

Start the server

Key environment variables

See .env.example for the full list, including optional observability variables.

Docker

If you prefer Docker:

Next steps

First steps

Log in and create your first topic.