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

hise-publication-viewer

v1.2.8

Published

Renders publication objects for the Human Immune System Explorer (HISE)

Downloads

137

Readme

hise-publication-viewer

Renders publication objects for the Human Immune System Explorer (HISE).

Exports a React component that renders a publication object, which includes the report, visualizations, and notebook and file download.

Default export is meant to be used only for 'preview mode' in the internal application.

Intaliation and usage

Intall via npm:

npm install hise-publication-viewer
# or
yarn add hise-publication-viewer

Then in a .jsx file:

import PublicationViewer from 'hise-publication-viewer';

...

<PublicationViewer
  publication={{
    // Publication object
  }}
/>

A publication object has the following properties:

{
  //
  // Required fields
  //
  
  // The publication title
  title

  // Short description of publication
  summary

  // List of publication funders
  funders

  // List of author objects with firstName and lastName (required), middleName and suffix,orcidId, affiliation (affil), and affiliation ROR (affilRor)
  authorInfo

  // List of preview images representing publication
  heroImages

  // Link to the publication report, a PDF or HTML file
  reportLink

  // Year of publication
  publicationYear

  // Publishing journal/resource
  publisher

  //
  // Optional fields
  //

  // Link to download the associated Jupyter notebook
  publicNotebook

  // Links to datafiles required to run the notebook
  publicFileSet

  // Links to any github repos related to the publication
  githubLinks

  // Link to an interactive plotly visualization or dash app
  publicVisualization
}

Development

Package components can be developed and tested using Storybook:

yarn storybook

Using the package locally via yarn link

If you want to try using this package locally, run:

yarn link

and in either HISE or public HISE:

yarn link hise-publication-viewer

To see any changes you've made, run

yarn build:local ingest-ui

or

yarn build:local hise-public-ui

build:local runs the normal build script but also replaces the React import so there aren't two versions being imported. The argument after build:local is the directory name of the package you're linking to. For more context: https://github.com/facebook/react/issues/14721#issuecomment-815897397

If this does not work, you may also need to remove and reinstall node_modules from the repo that you are using this package.

Make sure to run yarn build before committing changes.