კვალი — navigation for Georgia. Open maps, real routing, and turn-by-turn guidance in English and Georgian.
Kvali is an open-source navigation app for Georgia. It is a React + TypeScript app that runs in the browser and on Android through Capacitor. Maps are OpenStreetMap vector tiles rendered with MapLibre GL; search and reverse geocoding come from Nominatim, routes from OSRM, and nearby points of interest from Overpass.
Status: public beta (1.0.0-beta.5). Kvali does real routing, GPS guidance, Georgian voice, a downloadable whole-country visual map, offline place search, and nationwide offline car routing, and is exercised by an end-to-end browser test suite on every change. It has not been field-tested on the road yet, so treat it as a co-driver, not the driver. Please read How to test and Offline behaviour before relying on it.
- Android: grab the signed APK from the current beta, v1.0.0-beta.5, allow installs from your browser or file manager, then open it. On first launch, grant location and pick While using the app.
- Web / PWA: run
bun run buildand servedist/, or deploy it anywhere static. In Chrome or Edge, use Install app in the address bar to add it as a standalone app with offline support.
- Features
- Documentation
- Tech stack
- Requirements
- Getting started
- Scripts
- Project structure
- How navigation works
- State management
- Customization
- Accessibility
- Offline behaviour
- Data & attribution
- Third-party components
- Android build
- Releases
- How to test
- Troubleshooting
- Contributing
- License
- MapLibre GL map with light (Positron), dark, and online satellite imagery styles. Vector styles come from OpenFreeMap; imagery is attributed to Esri.
- A schematic SVG fallback view for devices or browsers without WebGL.
- Layer toggles for points of interest, speed/enforcement cameras, saved places, and recorded tracks.
- Live location dot, recenter control, and long-press to drop pins anywhere on the map.
- Place search over OpenStreetMap Nominatim with a 3-character debounce and cancellable requests.
- Offline place, street and address search from a 2.5 MB Georgia index downloaded with the offline map; results still work in airplane mode.
- Category shortcuts (fuel, parking, food, hotels, hospitals, ATMs, EV charging, viewpoints, pharmacies, groceries, attractions, hiking).
- Nearby points of interest loaded from OpenStreetMap (Overpass) around the current area.
- Reverse geocoding when you long-press the map.
- Car and bike routes from FOSSGIS OSRM, walking routes from Valhalla, with route preferences (avoid tolls, highways, unpaved).
- Turn-by-turn navigation driven by real GPS fixes: manoeuvre banner, remaining distance and ETA, off-route detection with automatic rerouting.
- Voice guidance via the platform speech synthesiser, with spoken, chime, and muted modes and a picker for the installed voice (it prefers an offline voice and warns when no Georgian voice is available).
- Shareable route links (
?dest=…&name=…&mode=…).
- Road alerts screen for fixed cameras, average-speed zones, roadworks, accidents, closures and more, each individually toggleable.
- Report your own hazards at your location; your reports are stored only on your device.
- Configurable warning distance and a synthesised warning chime.
- A downloadable 96 MB whole-country Georgia visual basemap (PMTiles, zooms 0–13, English/Georgian labels) stored on the device, so streets, buildings, water, and labels render with no connection. Its SHA-256 is verified before install and it can be removed from Offline Maps.
- Offline map areas that cache real vector tiles (zooms 9–14, both map styles, sprites and fonts) in device storage through a service worker, so the map keeps rendering without a connection.
- A 39 MB nationwide Georgia road package (411,520 junctions, 996,569 road edges) that builds new car routes with turn instructions anywhere in the country without a connection. The app verifies its SHA-256 before installing and uses a compact binary format, so it does not need a server.
- Routes you have calculated once are saved on the device (to roughly 110 m) and work again offline; nearby POIs and alert data are cached for a week.
- Installable as a PWA with its own icon, and offline-first: the app shell loads from the cache with no network.
- Screen wake lock while guidance or track recording is active.
- Metric / imperial units, light / dark theme, English / Georgian, all persisted locally.
- Saved places with collections, notes, and JSON import/export.
- Recorded GPS tracks with GPX import and export.
- Full-screen, safe-area-aware layout that adapts to phone portrait, landscape, and car displays.
Architecture notes and honest status reports live in docs/:
- Navigation engine — projection, snapping, off-route detection.
- Georgian addresses — script and postcode normalization.
- Background location — plugin licenses and the integration plan.
- Offline routing and offline tiles — the nationwide packages, storage, and remaining limits.
- Data sources, privacy and testing.
| Layer | Choice |
|---|---|
| UI | React 19 |
| Language | TypeScript (strict) |
| Build tool | Vite 8 |
| Styling | Tailwind CSS v4 via @tailwindcss/vite |
| Map | MapLibre GL JS with OpenStreetMap vector tiles |
| Icons | lucide-react |
| State | React Context + hooks (no state library) |
| Routing | Internal screen state synced with the URL (no router dependency) |
| Native | Capacitor 8 (@capacitor/android, @capacitor/geolocation) |
| Package manager | Bun (bun.lock is committed) |
- Bun 1.1+ (npm/pnpm also work — adjust the commands).
- Node.js 20+ for tooling that expects a Node runtime.
- For the Android build: JDK 21 and the Android SDK (platform 36 and build-tools 36).
# install dependencies
bun install
# start the dev server (http://localhost:3000)
bun run dev
# type-check
bun run lint
# production build into dist/
bun run build
# preview the production build locally
bun run preview| Script | Description |
|---|---|
bun run dev |
Start the Vite dev server with HMR on port 3000. |
bun run build |
Create a production build in dist/. |
bun run preview |
Serve the production build locally. |
bun run lint |
Type-check with tsc --noEmit. |
bun run clean |
Remove the dist/ directory. |
bun run test:units |
Pure-module unit checks (navigation, geo, addresses, time, alerts, routing preferences, GPX, translations). |
bun run test:smoke |
End-to-end browser checks (map, routing, preferences); needs the dev server on :3000. |
bun run test:offline-basemap |
Checks the Protomaps style, sources and cached glyph/sprite URLs. |
bun run test:offline-search |
Checks offline ranking, places, streets, addresses, kinds and Georgian names. |
bun run test:offline |
Same idea with the network switched off; needs bun run preview on :4173. |
bun run icons |
Regenerate the PWA and Android launcher icons from the built-in SVG. |
CI runs lint, test:units and build on every push to main and on pull requests (see .github/workflows/ci.yml).
src/
├─ components/
│ ├─ common/ # HeaderBar, Controls (ToggleSwitch, CustomSlider, chips), ErrorBoundary
│ ├─ layout/ # PhoneShell (responsive frame), BottomNav
│ └─ map/ # MapView (MapLibre), FallbackMap (SVG), PinCallout
├─ context/ # AppContext (app state), ToastContext
├─ lib/ # geo.ts, navigation.ts, services.ts, location.ts, offline.ts,
│ # routeCache.ts, offlineCache.ts, offlineBasemap.ts, offlineSearch.ts, nationwideRouting.ts,
│ # speech.ts, wakeLock.ts, translations.ts
├─ screens/ # One component per screen (lazy-loaded)
├─ types/ # Shared TypeScript types
├─ index.css # Tailwind entry + design tokens, keyframes, utilities
├─ App.tsx # Screen router + providers, code-split screens
└─ main.tsx # React root, service-worker registration
public/
├─ favicon.svg, logo.svg
├─ manifest.webmanifest # PWA metadata
├─ icons/ # Generated PWA icons
├─ sw.js # Tile/asset caching service worker
└─ maplibre-gl-worker.mjs
scripts/ # smoke.mjs, offline.mjs, icons.mjs
android/ # Capacitor Android project
.github/workflows/ci.yml
There is no router dependency. AppContext holds currentScreen, a navHistory stack, and a navigateTo(screen) helper; goBack() pops the stack. The browser back/forward buttons are wired through popstate. Route links are additionally deep-linkable: opening the app with ?dest=lat,lng&name=…&mode=… opens route planning with that destination pre-filled.
Screens are loaded on demand with React.lazy + Suspense, so the map engine (~1 MB) is only fetched when a map screen is shown. This keeps the first load small.
Everything cross-cutting lives in one AppProvider (src/context/AppContext.tsx):
- Localization —
languageand thet()translator (English / Georgian). - Preferences —
theme,units,voiceMode,travelMode,routePreferences. - Location —
userLocation,geolocationStatus,requestUserLocation, continuous watch. - Places — nearby Overpass POIs; selected place and dropped pin.
- Routing — origin/destination/waypoints, OSRM alternatives, and active-navigation state.
- Alerts — categories, distance/volume, your own reports.
- Offline — regions and their download state.
- Saved places & tracks — collections and recorded GPS tracks.
- UI — screen routing, toasts, the recenter trigger.
Persisted to localStorage: theme, language, units, voice mode, travel mode, route preferences, layers, alert settings, saved places, collections, tracks, and offline region state. Reset everything from Settings → Reset data.
- Bilingual strings —
src/lib/translations.tsholds theenandkadictionaries. - Design tokens — the CSS custom properties at the top of
src/index.cssdrive colours for both themes; keyframe animations and utilities live below them. - Native config —
capacitor.config.ts(app idcom.kvali.navigation, nameKvali, web dirdist). - Branding —
public/logo.svgandpublic/favicon.svgare the source logo; the Android launcher icon lives underandroid/app/src/main/res/.
- Semantic
<button>controls witharia-labels and visible focus rings. role="switch"witharia-checkedon toggles; labelled form controls.- Screen transitions, toasts, staggered lists, dialogs, and skeletons all respect
prefers-reduced-motion.
The app is offline-first. The shell and any route you have already calculated are served from the device, so a known route keeps guiding without a connection, even if you still have a little internet. Install the 96 MB Georgia map from Offline Maps to draw the whole country's streets, buildings, water, and labels offline; the same download includes a 2.5 MB offline place, street and address index. Install the Georgia roads package to create new car routes anywhere in the country. All packages are checksum-verified and can be removed from the same screen.
What still needs a connection:
- Online Nominatim search for queries outside the downloaded index, and all reverse geocoding.
- Point-of-interest and alert lookups (Overpass).
- A new car route when the nationwide package is not installed, and any new bike or walking route.
- The one-time 96 MB basemap, 2.5 MB search index and 39 MB road-package downloads.
- Map detail above zoom 13, which is overzoomed from the z13 basemap.
Voice guidance uses the device speech synthesiser, so the available voices and languages depend on the platform.
- Map data © OpenStreetMap contributors, available under the ODbL.
- Map data © OpenStreetMap contributors, available under the ODbL.
- Vector tiles served by OpenFreeMap online; the downloaded basemap is derived from Protomaps.
- Geocoding and reverse geocoding by Nominatim.
- Routing by OSRM.
- Points of interest by Overpass.
These are shared community services — keep to reasonable request rates if you run your own copy, and respect each service's usage policy.
Kvali is distributed under the GNU General Public License, version 3 or later. The direct dependencies and their licenses are:
| Component | License | Used for |
|---|---|---|
| MapLibre GL JS | BSD-3-Clause | Map rendering, gestures, offline tile sources |
| PMTiles | BSD-3-Clause | Range requests against the downloaded basemap |
| Protomaps basemaps | BSD-3-Clause | Offline basemap style and layers |
| React / React DOM | MIT | UI |
| Lucide | ISC | Icons |
| Capacitor core / Android / Geolocation | MIT | Android shell and location bridge |
| Capacitor Text-to-Speech | MIT | Spoken turn instructions |
| Tailwind CSS | MIT | Styling |
| Vite / TypeScript | MIT / Apache-2.0 | Build and type-checking (development only) |
| Puppeteer Core | Apache-2.0 | End-to-end tests (development only) |
The full license text for each component is kept in licenses/. The NOTICE file records the same information for redistribution and will also list any source ported from other GPL projects.
Map data © OpenStreetMap contributors (ODbL); vector tiles by OpenFreeMap and Protomaps; satellite imagery by Esri and its imagery providers; geocoding by Nominatim; routing by OSRM and Valhalla; points of interest and alerts by Overpass. Those services are not bundled with the app and are used under their own terms.
Kvali does not include code from OsmAnd, Navi, Organic Maps, or other navigation projects at this time. Organic Maps was consulted for interaction design only.
Kvali ships with no bundled sample or demonstration data. Places, routes, and points of interest all come from live community services, and anything that cannot be fetched is shown as empty rather than faked:
- An empty map shows no markers until real results arrive.
- Offline regions are areas you download yourself; nothing is pre-baked.
- Your own hazard reports, saved places, and recorded tracks are stored on this device only and are never uploaded.
Requires JDK 21 and the Android SDK (platform 36, build-tools 36).
bun run build
bunx cap sync android
cd android
./gradlew assembleRelease # gradlew.bat on WindowsThe APK is written to android/app/build/outputs/apk/release/app-release.apk. Point the build at your SDK with android/local.properties (sdk.dir=…); that file is not committed.
android/app/build.gradle reads an optional android/keystore.properties (gitignored). Create the key and the file once:
keytool -genkeypair -v -keystore android/kvali-release.jks -alias kvali \
-keyalg RSA -keysize 2048 -validity 10000
# android/keystore.properties
storeFile=kvali-release.jks
storePassword=…
keyAlias=kvali
keyPassword=…Without that file, assembleRelease still builds, just unsigned.
Tagged builds attach the signed release APK, so you can download and sideload it directly:
- Browse the Releases page and download the APK from the newest release (betas are marked Pre-release).
- On the phone, allow installs from your browser, then open the downloaded APK.
- Grant location permission on first launch and choose precise location where offered.
Release tags use MAJOR.MINOR.PATCH[-beta.N]; the current beta is 1.0.0-beta.5 (versionCode 7).
The quickest loop is the web build, but native location, the screen wake lock, and the tile cache only behave properly on a real Android device.
bun install, thenbun run devand open http://localhost:3000.- Allow the location prompt on the map screen. Without it the app falls back to a Kutaisi city centre and shows a "waiting for GPS" badge.
- Tap the search bar and type a town (for example
BatumiorGori). Results come from Nominatim, plus the downloaded offline index when available. - Open a result's directions button, pick a route alternative, then Start navigation. Without a GPS fix the banner stays on the first instruction; with a fix the banner, remaining distance, and ETA update as you move.
- Switch Settings → Distance units to imperial and confirm speed, distance, and speed-limit values change to mph/mi.
- In Settings → Voice guidance, pick Spoken, Chime, or Muted and confirm guidance speaks, chimes, or stays silent.
- Offline Maps: download the 96 MB Georgia map (which includes the search index) and the Georgia roads package. Go offline (DevTools → Network → Offline), reload, and confirm the whole-country basemap still draws with labels; offline place search still returns results, and a new car route still works.
- Road alerts: add a report and confirm a marker appears on the map.
To exercise location screens without moving, use your browser's sensor override (Chrome DevTools → Sensors → Location) and set a custom position.
- Install the APK from Releases, then open Kvali.
- Grant location permission — choose "While using the app" and allow precise location if asked.
- Move a short distance and confirm the blue dot follows you and the guidance banner advances.
- Start navigation and leave the screen on: the display should stay awake while guidance is active.
- Airplane-mode test: download the Georgia map and the Georgia roads package first, switch to airplane mode, then confirm streets and labels still draw across the country and a new Tbilisi-to-Batumi car route is calculated on the device.
bun run linttype-checks the source.bun run buildproducesdist/; the service worker only registers on a production build, not duringbun run dev.
- Blank page / no map — confirm the browser supports WebGL. Without it, Kvali falls back to a schematic SVG map that renders offline without tiles.
- Map worker error — usually the MapLibre worker failed to load; it should fall back to the SVG map. Rebuilding (
bun run build) normally fixes a stale worker asset. - Stale map tiles or saved data — state and tiles are cached. Clear site data / storage for the origin to reset, or use Settings → Reset data.
- Location never starts — permission was denied; re-enable location for the site/app in system settings and reload.
- On Android, the web build changed but the app did not — run
bunx cap sync androidand rebuild the APK.
Contributions are welcome. Keep it framework-light, match the existing code style, and run bun run lint, bun run test:units, bun run build, bun run test:smoke and bun run test:offline before opening a pull request. The unit suites cover the pure helpers; the browser suites cover the map, routing, preferences, GPX and offline mode.
GNU General Public License, version 3 or later © 2026 Kvali contributors — see LICENSE. Third-party notices are in NOTICE and licenses/.
Map data © OpenStreetMap contributors (ODbL). See Data & attribution for third-party services.