danny.is
July 8, 2026 ยท View on GitHub
Danny Smith's personal website โ http://danny.is
๐๏ธ Project Structure
src/
โโโ components/ # Organized component library
โ โโโ layout/ # Page structure components
โ โโโ mdx/ # Components for MDX content
โ โโโ navigation/ # Navigation components
โ โโโ ui/ # Reusable UI utilities
โโโ content/ # Content collections
โ โโโ articles/ # Long-form articles
โ โโโ notes/ # Short-form notes
โโโ icons/ # Custom SVG icons
โโโ config/ # Centralized configuration
โโโ styles/ # CSS architecture (layered partials)
โโโ utils/ # Utility functions
Commands
All commands are run from the root of the project, from a terminal:
| Command | Action |
|---|---|
bun install | Installs dependencies |
bun run dev | Starts local dev server at localhost:4321 |
bun run build | Build your production site to ./dist/ |
bun run preview | Preview your build locally, before deploying |
bun run check:all | Run all checks: types, format, lint, and tests |
bun run check:types | Run TypeScript + Astro type checking |
bun run check:lint | Run ESLint to check for issues |
bun run check:knip | Check for unused dependencies, exports, and files |
bun run check:dupes | Check for duplicate code blocks |
bun run lint:fix | Run ESLint and automatically fix issues |
bun run format | Format code with Prettier |
bun run check:format | Check if code is properly formatted |
bun run scrape-toolbox | Scrape toolbox data from betterat.work |
bun run astro ... | Run CLI commands like astro add, astro check |
bun run standard-site:sync | Sync posts to the AT Protocol network (see docs) |
Creating a New Note
New draft notes can also be created using this Chrome extension or Astro Editor.