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 🙏

© 2024 – Pkg Stats / Ryan Hefner

pds4-product-registry

v0.2.5

Published

Extract information from a PDS4 label and generate index files suitable to load into a Level database.

Downloads

70

Readme

License npm version npm

PDS4 Product Registry

A data product level registry and related tools.

Installation

npm install pds4-product-registry -g

Tools

pds-reg-build-index: Build a product index. Extract information from a PDS4 label and generate index files suitable to load into a Level database.

pds-reg-find-index: Search the index of a database. Search the index of a database for entries that begin with a value.

pds-reg-load-index: Load index into database. Load an index generated with "build-index" into a database.

pds-reg-check-inventory: Scan a collection or bundle inventory and check that each entry is valid.

pds-reg-status: Check the status of one or more product registries. A valid responses includes the number of keys present.

pds-reg-product-server: Run the product-server web services.

Getting Started

  1. Run pds-build-index on a collection of PDS4 labeled products
pds-build-index -o listing.txt -p http://some.where.org/data
  1. Load index into a database (example "./db")
pds-load-index -d ./db listing.txt
  1. Perform a search
pds-find-index -d ./db some-key-to-find-index

Run the product-registry service

Run service on port 3130

pds-product-server -n brand-name -p 3130 -d ./db

Running with pm2 on port 8800

sudo pm2 start pds-product-server -- -p 8800 -d /var/product/db -n "My"

End points

\find?lidvid={lidvid}

Retrieve information on a product given it's {lidvid}. A partial {lidvid} will return all products that match. Return and array of JSON records.

\label?lidvid={lidvid}

Return the label for a product with a specific {lidvid}.

\product?lidvid={lidvid}[&format=zip|tar]

Retrieve a product with a specific {lidvid} as a zip or tar bundle. Default is to return a zip file.

\lookup

Perform a search through a web browser.

Project Requirements

  • Query of product registry for LIDs with common collection.
  • Output of collection query in collection inventory format
  • Command Line Features
    • Load product registry
    • Inventory query product registry
    • Collection label generation
  • Web Interface
    • Load product registry.
    • Query and list contents of product registry
  • Web API
    • Resolve LID or LIDVID to product metadata
    • Resolve LID or LID to product URL
  • Supports Registry API (TBD)
    • Given LID or LIDVID provide product metadata (label)
    • Given LID or LIDVID provide URL to product
  • Scaleable to 10s of millions of products in the product registry

License

This repository is licensed under Apache 2.0.

Contributors and Acknowledgments

This package has been developed by T. A. King.

Work on this project is sponsored by NASA.