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

data-navigator

v1.2.4

Published

Data-navigator is a JavaScript library that allows for serial navigation of data structures using a variety of input modalities and assistive technologies.

Downloads

322

Readme

Data Navigator

Data Navigator provides visualization toolkits with rich, accessible navigation structures, robust input handling, and flexible, semantic rendering.

Data Navigator is a JavaScript library that allows for navigation of data structures. Data Navigator makes png, svg, canvas, and even webgl graphics accessible to a wide array of assistive technologies and input modalities.

Check out our online, interactive demo for a video introduction and to try out Data Navigator hands-on.

Data Navigator's approach

Data Navigator has abstracted navigation into commands, which enables it to easily receive input from screen readers and keyboards to more interesting modalities like touch and mouse swiping, spoken commands, hand gestures, and even fabricated or totally novel interfaces, like bananas.

Image in two parts. First part: Inputs: A. Hand swiping. B: Speaking "left." C. A hand gesture on camera. D. Bananas. Second part: Output: (focus moves left) A focus indicator has moved on a bar chart from one stacked bar to another on its left.

Data Navigator is expressive for builders and enables entire toolkits or ecosystems to become more accessible. The system provides low-level control over narratives, interaction paths, and journeys a user might want to take through an image or graphic.

Developers can build schemas that scale to work with any chart in a charting library or a single, bespoke implemetation for use in story-telling contexts like journalism, reports, presentations, and interactive infographics.

Image in two parts. First part: A schema for navigation that works with any stacked bar chart. Great for libraries! A complex schema is shown over a stacked bar chart with up, down, left, and right directions. Second part: A bespoke, guided journey through a visual. Great for storytelling! A simple navigation path is shown going through the image.

Not only are paths through an image customizeable but so are the visual indications that are rendered alongside those journeys. These visual indications use semantically rich, native HTML elements for maximized accessibility.

Code used to render a path that looks like an outline and then place that outline over visual elements on a data visualization.

Visit our landing page to try our demo, which shows a png image made into navigable experience. A variety of input modalities are enabled, including touch and mouse swiping, keyboard, screen reader, text input, voice control, and hand gesture recognition.

We also have a vega-lite demo online, which (under the hood) shows how someone could write one schema that serves any chart in an ecosystem.

System design

Data Navigator is organized into 3 separately composable modules: the first is a graph-based structure of nodes and edges, the second handles input and navigation logic, and the third renders the structure. These may be leveraged together or independently. Read our paper to learn more!

Types

Our types are consolidated into a single types export file, designed (mostly) as a grammar. Each major module is broken down into subparts, each with their own types, all the way to the primitive-most types used.

Getting started

You can install or use both esm and cjs modules in a variety of ways, in addition to importing all of data-navigator or just one part.

# to install into a project
npm install data-navigator
// to use it in a .js or .ts file
import { default as dataNavigator } from "data-navigator"

// whole ecosystem
console.log("dataNavigator", dataNavigator)

// one module in the ecosystem
console.log("dataNavigator.rendering", dataNavigator.rendering)
<!-- and even as a script tag module loaded from a cdn -->
<script type="module">
    // pay attention to the version! the latest may be higher than this example
    import dataNavigator from 'https://cdn.jsdelivr.net/npm/[email protected]/dist/index.mjs';
    console.log(dataNavigator);
</script>

Credit

Data-Navigator was developed at CMU's Data Interaction Group (CMU DIG), primarily by Frank Elavsky.

Citing Data Navigator

@article{2023-data-navigator,
  year = {2023},
  author = {Frank Elavsky and Lucas Nadolskis and Dominik Moritz},
  title = {{Data Navigator:} An Accessibility-Centered Data Navigation Toolkit},
  journal = {{IEEE} {VIS}}
}