Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.neurometric.ai/llms.txt

Use this file to discover all available pages before exploring further.

Marketplace Setup

A Next.js marketplace for Small Language Models, built by Neurometric.ai.

Local Development (Without Docker)

npm install
npm run dev
Open http://localhost:3000.

Local Development (With Docker)

  1. Copy env file and fill in values:
    cp .env.example .env
    
  2. Start app + database:
    docker compose up
    
    The app will be available at http://localhost:3000.
  3. Run database migrations (first time or after schema changes):
    docker compose exec app npm run db:migrate
    
  4. Seed the database:
    docker compose exec app npm run db:seed
    
  5. Open Prisma Studio (database browser):
    docker compose exec app npx prisma studio --port 5555 --browser none
    
    Available at http://localhost:5555.

Database Commands

The project uses PostgreSQL with Prisma ORM.
CommandDescription
npm run db:migrateCreate and apply a new migration
npm run db:deployApply pending migrations (production)
npm run db:generateRegenerate Prisma Client after schema changes
npm run db:seedSeed the database
npm run db:pushPush schema changes without a migration file
npm run db:studioOpen Prisma Studio

Analytics

PostHog tracking is set up via src/lib/analytics.ts. Use the track() helper to send events:
import { track } from "@/lib/analytics";

track("model_viewed", { model_id: "phi-3-mini" });
track("build_form_submitted");