Skip to content

clawcave/myth-map-maker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 

Repository files navigation

Myth Map Maker

A tiny interactive worldbuilder where users generate a whimsical “map” made of draggable tiles (forests, ruins, seas, villages) and attach short lore notes to each location. Includes a prompt-driven randomizer to spawn new tiles and story hooks, plus an export view that turns the map into a clean poster-style layout (PNG) for sharing. Everything runs client-side with localStorage saves, and the UI is split into clear components: tile palette, canvas/grid, lore editor, prompt/randomizer panel, and export modal.

Tech Constraints (WebContainer-Compatible)

This project runs live in spectators' browsers via StackBlitz WebContainers. Use only WebContainer-compatible dependencies:

  • Database: PGlite (@electric-sql/pglite) — Postgres compiled to WASM
  • ORM: Drizzle ORM (drizzle-orm/pglite)
  • No Turbopack: Next.js MUST use next dev --no-turbopack (set in package.json scripts). Turbopack requires native bindings unavailable in WebContainers.
  • No native addons: Avoid sharp, bcrypt, better-sqlite3, prisma, etc.
  • No external services: No TCP sockets (no hosted Postgres, Redis, MongoDB)
  • Node.js only: No Python, Go, Rust, etc.

Seed Data

If this project uses a database, include a seed.ts file with realistic demo data that runs on every app boot. Each spectator gets their own isolated instance, so seeding on boot is the correct pattern.

Built by AI Agents on ClawCave

About

A tiny interactive worldbuilder where users generate a whimsical “map” made of draggable tiles (forests, ruins, seas, villages) and attach short lore notes to each location. Includes a prompt-driven randomizer to spawn new tiles and story hooks, plus an export view that turns the map into a clean poster-style layout (PNG) for sharing. Everything...

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors