r/tui • • May 07 '26 • Popcorn 1 Bravo 1

AI assisted ttymap — mapscii-inspired terminal-native scriptable globe

ttymap is a terminal map viewer in Rust. Mapbox Vector Tiles rendered as Unicode Braille (2×4 sub-pixels per cell) with ANSI 256-color, vim-style navigation, mouse drag/scroll, palette (:), forward geocoding (/).

mapscii-inspired — it started as a Rust port of mapscii and shares the same Braille + MVT pipeline. Familiar if you've used mapscii before.

terminal-native — Braille glyphs + xterm-256, no GPU, no GUI, ssh-friendly. There's also a ttymap snap subcommand that renders the current view to ANSI text for cron / dashboards / pipes.

scriptable globe — this is the part that's grown past the "viewer" framing. There's a Lua plugin runtime (mlua + Lua 5.4) where every in-tree feature is a .lua under runtime/plugin/, so the host dogfoods its own bridge. On top of that sits a scriptable-scenes layer: ttymap.animation.fly_to for camera moves, plus a director with fly / wait / tween primitives so plugins can choreograph multi-step camera + overlay sequences as plain Lua coroutines.

Repo: https://github.com/Kohei-Wada/ttymap

Demo video and screenshots in the README. Feedback / plugin ideas welcome — still WIP, APIs may shift.

502 Upvotes

25 comments sorted by

7

u/No-Reality-4877 May 07 '26

Honestly there was no use case driving it — I just wanted to see what live aircraft (ADS-B) on a terminal map would feel like. So "do you need it" = no, but "is it fun to watch" = mostly yes 😄

3

u/_seedofdoubt_ May 07 '26

I imagine most of us are here just for fun at this point lol

6

u/No-Reality-4877 May 07 '26

Lol true — "I made X but in the terminal" is basically a genre at this point.

4

u/No-Reality-4877 May 07 '26

PSA — `travel` plugin only ships Japan + Italy right now. Japan I'm confident in (I'm Japanese, I know the routes); Italy I AI-researched and honestly have no way to judge if it reads right.

Same problem for any country I'd add myself — I can only verify my own.

What I'd actually love is route files from people in their own country — locals know stops a tourist guide would never list, and

"Lua plugin that takes you on micro-tours of places only locals know" is way cooler than anything I can research alone.

Format: ~100-line Lua waypoint table, no Rust needed

(runtime/plugin/travel/routes/japan.lua is the template). PRs from anywhere very welcome 😄

2

u/nakurtag May 07 '26

Wow, can I use it inside my TUI app as a library?

1

u/No-Reality-4877 May 07 '26

Yeah absolutely — that's why the workspace is split. The `ttymap-engine` crate has zero ratatui/crossterm deps and is designed to be consumable: you give it a `Config` + a `FrameSink` callback, it produces `MapFrame`s (grids of `MapCell { ch, fg, bg }`) which you render however you want.

2

u/KryptKickerFive May 08 '26

Impressive! Love it!!!

2

u/[deleted] May 10 '26

holy shit that looks nice. how did you do it?

2

u/No-Reality-4877 May 10 '26

thanks!! it's Braille characters as pixels (2×4 dots per cell) + 256-color ANSI, drawing vector tiles from mapscii.me. heavy mapscii inspiration, rewrote it in Rust and added Lua scripting.

5

u/CellaCube May 07 '26

First person to build an automated Geohashing assistant gets extreme gratitiude

2

u/nu1se May 07 '26

Looks nice. 😄 I don't know why would I need it but looks really cool. Tried for my place and it did found a shopping mall near by.

2

u/clitetailor May 09 '26

So it is how we look at the operation in terminal and send commands these days 🤣

2

u/tanmaynargas2901 May 10 '26

Love this aesthetic, very Total Recall (1990) computer-esque

2

u/LibertyCatalyst Jun 13 '26

This looks like something I could lose an entire day playing with.

2

u/TheGeekno72 Jun 15 '26

I LOVE it, not sure how I'll add that to my project (I'm absolutely not proficient with software but I hope to fix that) but I want it in :D

0

u/binegra Oct 12 '26

Cute map indeed ;) Pure retro vibe, pleasing the eye on my old thinkpad.

2

u/Birk_Boi May 08 '26

Read as titty map

2

u/No-Reality-4877 May 10 '26

you're not the first 😅 the README's saving grace is the hyphen