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

vitessce-api

v0.0.4

Published

**Work-in-progress!** Based on [create-openapi-repo](https://github.com/Redocly/create-openapi-repo), this describes an API [Vitessce](https://github.com/hms-dbmi/vitessce) could consume, and HuBMAP could provide.

Downloads

5

Readme

vitessce-api OpenAPI Specification

Work-in-progress! Based on create-openapi-repo, this describes an API Vitessce could consume, and HuBMAP could provide.

Why?

When running on localhost, this provides much the same editing interface as Swagger. Contrasted with SwaggerHub, this approach provides:

  • The GitHub ecosystem we're familiar with.
  • We edit the spec as small files, and a build process assembles the monolithic OAS JSON.
  • Intermediate versions can be "published" to S3 for public review, without creating a new version number.
  • Final version is published to NPM where it can be referenced like any other dependency.

Out of the box, create-openapi-repo does provide a nice integration with Travis and GitHub Pages, but it doesn't match our needs right now:

  • Only the latest version is visible: Older versions could be regenerated, but they aren't accessible at a URL.
  • Waiting for Travis before merging is important, but it shouldn't be necessary to just show a work in progress.

There are things about this approach which do seem weird to me, and if there are other tools which better match our needs, please suggest them!

Develop

  1. Install Node JS.
  2. Clone repo and run npm install in the repo root.
  3. npm start launches the development server.

Running on localhost, you can make edits in the web interface and they will be saved to the local filesystem.

Publish

The publish scripts need jq: Install with homebrew/apt-get/etc..

Work should be done in a feature branch, rather than committing directly to master. When you have work you'd like others to see, run ./push-s3.sh: That will update the list at the bottom of this README.

When there's consensus on a new version of the API, make a release branch, bump the version number, and run ./push-npm.sh.

Use

On another project that wants to use the API spec, run npm install vitessce-api, and then in the code:

import { api } from 'vitessce-api';

console.log('Here is your API:', api);

Releases and Demos

Releases

See NPM.

Demos

| date | branch | version | git hash | as html | as json | | ---- | ------ | ------- | -------- | ------- | ------- | | 2019-07-11 | mccalluc/as-table | 0.0.4-rc | 4f446c6 | html | json | | 2019-07-11 | mccalluc/fill-out-end-points | 0.0.4-rc | 1797738 | html | json | | | | 0.0.4-rc | | | | | 2019-07-11 | mccalluc/fill-out-end-points | 0.0.4 | e20910d | html | json |