Markdown Converter
Agent skill for markdown-converter
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
Sign in to like and favorite skills
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
This is a DnD Map Builder - a web-based, interactive map builder for Dungeon Masters to create custom maps for tabletop role-playing games. The project uses Next.js 14+ with TypeScript and follows a modern React architecture.
Live Demo: https://zhuzh.dev Repository: https://github.com/zac-computer/dnd-map-builder
Based on the PRD specifications, the following commands should be available:
# Install dependencies npm install # Start development server npm run dev # Build for production npm run build # Start production server npm start # Run linting npm run lint # Run type checking npm run type-check
The application runs at http://localhost:3000
src/ ├── app/ # Next.js App Router pages and layouts │ ├── (dashboard)/ # Dashboard route group │ ├── globals.css # Global styles │ └── layout.tsx # Root layout ├── components/ │ ├── core/ # Core app components (Canvas, Toolbar) │ └── ui/ # Reusable UI components (Button, Tooltip) ├── lib/ │ ├── hooks/ # Custom React hooks (useMapStore) │ └── utils.ts # Utility functions └── stores/ └── mapStore.ts # Zustand store for map state
The application uses Zustand for state management with the following key state:
The map rendering uses HTML5 Canvas API directly. Key considerations:
The application includes pre-built demo maps in
src/lib/demoMaps.ts:
The Riverside Tavern (30x25 grid)
Treacherous Mountain Pass (25x20 grid)
Map data is persisted to localStorage with structure containing: