A library to explore and search dance move video explanations
README.md

Dance Library #

A video-centric reference of dance moves and steps — each entry pairs a YouTube or Vimeo clip with a written breakdown, style, difficulty, and tags. Browse and filter the library from the home page, or link directly to an individual move.

Built with Astro, a React island for filtering, and Tailwind CSS. Package manager is bun.

Getting started #

bun install
bun run dev

Then open http://localhost:4321.

Scripts #

Command Action
bun run dev Start the local dev server
bun run build Build the static site to dist/
bun run preview Preview the production build locally
bun run check Type-check the project with astro check
bun run test Run the unit tests (vitest)

Adding a move #

Every move is a Markdown file in src/content/moves/. To add one, copy an existing file (e.g. src/content/moves/cross-body-lead.md) and fill in the frontmatter:

---
title: Your Move Name
style: salsa          # any free-text style, e.g. salsa, bachata, tango
difficulty: beginner  # beginner | intermediate | advanced
tags: ["turn", "styling"]
video: "https://www.youtube.com/watch?v=..."   # YouTube or Vimeo URL
description: A one-line summary shown on the card.
draft: false           # set true to hide from listings while you work on it
---

Write the breakdown, common mistakes, etc. as Markdown here.

The file's name becomes its URL slug (e.g. your-move-name.md → /moves/your-move-name). No other file needs to change — the home page, filters, and detail page all read from this collection automatically.

Project structure #

src/
  content/moves/       Markdown entries (the actual dance moves)
  content.config.ts    Schema for the moves collection
  components/
    MoveBrowser.tsx     React island: search + facet filtering
    VideoEmbed.astro    Turns a video URL into a responsive embed
  layouts/BaseLayout.astro
  lib/
    filterMoves.ts      Pure filtering logic (unit tested)
    video.ts             URL parsing for YouTube/Vimeo (unit tested)
  pages/
    index.astro          Home page / browser
    moves/[...slug].astro  Move detail page