Getting Started
Prerequisites
- Node.js 18+
- pnpm (recommended) or npm
Installation
bash
cd site
pnpm installDevelopment
Start the development server:
bash
pnpm devVisit http://localhost:5173 in your browser.
Building
Create a production build (main app + docs):
bash
pnpm buildOutput:
dist/- Main appdist/docs/- VitePress documentation (auto-copied)
Build steps (automated):
- Build main app →
dist/ - Build VitePress docs →
docs/.vitepress/dist/ - Copy docs to
dist/docs/
Preview Production Build
bash
darkhttpd dist --port 8080Access:
- Main app: http://localhost:8080/
- Docs: http://localhost:8080/docs/
Both apps served from single directory!
OpenBSD Setup
On OpenBSD, the required native bindings are automatically downloaded during pnpm install via the postinstall hook.
The installation scripts will fetch binaries from:
If you need to manually download or update bindings:
bash
# Run the installation scripts directly
bash scripts/install-tailwind-openbsd.sh
bash scripts/install-rolldown-openbsd.shThe scripts will:
- Download missing binaries from GitHub releases
- Patch node_modules to use the OpenBSD bindings
- Verify the installation
Testing
Run tests:
bash
pnpm testWatch mode:
bash
pnpm test:watchProject Structure
site/
├── src/
│ ├── components/ # UI components
│ ├── lib/ # Utilities
│ └── pages/ # Page components
├── public/
│ └── data/ # Static data files
├── docs/ # Documentation
└── dist/ # Build output