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

@tilda-geo/bicycle-infrastructure

v0.1.2

Published

TypeScript port of TILDA's LUA bicycle-infrastructure processing (category + surface/protection/oneway derivations). Runs on plain OSM tag objects (e.g. live Overpass data).

Readme

@tilda-geo/bicycle-infrastructure

npmx · npm · GitHub

Role: the public TypeScript library (ESM-only). Given plain OSM tags (e.g. from Overpass), it produces the same bicycle-infrastructure features TILDA’s LUA pipeline would — so QA tools and apps can classify live data without running osm2pgsql.

Part of the tilda-schemas monorepo. Schemas (vocabularies + fixtures) live under schemas/; this package implements them.

npm install @tilda-geo/bicycle-infrastructure

What it does

  1. Takes one OSM way’s tags (Record<string, string>).
  2. Applies the same transforms as TILDA LUA (lifecycle, side splitting for cycleway:left/right / sidewalks, sanitizers).
  3. Returns 1..N features (centerline self plus transformed left/right sides), each with:
    • category — Radinfrastrukturkategorie (primary focus; see schemas/bicycle-infrastructure-category)
    • plus surface, smoothness, oneway, separation / buffer / marking, traffic_mode, traffic_sign, surface_color, width

Disallowed sanitizer values become null, matching TILDA’s GeoJSON export.

import { processBikelanes } from '@tilda-geo/bicycle-infrastructure'

const features = processBikelanes({
  highway: 'secondary',
  'cycleway:right': 'lane',
  'cycleway:right:lane': 'exclusive',
  surface: 'asphalt',
})
// → [{ _side: 'right', _prefix: 'cycleway', category: 'cyclewayOnHighway_exclusive',
//      oneway: 'implicit_yes', surface: 'asphalt', ... }, ...]

How it relates to the rest of the monorepo

| Piece | Relationship | | --- | --- | | schemas/bicycle-infrastructure-category | Source of truth for allowed category values + fixtures | | schemas/bicycle-infrastructure-attributes | Draft vocabularies for non-category fields (fixtures used in tests) | | bicycle-infrastructure-reconciliation | Internal tooling that proves this library ≡ TILDA LUA on a Berlin corpus |


Map to TILDA LUA

Ported module-for-module from tilda-geo → processing/topics/roads_bikelanes:

| This package | LUA | | --- | --- | | transform/prepare-tags.ts | helper/transform_tags/* | | transform/transformations.ts | bikelanes/transformations.lua | | categories/* | bikelanes/bikelane_categories.lua (+ decision view, sidepath) | | sanitize/*, derive/* | helper/sanitize_*, derive_* | | index.ts → processBikelanes | bikelanes/bikelanes.lua |


Develop / test

From the monorepo root:

bun install
bun run build
bun run --filter '@tilda-geo/bicycle-infrastructure' test
bun run check-exports
  • test/spec.test.ts — conformance against schemas/**/fixtures (via test/load-spec.ts)
  • test/categories.smoke.test.ts — cases ported from LUA __tests__

Berlin corpus check (category agreement ~100%): see the internal reconciliation package.

Releases use changesets — see the root README Release section (manual publish, same as the smoothness packages).


Known limitations

  • _adjoining / _isolated / _adjoiningOrIsolated use the raw OSM is_sidepath tag (same as LUA categorization). TILDA’s _is_sidepath CSV estimate is export-only and does not affect category.
  • highway=construction lifecycle is handled; the geometry crossing-length filter (>100 m) is skipped when _length is absent (typical for live Overpass tags).