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

calcyte

v1.0.9

Published

Calcyte is a command-line tool and set of libraries for creating and managing DataCrate data packages

Downloads

10

Readme

CalcyteJS

This is a work-in-progress port of the python-based Calcyte tool.

Status

This is Alpha code.

About

Calcyte is a toolkit to implement the RO-Crate specification:

  1. Generating HTML from RO-Crate ro-crate-metadata.jsonld files.
  2. Managing metadata for collections of content via automatically generated spreadsheets (CATALOG.xlsx), to create ro-crate-metadata.jsonld files
  3. Packaging data in BagIt format, and optionally zipping it.

This version of Calcyte targets the R0-Crate Spec, v1.0.

Installation

NOTE: These instructions are for MacOs - adapt as necessary.

NOTE: Bagit is no longer required!

  • Install node.js

  • Install Siegfreid using the instructions.

  • Get the code:

    git clone --single-branch --branch https://code.research.uts.edu.au/eresearch/CalcyteJS.git

  • Link the binary for development use:

    npm link

Usage / instructions

Usage

Calcyfy creates RO-Crates with an HTML entry-point in ro-crate-preview.html file.

Usage:

>  ./calcyfy
   Usage: calcyfy [options] <directories...>

  Generates [RO-Crate] HTML for ro-crate-metadata.jsonld files. Pass a list of directories. To create Spreadsheet files for entering metadata use -d or -r.


  Options:

    -V, --version                    output the version number
    -b,  --bag [bag-dir]             Create Bagit Bag(s) under [bag-dir])
    -n,  --no                        No Citation - only applies ith --bag
    -z,  --zip                       Create a zipped version of the bag - only applies with --bag
    -d,  --depth [depth]             Maximum depth to recurse into directories
    -r,  --recurse                   Recurse into directories looking for CATALOG_.xslx files
    -c,  --cratescript [cratesript]  URL of "crate.js" rendering script from the ro-crate-js library
    -u, --url [distro]               Distribution URL
    -h, --help                       output usage information

To run Calcyte on a group of directories pass it a list of directories

To generate an HTML file for an ro-crate-metadata.jsonld file in ./dir

calcyfy dir

One directory:


calcyfy -r test_data/sample/ 
calcyfy test_data/Glop_Pot -r -c https://data.research.uts.edu.au/examples/ro-crate/examples/src/crate.js

This will:

  • Traverse the entire Glop_Pot directory, and generate or update CATALOG_name.xlsx files.
  • Create or update the test_data/Glop_Pot/ro-crate-metadata.jsonld`` file
  • Create a RO-Crate Website with entry-point test_data/Glop_Pot/ro-crate-metadata.html

All the sample directories:

calcyfy -r test_data/* -c https://data.research.uts.edu.au/examples/ro-crate/examples/src/crate.js

Calcyte will generate:

  • a CATALOG_$dir.xlsx file in each directory (this is for humans to fill in with metadata about the data)

  • An ro-crate-preview.html file summarizing the data using metadata from CATALOG_$dir.xlsx

  • An ro-crate-metadata.jsonld file containing JSON-LD metadata derived from the CATALOG* files plus some basic file-format information.

See the examples in test_data.

TODO: Instructions for filling in the CATALOG files.