Use the knowledge partitons to make a NPM data package#181
Draft
abkfenris wants to merge 1 commit into
Draft
Conversation
This was referenced Jun 24, 2026
Merged
Javascript size report
✅ No size change. |
Draft
Add js-data-pkg/ containing the standard_knowledge_data npm package —
a pure-JS companion to the WASM package that ships pre-generated IOOS
community knowledge and CF standard name partitions as tree-shakable
ESM modules.
Build script (js-data-pkg/scripts/build.mjs) reads core/standards/*.yaml
directly and emits gitignored ESM files:
all-standards.js — full CF vocabulary (~3.9 MB)
all-knowledge.js — CF subset + all 41 knowledge entries
partitions/{slug}.js — per-IOOS-category self-contained subsets
Package exports use wildcard subpath patterns so new categories are
picked up automatically without updating package.json:
import met from 'standard_knowledge_data/partitions/meteorology'
Add data_pkg_build nox session (off by default) and build_data_pkg CI
job that installs deps, runs the build, and smoke-tests the meteorology
partition before any publish step.
407164e to
16f471a
Compare
edd4d33 to
a2c9065
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add js-data-pkg/ containing the standard_knowledge_data npm package —
a pure-JS companion to the WASM package that ships pre-generated IOOS
community knowledge and CF standard name partitions as tree-shakable
ESM modules.
Build script (js-data-pkg/scripts/build.mjs) reads core/standards/*.yaml
directly and emits gitignored ESM files:
all-standards.js — full CF vocabulary (~3.9 MB)
all-knowledge.js — CF subset + all 41 knowledge entries
partitions/{slug}.js — per-IOOS-category self-contained subsets
Package exports use wildcard subpath patterns so new categories are
picked up automatically without updating package.json:
import met from 'standard_knowledge_data/partitions/meteorology'Add data_pkg_build nox session (off by default) and build_data_pkg CI
job that installs deps, runs the build, and smoke-tests the meteorology
partition before any publish step.
This is part 5 of 6 in a stack made with GitButler: