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

@gruncellka/porto-data

v0.5.1

Published

Multi-provider postal JSON: operator catalogs, pricing, shared policy (markets, restrictions), and schemas

Readme

Porto Data

validation codecov

Porto Data is JSON + schemas for national postal operators under one shared layout and vocabulary. Published on npm and PyPI with the same porto_data/ tree on every platform.

The bundle covers Deutsche Post, Ukrposhta, La Poste, and Swiss Post with shared policy/formats data at the bundle root and per-operator catalogs under providers/<id>/ (products, services, prices, zones, weight tiers, features, limits, graph.json). Registry display names: providers.jsonlabel; legal entities: name.


Install

TypeScript / JavaScript (npm)

npm install @gruncellka/porto-data

Python (PyPI)

pip install gruncellka-porto-data

Shipped layout: porto_data/policy/, porto_data/formats/, porto_data/providers/<id>/, porto_data/schemas/, mappings.json, metadata.json. Resolve paths via mappings.json / metadata.json (no legacy flat data/ tree).

  • Python: import porto_data and open files relative to the package root.
  • TypeScript / JavaScript: same paths (e.g. porto_data/providers.json, porto_data/policy/restrictions.json, porto_data/providers/deutschepost/products.json).

Cross-platform (npm and PyPI)

Both packages ship only UTF-8 JSON, schemas, mappings.json, and metadata.jsonno native extensions. The layout is identical on Linux, macOS, and Windows. PyPI includes a tiny Python helper (import porto_data); npm exposes metadata.json via index.js—the underlying files are normal JSON you can read from any language.


Use cases

E-commerce and logistics (multi-carrier quotes, letters), compliance (sanctions, frameworks), research and education.


Logical files (per operator unless noted)

| File | Description | | --------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | products.json | Letter (and related) products; unit.weight only (g); physical sizes via envelope_ids + global envelopes.json (envelopes[]: id, width/height mm) | | services.json | Add-on services: porto_id (unified), provider id, native name, English label | | prices/products.json | Base letter postage grid (file_type product_prices): product_id × zone × weight_tier (effective-dated amount in cents) | | prices/services.json | Add-on service amounts (file_type service_prices) keyed by service_id (matches catalog services.json id) | | zones.json | Geographic zones and country mappings | | weights.json | Weight brackets for pricing | | features.json | Operator-scoped id, unified porto_id, native name, English label | | limits.json | Provider operational overlay on global policy (limits[] often empty; see docs/policy.md) | | graph.json | dependencies, edges.products, edges.marks, services, unit | | marks.json | Franking footprint catalog: profiles[] only; resolution in graph.edges.marks | | formats/layouts.json | Jurisdiction-keyed print/window geometry (DE / CH / FR) per envelope id (file_type layouts); optional standard (norm token, e.g. DIN678, SN010130, NFEN13850); physical sizes remain in formats/envelopes.json | | formats/envelopes.json | Physical envelope catalog: envelopes[] with id, width/height, standard ISO269, sheets[] (ISO 216 sheet + fold) | | policy/restrictions.json | Sanctions-style restrictions and compliance frameworks | | policy/jurisdictions.json | jurisdictions.eu / jurisdictions.un (ISO alpha-2; align with symbolic EU / UN) | | policy/markets.json | Per-country currency, vat, international_currency, optional settlement — via providers.json countrydocs/policy.md · docs/resolution.md |

All JSON validates against schemas/; mappings.json maps entities to paths; metadata.json has checksums and schema URLs.

Cross-file rules: native id in graph/prices; porto_id for cross-operator input — see docs/resolution.md.

Tariff verification: CI validates structure only — not that amounts match live carrier tables. See docs/tariff-verification.md and per-provider notes under docs/providers/.

Provider tariff dating (catalog baseline): In providers/<id>/products.json, prices/products.json, and prices/services.json, effective_from is the bundle baseline (2026-01-01) for the modeled 2026 tariff snapshot. Use effective_to: null until a row is superseded by a newer price[] entry. (Other files, e.g. policy/restrictions.json or limits.json, keep their own effective-dating semantics.)


Standards

  • Country / region / dates: ISO 3166-1 alpha-2, ISO 3166-2, ISO 8601.
  • Policy vs operator overlays: docs/policy.md (restrictions, markets, jurisdictions vs limits.json).
  • Currency / VAT resolution: docs/resolution.md § Currency and VAT.

Disclaimer

Reference data only. Confirm pricing, restrictions, and availability with the carrier you use before shipping. Not a substitute for official systems or legal advice.


Related resources

Carriers in this bundle — tariff / modeling notes, shipped JSON folder, and official site:

| Provider (providers.json id) | Label | Legal name (name) | Reconciliation doc | Bundle data folder | Website | | ------------------------------ | ----- | ------------------- | ---------------------------------------------------------------- | ------------------------------------ | ---------------------------------------------- | | deutschepost | Deutsche Post | Deutsche Post AG | docs/providers/deutschepost.md | porto_data/providers/deutschepost/ | deutschepost.de | | ukrposhta | Ukrposhta | Ukrposhta JSC | docs/providers/ukrposhta.md | porto_data/providers/ukrposhta/ | ukrposhta.ua | | laposte | La Poste | La Poste S.A. | docs/providers/laposte.md | porto_data/providers/laposte/ | laposte.fr | | swisspost | Swiss Post | Die Schweizerische Post AG | docs/providers/swisspost.md | porto_data/providers/swisspost/ | post.ch |

Other references: EU Sanctions Map, ISO 3166 country codes


🔳 gruncellka