whatisgithub

What is styleglot?

walkthru-earth/styleglot — explained in plain English

Analysis updated 2026-08-01 · repo last pushed 2026-04-03

1TypeScriptAudience · developerComplexity · 2/5MaintainedSetup · easy

In one sentence

A tool that converts digital map style files between Esri, Mapbox, and MapLibre formats automatically, so you can switch mapping platforms without redoing your styles by hand.

Mindmap

mindmap
  root((repo))
    What it does
      Converts map styles
      Auto-detects format
      Warns about omissions
    How it works
      Reads original style
      Uses neutral format
      Outputs target format
    Use cases
      Switch mapping platforms
      Save on licensing costs
      Migrate custom styles
    Audience
      Map developers
      GIS teams
      Open-source switchers
    Key features
      Handles platform quirks
      Swaps proprietary fonts
      Secures API keys
      Async tile fetching

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Convert an Esri map style file to MapLibre format to migrate to an open-source platform.

USE CASE 2

Switch a Mapbox style to Esri format when moving a project to Esri basemaps.

USE CASE 3

Batch-translate a library of MapLibre styles to Mapbox format for a new platform integration.

USE CASE 4

Audit visual feature loss when migrating styles by reviewing the library's warning list.

What is it built with?

TypeScript

How does it compare?

walkthru-earth/styleglot0xkinno/neuralvault0xmayurrr/ai-contractauditor
Stars111
LanguageTypeScriptTypeScriptTypeScript
Last pushed2026-04-03
MaintenanceMaintained
Setup difficultyeasyhardeasy
Complexity2/54/52/5
Audiencedeveloperdeveloperdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · easy Time to first run · 5min

No special infrastructure needed, it's a TypeScript library you install and call from your code.

So what is it?

Styleglot is a translator for digital map styles. The three major mapping platforms, Esri, Mapbox, and MapLibre, all use slightly different formatting rules for their visual styles (the files that tell a map what colors to use, where to place labels, and how thick to draw roads). If you build a map using one platform and want to switch to another, you normally have to rewrite your style files by hand. This library automates that process, instantly converting styles between any of the three formats. The tool works in three steps. First, it reads your original style file and translates it into a neutral, universal format. Second, it runs a series of checks and adjustments to make sure the visual rules make sense for the platform you are switching to. Finally, it outputs a brand new style file perfectly formatted for your target platform. It can automatically detect which format your original file uses, or you can specify it yourself. It also includes an asynchronous version that can fetch live map tile data from the internet if your style relies on external sources. A mapping team building a custom visualization on top of Esri's free basemaps might decide to migrate their entire project to an open-source alternative like MapLibre to save on licensing costs. Instead of manually recreating their custom road colors, text labels, and terrain shading in a new system, they can pass their Esri style file through this library and get a ready-to-use MapLibre file back in seconds. One important tradeoff is that not every visual feature exists in all three platforms. For example, Mapbox has special atmospheric effects like "fog" that Esri and MapLibre do not support. The library handles this gracefully by dropping the unsupported features, but it carefully tracks every omission and provides a list of warnings so you know exactly what did not transfer over. It also handles platform-specific quirks, like swapping out proprietary font names for open-source equivalents, and ensuring that private API keys are securely managed during the conversion.

Copy-paste prompts

Prompt 1
I have an Esri map style file in JSON format. Use the styleglot library to convert it to MapLibre format and show me any warnings for features that couldn't be transferred.
Prompt 2
Write a Node.js script that uses styleglot to auto-detect the format of a map style file and convert it to Mapbox format, logging all omitted features as warnings.
Prompt 3
Using styleglot, convert this Mapbox style JSON to Esri format and tell me which unsupported visual effects like fog were dropped during conversion.
Prompt 4
Create a function that takes a directory of MapLibre style files and uses styleglot's async conversion to fetch any external tile sources before converting them all to Esri format.

Frequently asked questions

What is styleglot?

A tool that converts digital map style files between Esri, Mapbox, and MapLibre formats automatically, so you can switch mapping platforms without redoing your styles by hand.

What language is styleglot written in?

Mainly TypeScript. The stack also includes TypeScript.

Is styleglot actively maintained?

Maintained — commit in last 6 months (last push 2026-04-03).

How hard is styleglot to set up?

Setup difficulty is rated easy, with roughly 5min to a first successful run.

Who is styleglot for?

Mainly developer.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.