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

@maptiles-doctor/action

v0.1.1

Published

GitHub Action wrapper for MapTiles Doctor.

Readme

MapTiles Doctor GitHub Action

Check a MapLibre/Mapbox style against its PMTiles, MBTiles, TileJSON, sprite and glyph artifacts on every push and pull request, and fail the job when they no longer agree.

📖 Documentation · Repository

Usage

name: Map contract

on: [push, pull_request]

jobs:
  maptiles-doctor:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/[email protected]
      - uses: schmidi000/maptiles-doctor/packages/[email protected]
        with:
          style: style.json
          sources: |
            basemap=world.pmtiles
          fail-threshold: broken
          report: maptiles-doctor-report.json

No install step is needed: the action runs a committed self-contained bundle. @v0 tracks the latest 0.x release; pin the exact vX.Y.Z tag if you would rather not pick up a pre-1.0 breaking change.

Inputs

| Input | Default | What it does | | -------------------- | ----------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- | | style | — (required) | Path to the style JSON file. | | sources | — | Newline-separated id=path-or-url overrides pointing style source ids at real artifacts. | | fail-threshold | broken | Severity at or above which the step fails: info, warning, risky, broken. An unrecognised value is an error, not a silently disabled gate. | | report | maptiles-doctor-report.json | Where the JSON report is written. | | offline | false | Report remote artifacts as incomplete instead of fetching them. | | skip-tile-sampling | false | Check declared metadata only, without reading real tiles. |

Outputs

| Output | What it is | | -------- | ----------------------------- | | report | Path to the JSON report file. |

Annotations

Findings appear on the workflow run: broken as errors, risky and warning as warnings, and info plus every incomplete check as notices. info is deliberately a notice — it is weak evidence, and annotating it as a warning floods the run and overstates the report.

Uploading to code scanning

The CLI emits SARIF if you would rather see findings on the diff:

- run: npx maptiles-doctor check style.json --format sarif --output results.sarif
- uses: github/codeql-action/upload-sarif@v4
  with:
    sarif_file: results.sarif

Limitations

MBTiles sources report an incomplete check inside the action. MBTiles needs the native better-sqlite3 module, which cannot be bundled into a self-contained action. Use PMTiles or TileJSON in CI, or run the CLI from an installed package. An unreadable source is reported as incomplete rather than passing silently.

Visual canaries do not run inside the action. Playwright is deliberately external to the bundle, so a configured canary reports an incomplete check.

Development

The bundle in action-dist/ is committed so a runner needs no install step. Regenerate it after changing action or core sources:

npm run bundle:action

npm run check fails when the committed bundle is stale.

License

Apache-2.0