npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

spatialbay-sdk

v0.5.0

Published

SpatialBay SDK — framework-light map engine (core, map, ui, processing) for MapLibre-based GIS apps.

Readme

spatialbay-sdk

A framework-light toolkit for MapLibre-based GIS apps: vector/raster basemap theming, a marker icon registry, GPX/KML track parsing, workspace panel layout presets, static poster export, in-browser SQL over GeoJSON (DuckDB WASM), and a small set of Vue components (FloatingPanel, DockPanel, ModalDialog, usePanelsStore) for panel-chrome UIs.

Most modules are pure JS with no Vue/Pinia dependency — usable in any MapLibre app, not just SpatialBay. The SpatialBay frontend (../../src) is the reference consumer: 40+ files there import from this package today.

Install (workspace-local)

This package is not yet published to a registry. Inside this monorepo it's consumed via the spatialbay-sdk alias already wired into the app's bundler config — see ../../vite.config.js.

import { generateMapStyle, MAP_THEMES, MARKER_ICONS, parseGPX, applyLayoutPreset, drawPosterOverlay } from 'spatialbay-sdk'

Modules

| Area | Exports | | --- | --- | | Vector themes | MAP_THEMES, generateMapStyle, getMapTheme, blendHex | | Raster basemaps | BASEMAP_THEMES, getTheme, applyBasemapTheme | | Marker icons | MARKER_ICONS, getMarkerIcon | | Track import | parseGPX, parseKML, parseTrack | | Layout presets | LAYOUT_PRESETS, getLayoutPreset, applyLayoutPreset | | Poster export | FONT_OPTIONS, ensureFont, POSTER_SIZES, drawPosterOverlay, formatCoordinates | | Map controller | MapController, syncLayers, identifyAt, getUniqueValues, buildCategoryColors | | Map controls | addNavigationControl, addCompassControl, addScaleControl, setGlobeEnabled, setTerrainEnabled, … | | Effects | AtmosphereEffect, addWeatherRadar, updateSunOverlay | | Directions | fetchRoute, showRoute, clearRoute, RouteAnimator | | Street view | getMapillaryToken, addMapillaryCoverage, openMapillaryViewer | | Data | runSql, registerGeoJsonTable (DuckDB WASM), getPyodide, runPython | | UI (Vue) | usePanelsStore, FloatingPanel, DockPanel, ModalDialog | | Project schema | createProject, serializeProject, deserializeProject, migrateProject | | Docs content | docs.jsCONCEPTS, METHODS, SOURCES (drives the in-app /sdk/docs route) |

See CHANGELOG.md for what shipped in each version, and examples/ for runnable configs demonstrating the newer additions (vector themes, marker icons, GPX import, layout presets).

Testing

cd packages/spatialbay-sdk
npx vitest run

Tests are scoped to pure-logic modules (no .vue component tests yet): themes.js, themeStyle.js, markerIcons.js, trackParsers.js, layoutPresets.js.

Publishing

Not yet published to a registry — see ../../.npmrc (currently a template; needs a real registry URL + auth token before this can publish).