LKLocusKitv0.1.0
Next.js 15 · TypeScript · Drizzle · Supabase

A modular B2B PropTech & Real Estate engineering framework.

LocusKit gives you one shared data model and a component library, then lets you bolt capabilities on as independent workspace modules — investor analytics, on-chain settlement, and whatever you build next.

Core Engine
@locuskit/core

The single source of truth: multi-tenant Drizzle schema, RBAC, booking engine, payment ledger and the R2/S3 media pipeline.

  • Drizzle ORM on Supabase Postgres
  • Row-scoped multi-tenancy via tenant_id
  • Zod-validated service layer + AppError contract
Design system
@locuskit/ui

Shadcn UI components on Radix primitives and Tailwind CSS v4, exported as a workspace package so every surface renders identically.

  • Single CSS-first token layer (light + dark)
  • Server-component friendly, RSC-safe exports
  • Consumed via transpilePackages — no build step
Pluggable modules
@locuskit/module-*

Opt-in capabilities that read and write through the Core Engine. Drop a module in to enable a feature, remove it to disable it.

  • Module-local environment contracts
  • No Core Engine coupling or circular deps
  • Independently type-checked and linted
Registered modules
Resolved at runtime from each module's environment contract.
Investor Analytics@locuskit/module-investor
enabled

Turns the shared bookings/properties schema into portfolio, occupancy and ROI reporting.

Crypto Payments@locuskit/module-crypto
needs env

Verifies EVM (viem) and Solana (@solana/web3.js) settlements, then reconciles the booking.

missing: CRYPTO_EVM_RPC_URL, CRYPTO_TREASURY_EVM_ADDRESS, CRYPTO_TREASURY_SOLANA_ADDRESS

Quick start
The whole workspace runs on pnpm + Turborepo.
pnpm install
cp .env.example .env

# Drizzle → Supabase Postgres
pnpm db:push

# Core Engine + app on :3000
pnpm dev