How mubashshiradeeb/stratakort works
Stratakort is a browser-based map-poster generator. The main workflow is to enter the editor, search for a place, customize the live map and poster, preview the composition, then export a print-ready PNG. Its major branches also include a marketing gallery with live map thumbnails, geocoding, and the export-rendering internals. Edges are limited to relationships shown in excerpts, the source index, or README; some unsampled editor-control wiring is therefore omitted.
Main entry points: MapCanvas.tsx Live map · store.ts Editor state · PosterOverlay.tsx Poster preview · useExportPoster.ts Export orchestration
Components 28
Product entry
- Landing page
app/page.tsx - Poster showcase
components/landing/PosterMock.tsx - Live map thumbnail
components/landing/LiveMapThumbnail.tsx - Sample posters
lib/sampleData.ts
Map editor
- Editor route
app/create/page.tsx - Editor assembly
components/editor/MapEditor.tsx - Live map
components/editor/MapCanvas.tsx - Editor controls
components/editor - Editor state
lib/store.ts - Map references
lib/mapContext.tsx - Map style engine
lib/mapStyles.ts - Route editing
components/editor/RouteControls.tsx
Poster design
- Theme palettes
lib/palettes.ts - Map filters
lib/mapFilters.ts - Poster preview
components/editor/PosterOverlay.tsx - Typography controls
components/editor/TypographyControls.tsx - Aspect ratios
lib/aspectRatioPresets.ts - Font pairings
lib/fontPairs.ts
Rendering and export
- Export orchestration
lib/useExportPoster.ts - Canvas compositor
lib/export.ts - Grain renderer
lib/grain.ts
Location search
- Location panel
components/editor/LocationPanel.tsx - Location search
components/editor/LocationSearch.tsx - Search logic
lib/useLocationSearch.ts - Geocoding client
lib/geocode.ts - Geocoding proxy
app/api/geocode/route.ts
Other components
- Visitor
- Nominatim
Connections 35
- Visitor → Landing page: opens
app/page.tsx - Landing page → Poster showcase: shows
app/page.tsx - Poster showcase → Live map thumbnail: renders
components/landing/PosterMock.tsx - Poster showcase → Theme palettes: uses themes
components/landing/PosterMock.tsx - Poster showcase → Sample posters: uses samples
components/landing/PosterMock.tsx - Visitor → Editor route: starts creating
- Editor route → Editor assembly: renders
app/create/page.tsx - Editor assembly → Map references: uses references
components/editor/MapEditor.tsx - Live map → Editor state: reads settings
components/editor/MapCanvas.tsx - Live map → Map style engine: builds map style
components/editor/MapCanvas.tsx - Live map → Map filters: applies filters
components/editor/MapCanvas.tsx - Live map → Map references: uses references
components/editor/MapCanvas.tsx - Live map → Theme palettes: uses palette
- Live map → Nominatim: loads map tiles
- Location search → Search logic: uses search
components/editor/LocationSearch.tsx - Location search → Editor state: sets location
components/editor/LocationSearch.tsx - Search logic → Geocoding client: searches
lib/useLocationSearch.ts - Geocoding client → Geocoding proxy: requests proxy
- Geocoding proxy → Nominatim: forwards query
- Route editing → Editor state: updates route
components/editor/RouteControls.tsx - Route editing → Search logic: uses search
components/editor/RouteControls.tsx - Poster preview → Editor state: reads settings
components/editor/PosterOverlay.tsx - Poster preview → Map references: reads map
components/editor/PosterOverlay.tsx - Poster preview → Canvas compositor: uses layout
components/editor/PosterOverlay.tsx - Poster preview → Font pairings: uses fonts
components/editor/PosterOverlay.tsx - Poster preview → Grain renderer: uses grain
components/editor/PosterOverlay.tsx - Typography controls → Editor state: updates settings
components/editor/TypographyControls.tsx - Typography controls → Font pairings: uses fonts
components/editor/TypographyControls.tsx - Visitor → Export orchestration: requests export
- Export orchestration → Editor state: reads settings
lib/useExportPoster.ts - Export orchestration → Map references: captures map
lib/useExportPoster.ts - Export orchestration → Canvas compositor: renders poster
lib/useExportPoster.ts - Export orchestration → Aspect ratios: gets preset
lib/useExportPoster.ts - Canvas compositor → Grain renderer: draws grain
lib/export.ts - Canvas compositor → Aspect ratios: gets preset
lib/export.ts