Skip to content
 
 

Repository files navigation

TerraInk

Website Badge Email Badge LinkedIn Badge Instagram YouTube Threads Reddit TikTok Product Hunt

Bun Badge Vite Badge React Badge JavaScript Badge TypeScript Badge OpenStreetMap Badge MapLibre Badge GitHub Badge Cloudflare Badge Docker Badge

Note: TerraInk is still in development. Every feedback is appreciated. This is a for-fun, open-source project, and community contributions are very welcome.

Acknowledgment

This project is a JavaScript reimplementation inspired by the original MapToPoster originalankur/maptoposter by Ankur Gupta (MIT license). My app is built using Bun, React, and TypeScript. It allows users to create custom city map posters with various styling options, leveraging OpenStreetMap data rendered via MapLibre and OpenFreeMap vector tiles.

Features

  • Custom city map posters for any location in the world, powered by real OpenStreetMap data
  • Smart geocoding — search for any city or region by name, or enter coordinates manually
  • Rich theme system — choose from dozens of curated themes or build your own custom color palette
  • Detailed map layers — roads, water bodies, parks, and building footprints with per-layer styling
  • Typography controls — set city/country display labels and load any Google Fonts family
  • High-resolution PNG export — download a print-ready poster at any defined dimension

Data Providers and Mapping Stack

User Interface

Showcase

All showcase images are stored in public/assets/showcase/.

Featured Examples

Featured showcase example 1 Featured showcase example 2

Run

bun install
bun run dev

Environment

Copy .env.example to .env and fill in your values. See CONTRIBUTING.md for a description of each variable.

Build

bun run build

Deploy with Docker

1) Build and run with Docker Compose

Create .env from .env.example (or set APP_PORT directly in your shell), then run:

docker compose up -d --build

This serves the app on http://localhost:7200 by default.

To change the exposed host port:

  • Linux/macOS:
APP_PORT=80 docker compose up -d --build
  • PowerShell:
$env:APP_PORT=80
docker compose up -d --build

2) Stop the deployment

docker compose down

3) Optional: build and run without Compose

docker build -t terraink:latest .
docker run -d --name terraink -p 7200:80 --restart unless-stopped terraink:latest

Contributing

See CONTRIBUTING.md for setup instructions, environment variables, branch strategy, and contribution guidelines.

Star History

Star History Chart

About

TerraInk: The Cartographic Poster Engine that creates unique and customizable map posters

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages