๐ 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.