Honua JS SDK
Native application path: gRPC for live data and edits; PMTiles, GeoParquet and COG through the CDN. Need a single-page API + controls cheat sheet? See the Quick Reference. OGC API and GeoServices REST examples below are compatibility workflows.


MapLibre renders the map. Honua connects, queries, explains, and mounts the data.
@honua/sdk-js is the integration layer for the open map stack: typed clients for the
protocols your data already speaks (Esri GeoServices, OGC API Features / Tiles / Maps /
Processes, STAC, WMS, WMTS, WFS 2.0, OData v4), a one-call data→map bridge and MapLibre
runtime, provider-pluggable geocoding and routing, and a drop-in ArcGIS compatibility
layer with a codemod. MapLibre is the stable renderer path; the optional Cesium scene
surface is beta on @honua/app-platform, and Kepler.gl integration is experimental.
Native application data
Create the client with await createHonuaClient({ baseUrl }) for live feature queries: it uses the
native gRPC-Web transport where the server offers it and GeoServices REST otherwise
(transport: "grpc-web" or "rest" skips the probe; new HonuaClient defaults to "grpc-web"
when a gRPC-Web runtime is registered via @honua/sdk-js/grpc-web and "rest" otherwise).
In a browser bundle import it from @honua/sdk-js/grpc-web; the root export cannot load the
gRPC peers there and selects REST.
Outside a browser, connect() on a GeoServices FeatureServer URL makes the same choice for its
default client and records it in the discovery cache; in a browser pass it a client from
@honua/sdk-js/grpc-web.
Follow the native data guide for the complete browser
setup, live gRPC-Web queries and edits, and PMTiles / GeoParquet / COG file examples.
Which import
Install @honua/sdk-js and import from its subpaths: a 2D map imports createHonua from @honua/sdk-js and maplibreRenderer from @honua/sdk-js/runtime; React apps import from @honua/sdk-js/react; server attach uses HonuaClient or createHonuaClient from @honua/sdk-js (or @honua/sdk-js/grpc-web in browser bundles); an ArcGIS migration app uses @honua/sdk-js/client-compat and @honua/honua-migrate; widget paint registers @honua/app-platform/web-components. Open data sources with createHonua().connect() (or createHonua({ baseUrl }).layer(serviceId, layerId) / .collection(collectionId)); the lower-level connect() export is only for code that reads its synchronous inspection, such as the static STAC asset candidates a COG read starts from.
Leaving ArcGIS? Every classic Esri widget was deprecated at ArcGIS JS SDK 5.0 and
removal begins with 6.0 — as early as Q1 2027. If your app constructs one, that code stops
compiling and running when you take the 6.0 upgrade. Run
npm run scan:arcgis:widgets -- ./src for a per-file readiness report, then read the
widget-removal survival guide — every deprecated
widget mapped to its Honua/MapLibre disposition.
Compatibility: a public endpoint to a styled map
Ten application lines. No Honua server, no API key, no account — one lifecycle owner takes a
public Esri Living Atlas FeatureServer through inspection, a bounded query, an explainable plan,
and a styled MapLibre map. MapLibre is a peer you install beside the SDK
(npm install @honua/sdk-js maplibre-gl; see Install):
import { createHonua } from "@honua/sdk-js";
import { maplibreRenderer } from "@honua/sdk-js/runtime";
import * as maplibregl from "maplibre-gl";
const endpoint = "https://services.arcgis.com/P3ePLMYs2RVChkJx/arcgis/rest/services/2020_Census_State_Apportionment/FeatureServer/0";
const honua = createHonua();
try {
const data = await honua.connect(endpoint);
const info = await data.inspect();
const plan = await data.explain({ includeGeometry: true, crs: 4326, pagination: { limit: 100 } }, { sourceId: info.defaultSourceId });
const result = await data.query(plan);
const map = await data.mount("#map", { renderer: maplibreRenderer(maplibregl), query: plan, sourceId: info.defaultSourceId });
await map.ready;
} finally {
await honua.dispose();
}