Market research platform

Pain Intelligence Lab

An early community research project for exploring recurring needs using source-linked evidence. The current repository provides a local Next.js and Rust web app and a separate desktop app.

Product work and architecture overview by Savi Saluwadana.

Next.jsRustPostgreSQLDockerDesktopMIT

What it does

Who it serves
Builders, product teams and market researchers.
Product purpose
Local research software for exploring repeated needs and evidence-backed project ideas.
  • Source-linked research observations and evidence review.
  • Local Next.js web dashboard and Rust API using PostgreSQL.
  • Separate native desktop application with different capabilities.
  • Documented research quality and external data-use constraints.

How it works

  1. Choose and configure the self-hosted web or native desktop edition.
  2. The web dashboard sends research requests to the Rust API.
  3. The API manages research records and evidence in PostgreSQL.
  4. Review linked evidence, limits and validation before drawing conclusions.

Architecture

Next.js dashboard → Rust API → PostgreSQL; separate desktop app

Pain Intelligence Lab architectureNext.js dashboard connects to Rust API, which stores research records in PostgreSQL. Desktop is a separate edition.Next.js dashboardDesktop editionRust APIPostgreSQL
The web and desktop editions have distinct capabilities.
ComponentResponsibility
Next.js dashboardLocal research workspace and evidence review.
Rust APIResearch endpoints and evidence operations.
PostgreSQLWeb edition research data and job state.
Desktop editionSeparate native application; see its README for supported capabilities.

Current scope

The repository currently describes an early community alpha for local use. The web app and desktop app have different capabilities; source content retains third-party data-use restrictions.

Architecture summary reviewed . Repository documentation.

Contributor notes

Run locally

Configure .env from example; docker compose up --build -d --wait

Design decision

The repository offers a local Next.js/Rust/PostgreSQL web stack and a separate desktop edition.

Trade-off

Local research keeps the data close to the user but two editions have distinct setup and capabilities.

Unfinished

Early community alpha: README lists connector, import and third-party data limitations.

Licence: MIT