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

@ignfab/gpf-schema-store

v0.1.2

Published

Experimental OGC API Features schema store enriched from Geoplateforme WFS.

Readme

gpf-schema-store

Work in progress (see ROADMAP)

Non official / experimental implementation of OGC API Features - schema by enriching information from the Geoplateforme WFS to ease data discovery by AI (and humans).

Data model

The data model is :

  • id : WFS GetCap FeatureType <Name> (namespace:name = unique identifier)
  • namespace : namespace identifier (e.g BDTOPO_V3)
  • name : name identifier (e.g batiment)
  • title : WFS GetCap <Title> "BDTOPO : Bâtiments"
  • description : WFS GetCap <Abstract>
  • properties : Array of property defined by name, type, title and description. enum is also available when necessary.

When merged with data/overwrites, title and description are overwriten when available.

Usage

Build

npm install
npm run build

Test

npm run test

Scrap data from GPF WFS

Fetch WFS schemas from GPF, apply namespace filtering rules from data/namespace-filters.yaml, then regenerate data/wfs.

# download data/wfs/{namespace}/{name}.json
npx gpf-schema-store update

Check local overwrites

Compare local WFS snapshots stored in data/wfs with local overwrite files in data/overwrites.

# check that overwrites are aligned with local snapshots in data/wfs
npx gpf-schema-store check-overwrites

Generate namespace report

Generate data/namespaces.csv to review every discovered namespace, its computed metadata (product, ignored, ignoredReason), and its collections.

# generate data/namespaces.csv
npx gpf-schema-store update-namespaces

Configure namespace filtering

Edit data/namespace-filters.yaml to decide which namespaces are kept or ignored and to assign metadata (product, ignoredReason) using first-match-wins rules.

See data/namespace-filters.yaml

Test local search

Use the search command to quickly inspect the results returned by the search engine with its default options.

# display the top 5 results
npx gpf-schema-store search chef lieu commune --limit 5

# another example
npx gpf-schema-store search bdtopo batiment --limit 3

The output shows the collection identifier, the computed score, and MiniSearch match details, which makes it easier to compare ranking behavior before and after a search change.

Render merged catalog files

Useful for debugging : Write the final merged collection JSON files, as seen by the local catalog after applying data/overwrites, to an output directory.

# write merged files to ./tmp/catalog/{namespace}/{name}.json
npx gpf-schema-store render-catalog ./tmp/catalog

# start from a clean output directory
npx gpf-schema-store render-catalog ./tmp/catalog --clean

Test a local package build in geocontext

If you want to test a local change from this package inside geocontext, the simplest and most reliable workflow is to install a local tarball generated with npm pack.

This is the recommended approach because it is very close to a real npm publish:

  • it uses the package files / exports configuration
  • it only installs what would actually be shipped
  • it avoids some of the resolution quirks of npm link

From this repository:

npm run build
npm pack

This creates a tarball such as ignfab-gpf-schema-store-0.1.0.tgz.

Then, from your local geocontext checkout:

cd /path/to/geocontext
npm install /path/to/gpf-schema-store/ignfab-gpf-schema-store-0.1.0.tgz
npm run build
npm test

When you make a new change in gpf-schema-store, rebuild and regenerate the tarball, then reinstall it in geocontext.

If you only want to test locally without updating package.json, use --no-save:

npm install --no-save /path/to/gpf-schema-store/ignfab-gpf-schema-store-0.1.0.tgz

If you already installed the local tarball with a saved dependency, restore the published dependency afterwards:

npm install @ignfab/gpf-schema-store@^0.1.0

Using a direct local path like npm install ../gpf-schema-store can work too, but it is less predictable because it depends on the local package state and requires extra care to keep dist/ up to date.

License

MIT