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

databyss-org-workspace

v1.0.2

Published

massive open-source citation database platform

Downloads

4

Readme

databyss project

A collection of packages that drive the databyss platform.

CircleCI

If you're a new developer working on the project,
please see our CONTRIBUTING guide.

Table of Contents

Packages

Available Scripts

In the project directory, you can run:

yarn build

Runs scripts/build.sh, which looks for a deploy target set in the NPM_DEPLOY_TARGET environment variables.

This is useful for deploying to a host that runs yarn build and then serves a static website from the /build directory, which is how our Heroku styleguide and module demo servers are configured.

yarn build:ui

Builds the @databyss-org/databyss-ui package to the /dist directory for distribution. See the databyss-ui Getting Started section for more.

yarn styleguide

This will start the Styleguidist server and make the styleguide available at: http://localhost:6060

Styleguidist combines a style guide, where all your components are presented on a single page with their props documentation and usage examples, with an environment for developing components in isolation, similar to Storybook. In Styleguidist you write examples in Markdown, where each code snippet is rendered as a live editable playground.

yarn styleguide:build

This builds the Styleguidist styleguide to a static site that you can publish.

yarn storybook

This will start the Storybook server and make the Storybook Demo site available at: http://localhost:6006

Demo Usage

We use Storybook to demo our modules. To load the table of contents, browse to http://localhost:6006. Then, once you're on a module, add iframe.html before the query string to load a standalone version of the module. This is necessary, for example, when testing or demoing a module on mobile, where the IFRAME interface will interfere with fullscreen functionality.

Demo URL Example

If the URL in the Storybook interface is
https://localhost:6006/?selectedKind=Profile&selectedStory=Edit%20Profile&full=1&addons=0&stories=1&panelRight=0
then the standalone demo URL would be https://localhost:6006/iframe.html?selectedKind=Profile&selectedStory=Edit%20Profile&full=1&addons=0&stories=1&panelRight=0

yarn storybook:build

This builds the Storybook app to a static site that you can publish.

yarn lint

This runs eslint on the codebase and reports problems. See also Linting

yarn test

Runs the linter and the Jest test runner in the interactive watch mode. It is a good idea to have this running while you develop to catch problems and ensure everything is passing before you make a PR.

Learn more about writing tests in the Contributing doc

Supported Language Features and Polyfills

This project supports a superset of the latest JavaScript standard. In addition to ES6 syntax features, it also supports:

Note that the project includes a few ES6 polyfills:

If you use any other ES6+ features that need runtime support (such as Array.from() or Symbol), make sure you are including the appropriate polyfills manually, or that the browsers you are targeting already support them.

Also note that using some newer syntax features like for...of or [...nonArrayValue] causes Babel to emit code that depends on ES6 runtime features and might not work without a polyfill. When in doubt, use Babel REPL to see what any specific syntax compiles down to.

Linting

This project uses ESLint to maintain a consist and valid codebase. We have chosen to base our linting rules on Airnb's js styleguide and Prettier, but have added some of our own rules in .eslintrc.

If you need to deviate from the rules, try to use inline comments. If you believe a rule should be changed globally, make the change in .eslintrc. In either case, please add a comment explaining your reason for changing the linting rule.

You might want to integrate Prettier in your favorite editor. Read the section on Editor Integration on the Prettier GitHub page.