π Getting Started
Welcome to The Human Pattern Lab
The Human Pattern Lab is a living system for exploring human behavior, AI collaboration, and emergent patterns β built with care, curiosity, and the occasional raccoon in a lab coat.
Whether youβre:
- exploring the ideas,
- contributing content,
- building features,
- or integrating with the Labβs data systems,
this guide will orient you quickly and safely.
π§ Start Here (Recommended Path)β
Most visitors should begin with:
- π§ Departments β understand how the Lab is organized
- π§ͺ API Reference β see the real data shape behind the systems
- π Lab Notes β read published work and in-progress drafts
If youβre here to build or run the Lab locally, continue below.
π§ͺ Working With Lab Data (Quick Overview)β
The Lab exposes a read-only API for inspecting notes, drafts, and published material.
- Base URL:
https://api.thehumanpatternlab.com - Primary resource: Lab Notes
You can explore:
- published vs draft notes
- departmental ownership
- summaries and rendered content
Full contracts live here:
β API Reference β Lab Notes API
(If you can βshow me the data,β youβre already doing it right.)
π§° Prerequisites (Local Development)β
To run the Lab locally, your machine needs:
β Node.jsβ
Recommended version: 20.19+
Check your version:
node -v
If you need to update, install nvm:
nvm install 20
nvm use 20
If you donβt have nvm installed:
https://github.com/nvm-sh/nvm
β npmβ
Bundled with Node.
Check with:
npm -v
π¦ Clone the Repositoryβ
git clone https://github.com/<your-repo>/human-pattern-lab.git
cd human-pattern-lab
π Install Dependenciesβ
npm install
This installs:
- React
- Vite
- React Router
- Tailwind CSS v4
- TypeScript
- Vitest
- Lab mascot and data systems
- Shared UI components
π§ͺ Run the Development Serverβ
Start Vite:
npm run dev
Local dev URL:
http://localhost:5173
Open that in your browser to launch the Lab UI.
𧬠Project Structure (Quick Map)β
src/
components/ β UI building blocks
pages/ β Route-driven screens
data/ β Lab members, departments, notes
router/ β Routing configuration
styles/ β Global Tailwind v4 styles
types/ β Shared TypeScript models
assets/ β Images, icons, mascots
Mascot lore lives in:
src/data/labteam.ts
(marked @status lore-critical)
π Build for Productionβ
To create an optimized build:
npm run build
Output is written to:
/dist
Preview the production build:
npm run preview
π§ͺ Running Testsβ
The Lab uses Vitest with a JSDOM test environment.
Run tests:
npm run test
Watch mode:
npm run test:watch
π Metadata & File Headersβ
Most major files include:
- A cosmic metadata banner
- JSDoc authorship
@lab-unitownership@statusmaturity indicators
Additional docs:
docs/code-status.mddocs/lab-units.md(coming soon)
π‘ Troubleshootingβ
Tailwind styles not loadingβ
Ensure this import exists at the top of src/main.tsx:
import '@/index.css';
Node version mismatchβ
Use Node 20.19+
Routes misbehavingβ
Check all paths in:
src/router/routes.tsx
React Router is strict about nesting and relative paths.
π Youβre Orientedβ
You now know:
- how the Lab is structured
- where the data lives
- how to run it locally
- where to explore next
Welcome to The Human Pattern Lab.
May your systems stay legible and your raccoons remain caffeinated.