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

@bendyline/molen-worldgen-earth

v0.0.9

Published

Earth binding for Molen worldgen: terrain-semantics adapter, OSM label mapping, and lon/lat region atlas (kernel) with terrain tile renderers (client)

Readme

@bendyline/molen-worldgen-earth

The Earth binding for Molen worldgen: it adapts molen/terrain-semantics@1 tiles (Protomaps / OpenStreetMap footprints and land use) into building and scatter requests, resolves the regional look from a lon/lat atlas, and plugs the result into the terrain streamer as tile layers.

Part of Molen, an AI-legible 3D experience engine: a deterministic headless kernel, a three.js client, and a dev loop an agent can drive end to end.

Install

npm i @bendyline/molen-worldgen-earth

Node >= 22.13, ESM only, and no . export: import /kernel, /client or /worker. The region atlas and business catalog are content, not code: they ship as the molen.earth content pack (see @bendyline/molen-pack), published at molen.dev/packs; npx molen pack fetch https://molen.dev/packs/index.json downloads it into a project. @bendyline/molen-terrain and @bendyline/molen-worldgen come with it. The client half also needs three (>=0.184.0 <0.187.0, an optional peer) and @bendyline/molen-client, which worldgen's client half uses; the kernel half needs neither.

Use

The kernel half is a pure adapter: map vocabulary in, generic worldgen requests and mesh buffers out, no three.js. The client half wires the result into a terrain package's sidecar layers.

// Worker or Node: the kernel half
import {
  generateWorldgenTile,
  worldgenTileBudgetForQuality,
} from '@bendyline/molen-worldgen-earth/kernel';

// `tile` is a decoded molen/terrain-semantics@1 tile; `geom` is its address and world frame.
// `pack` is a resolved style pack, `atlas` the molen.earth pack's world.atlas.json, and `places`
// createPlacesContent({ landmarks, businesses }) over the packs' documents; without `places`,
// mapped businesses are not recognized.
const out = generateWorldgenTile({
  tile,
  geom,
  ground: heightfield, // the terrain Heightfield, sampled tile-locally
  pack,
  atlas,
  places,
  budgets: worldgenTileBudgetForQuality('balanced', geom.levelBelowMax),
});
out.hash; // the worker and the in-thread path produce byte-identical output
// Page: the client half
import { createProfiledTerrainPackageSemanticLayers } from '@bendyline/molen-terrain/client';
import {
  createRegionResolver,
  createWorldgenSemanticRenderers,
} from '@bendyline/molen-worldgen-earth/client';

// `pack`, `atlas` and `places` as above, read from the style and molen.earth content packs.
const worldgen = createWorldgenSemanticRenderers(pack, {
  atlas,
  places,
  regions: createRegionResolver(atlas, { metersPerUnit }),
  metersPerUnit, // cos(centre latitude): the package's projected frame is metric
});
const { layers } = await createProfiledTerrainPackageSemanticLayers(pkg, {
  baseUrl,
  landcoverLayer: { renderer: worldgen.classification },
  featuresLayer: { renderer: worldgen.humanFeatures },
});
// `layers` goes straight into createTerrainPackagePyramidStream(pkg, { layers, ... }).

What's in it

| Entry point | For | | --- | --- | | ./kernel | The terrain-semantics adapter (semanticTileToBatch, generateWorldgenTile, one BuildingRecord per rendered footprint), OSM label and business mapping (landcoverLabel, buildingLabels, createBusinessCatalog, createPlacesContent), the molen/region-atlas@1 and molen/business-catalog@1 formats, tile-edge ownership (analyzeTileEdge), and per-quality tile budgets. | | ./client | TerrainSemanticTileRenderer implementations for the classification and human-feature layers (createWorldgenSemanticRenderers), the atlas loader, the worker bridge, and the CPU tile cache. | | ./worker | installWorldgenWorker(self): bind tile generation to a worker scope. |

Status

0.x, versioned independently of the other @bendyline/molen-* packages; formats are versioned and beta. Heights, floor counts and uses recovered from a basemap are estimates, not records: stock Protomaps merges footprints below zoom 15 and publishes no roof shape or parent-part relations, so containment is a spatial inference.

This package exists to render third-party map data, and that data's licence and attribution obligations travel with it — OpenStreetMap-derived tiles included. The molen.earth business catalog also names businesses whose trademarks remain their owners'; see NOTICE at the repo root.

Docs

MIT © Bendyline LLC