Claude-skill-registry happiness-dashboard
Evidence framework data dashboard with DuckDB. Write SQL in markdown to create visualizations.
install
source · Clone the upstream repo
git clone https://github.com/majiayu000/claude-skill-registry
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/majiayu000/claude-skill-registry "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/data/happiness-dashboard" ~/.claude/skills/majiayu000-claude-skill-registry-happiness-dashboard && rm -rf "$T"
manifest:
skills/data/happiness-dashboard/SKILL.mdsource content
Happiness Dashboard
An interactive data dashboard using Evidence framework - write SQL queries in markdown to create visualizations.
Tech Stack
- Framework: Evidence
- Database: DuckDB (embedded)
- Frontend: Svelte
- Package Manager: pnpm
- Output:
directorybuild - Dev Port: 3000
Setup
1. Clone the Template
git clone --depth 1 https://github.com/Eng0AI/happiness-dashboard-template.git .
If the directory is not empty:
git clone --depth 1 https://github.com/Eng0AI/happiness-dashboard-template.git _temp_template mv _temp_template/* _temp_template/.* . 2>/dev/null || true rm -rf _temp_template
2. Remove Git History (Optional)
rm -rf .git git init
3. Install Dependencies
pnpm install
4. Process Data Sources
pnpm run sources
Build
pnpm run build
Generates static site in
build/ directory.
Deploy
Vercel (Recommended)
vercel pull --yes -t $VERCEL_TOKEN vercel build --prod -t $VERCEL_TOKEN vercel deploy --prebuilt --prod --yes -t $VERCEL_TOKEN
Important: Deploy from project root, not
build/ directory.
Netlify
netlify deploy --prod --dir=build
Data Sources
CSV files in
sources/happiness_score/:
- Current year happiness datahs2024.csv
- Historical happiness datahsArchive.csv
Notes
- Use pnpm (not npm) -
has.npmrc
for Evidence compatibilityshamefully-hoist=true - Build locally - Vercel/Netlify build can timeout due to DuckDB compilation (40+ min)
- Uses CSV files, no database setup needed
- Never run
in VM environmentpnpm run dev