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

@komeilm76/km-geoboard

v0.2.1

Published

Umbrella package for the km-geoboard suite — artboard, GeoJSON, SVG, map, import/export pipelines, and plugin registry under one entry point.

Readme

@komeilm76/km-geoboard

Umbrella package for the km-geoboard suite — artboard geometry, GeoJSON, SVG, map math, import/export pipelines, and a plugin registry. One install, one entry point, everything namespaced.

npm install @komeilm76/km-geoboard zod
# or
pnpm add @komeilm76/km-geoboard zod

zod (≥ 4.4.0) is a peer dependency — install it alongside.

Quick start

import { artboard, svg, geojson, map, imports, exports, plugins, shared } from '@komeilm76/km-geoboard';

// Create an artboard from two drag points
const result = artboard.createArtboard({
  startPoint: { x: 0, y: 0 },
  endPoint: { x: 800, y: 600 },
  name: 'Main',
});

// Parse an SVG, convert it to GeoJSON, export it back out
const doc = svg.parseSvgDocument(svgString);
if (doc.success) {
  const geoMeta = {
    svgBounds: { minX: 0, minY: 0, maxX: 800, maxY: 600 },
    geoBounds: [-0.2, 51.4, 0.0, 51.6] as [number, number, number, number],
  };
  const fc = svg.svgDocumentToFeatureCollection(doc.data, geoMeta);
  if (fc.success) {
    const out = exports.exportToGeoJson({ features: fc.data.features, pretty: true });
    if (out.success) console.log(out.data); // GeoJSON string
  }
}

// Map math, no renderer needed
const tile = map.latLngToTile({ lat: 51.5074, lng: -0.1276 }, 12);
const dist = map.haversineDistance({ lat: 51.5, lng: -0.13 }, { lat: 48.86, lng: 2.35 });

Types come through the same namespaces:

import type { artboard, geojson } from '@komeilm76/km-geoboard';

type Board = artboard.Artboard;
type Feature = geojson.GeoJsonFeature;

Namespaces

| Namespace | Package | Purpose | |---|---|---| | shared | @komeilm76/km-shared | Result<T>, Zod schema factories, structural Zod types | | artboard | @komeilm76/km-artboard | Create, resize, move, snap, and query canvas artboards | | geojson | @komeilm76/km-geojson | RFC 7946 types, schemas, parsing, guards, geometry helpers | | svg | @komeilm76/km-svg | SVG document/path parsing, serialization, SVG → GeoJSON | | map | @komeilm76/km-map | Projections, tiles, geodesic distance, bounds, scale, layers | | imports | @komeilm76/km-imports | Parse raw strings/objects into typed structures (auto-detecting) | | exports | @komeilm76/km-exports | Serialize to SVG, GeoJSON, OpenLayers, PDF meta, raster plans | | plugins | @komeilm76/km-plugins | Typed plugin registry with dependency resolution |

Each package's README documents its full API with examples — follow the links above. Individual packages remain installable on their own for tree-shaking-conscious consumers:

// Equivalent, smaller dependency surface:
import { createArtboard } from '@komeilm76/km-artboard';

Design principles (suite-wide)

  • Pure functions — no DOM, no I/O, no rendering, no mutation of inputs.
  • No exceptions — fallible operations return the Result<T> discriminated union; check success.
  • IDE-safe types — published .d.ts files never import Zod (structural types prevent TS-server hangs).
  • Runtime-portable — Node.js ≥ 18, browsers, and edge runtimes.
  • Engine-agnostic — OpenLayers/MapLibre/Leaflet are consumers, not dependencies.

Integration tests

This package hosts the cross-package integration suite (tests/integration/), verifying round-trip contracts: SVG → GeoJSON → export → reparse, import/export deep-equality, artboard snapshot round-trips, tile math, importAuto routing, and plugin-wrapped importers.

Full reference: help.md · Monorepo: komeilm76/km-geoboard

License

MIT — komeilm76