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 🙏

© 2026 – Pkg Stats / Ryan Hefner

ngx-features-viewer

v0.1.18

Published

The ngx-features-viewer, frequently referred to as the features viewer, provides visualization and manipulation capabilities for biological annotations upon a biological entity.

Downloads

3

Readme

ngx-features-viewer

The ngx-features-viewer, frequently referred to as the features viewer, provides visualization and manipulation capabilities for biological annotations upon a biological entity.

Frequently, target entities are protein sequences or protein structures. Protein structures taken from the PDB or the AlphaFoldDB are frequently using the mmCIF or PDBx formats. Both these formats might have alphanumeric indices. Thus, the component can take as input a custom index.

The annotated biological entity can be provided to the component using its sequence input property. Annotation can be defined using the traces input property instead. The concept of traces has been derived mixing the concept of sparklines and traces in Plotly.

The traces have a hierarchy, which is reflected on their representation. The user can open/close a parent trace to show/hide its child traces.

The component is highly customizable. The whole HTML content of its tooltip, left labels and right labels can be defined exploiting Angular's content projection.

Global settings can be set for all components by means of the settings input property. Settings defined directly on a trace override the global ones.

Installation

To install the latest version of the features viewer into an Angular project, run:

npm install ngx-features-viewer

Usage

First, import the component and other directives in the TypeScript file:

import {
  NgxFeaturesViewerComponent,
  NgxFeaturesViewerLabelDirective,
  NgxFeaturesViewerTooltipDirective,
  SelectionContext,
  Sequence,
  Settings,
  Trace,
} from '@ngx-features-viewer';

@Component({
  imports : [
    NgxFeaturesViewerTooltipDirective,
    NgxFeaturesViewerLabelDirective,
    NgxFeaturesViewerComponent,
  ],
})
export class MyComponent {
  
}

Then, inject the component and other directives into the HTML template

<ngx-features-viewer [sequence]="sequence" [traces]="traces" [settings]="(settings$ | async)!" (selectedFeature)="onFeatureSelected($event)">
  <!-- Left label -->
  <ng-template let-trace="trace" ngx-features-viewer-label>
    ...
  </ng-template>
  <!-- Right label -->
  <ng-template let-trace="trace" ngx-features-viewer-label where="right">
    ...
  </ng-template>
  <!-- Tooltip template -->
  <ng-template let-trace="trace" let-feature="feature" let-index="index" let-coordinates="coordinates" ngx-features-viewer-tooltip>
    ...
  </ng-template>
</ngx-features-viewer>

Developer notes

Building component

Run ng build -c=production ngx-features-viewer to build the component in production mode. The build artifacts will be stored in the dist/ngx-features-viewer directory.

Publishing component

After building your library, go to the dist folder cd dist/ngx-features-viewer and run npm publish.