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

@mnemopay/map3d

v0.0.1

Published

Browser-native 3D city map renderer. OSM → buildings + roads → R3F + Three.js → GLB. Drop-in for Dele, Forge, or any React app.

Readme

@mnemopay/map3d

Browser-native 3D city map renderer. Pulls building footprints + road networks from OpenStreetMap, extrudes them in Three.js, exports GLB. Drop-in for React, R3F, or vanilla Three.

npm install @mnemopay/map3d three @react-three/fiber react

Why this exists

cartesiancs/map3d (MIT, 1.5k★) demonstrated the pattern. We built our own because:

  • We need it inside Dele (Lagos 3D ride preview), Forge (cityscape game levels), and the MnemoPay native browser (location-aware agent surfaces). Shared package = one source of truth.
  • We need GLB export hooks for our content pipeline (TRELLIS-style asset generation).
  • We need MIT/Apache-2.0 with a clean provenance chain — every dependency under permissive license, no GPL/AGPL surprises.
  • We want a smaller, tree-shakeable surface — pure functions for projection/geometry, optional React layer.

30-second example

import { Canvas } from '@react-three/fiber';
import { Map3D } from '@mnemopay/map3d/react';

<Canvas camera={{ position: [0, 600, 800], fov: 50 }}>
  <ambientLight intensity={0.4} />
  <directionalLight position={[400, 1200, 400]} intensity={1.2} castShadow />
  <Map3D bbox={{ south: 6.448, west: 3.392, north: 6.460, east: 3.408 }} />
</Canvas>

Headless / Node / GLB-only

import { fetchScene } from '@mnemopay/map3d/overpass';
import { buildSceneRoot } from '@mnemopay/map3d';
import { exportGlb } from '@mnemopay/map3d/exporter';

const scene = await fetchScene({ south: 6.448, west: 3.392, north: 6.460, east: 3.408 });
const root = buildSceneRoot(scene);
const glb = await exportGlb(root);

API surface

| Subpath | Exports | |---|---| | @mnemopay/map3d | buildSceneRoot, project, projectMany, types | | @mnemopay/map3d/overpass | fetchScene, fetchOverpass, elementsToScene, buildingsAndRoadsQuery | | @mnemopay/map3d/buildings | buildingMesh, buildingsGroup | | @mnemopay/map3d/roads | roadMesh, roadsGroup | | @mnemopay/map3d/exporter | exportGlb, downloadGlb | | @mnemopay/map3d/react | <Map3D /> |

OSM data caveats

OpenStreetMap building heights are incomplete. We fall back, in order:

  1. height or building:height tag (meters)
  2. building:levels × 3.2 m
  3. 3.2 m default (one-story)

Road widths are inferred from highway class. Footprints are extruded straight up; no roof shapes, no overhangs. For accurate heights, pair with a heightmap or commercial provider (Mapbox, Cesium, Google 3D Tiles).

Demo

npm install
npm run demo

Opens http://localhost:5180 with a Lagos / Manhattan / London / Melissa TX picker and a GLB export button.

License

Apache-2.0 © J&B Enterprise LLC. OSM data © OpenStreetMap contributors, licensed under ODbL.