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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@exabyte-io/wave.js

v2025.6.26-0

Published

Web-based Atomic Viewer and Editor in JavaScript.

Downloads

331

Readme

npm version License: Apache

Wave.js

Web-based Atomic Viewer and Editor in JavaScript. Wave.js is a library for atomic visualization and editing written in JavaScript enabling visualization of material structures from atoms up on the web.

The library was originally designed as part of and presently powers materials design capabilities of the Mat3ra.com platform.

1. Functionality.

As below:

  • the package provides a web environment for the visualization of atomic structures and is written in ECMAScript 2015 (ES6) for use on the web
  • ESSE Data Convention is employed to organize and store information [1] via Made.js
  • THREE.js is used for 3d visualization purposes
  • High-level classes for the representation of the viewer and modular ES6-compatible mixins for the associated functionality, ie:
  • wrapper components for React:

The package is written in a modular way easy to extend. Contributions can be in the form of additional functionality modules developed, or feature requests and bug/issue reports.

2. Installation.

From NPM for use within a software project:

npm install @exabyte-io/wave.js

From source to contribute to development:

git clone [email protected]:Exabyte-io/wave.git

3. Contribution.

This repository is an open-source work-in-progress and we welcome contributions.

3.1. Adding new functionality.

We suggest forking this repository and introducing the adjustments there to be considered for merging into this repository as explained in more details here, for example.

3.2. Source code conventions.

Wave.js is written in EcmaScript 6th edition [2] with the application of object-oriented design patterns encapsulating key concepts following the conventions below.

  1. One main class exposing the functionality with a set of mixins (implemented through mixwith) containing domain-specific functionality inside mixins folder

  2. The implementation of the viewer uses a native HTML node to initialize a Three.js rendering context, components folder further contains the wrapper React components for convenient use in web applications.

3.3. TODO list.

Desirable features for implementation:

  • React Three Fiber
  • scripting console
  • other (TBA)

4. Development.

There are two types of tests: asserting Wave class functionality and testing React components. Wave class tests use snapshot testing in which an snapshot of the WebGL [3] context is taken and compared with the reference. The test will fail if the two snapshots do not match. This is admittedly a bit fragile, and future work may improve the test coverage such that this is no longer necessary. React component tests use Enzyme [4] that makes DOM manipulation and traversal easier.

Note that snapshots may be slightly different depending on operating systems leading to comparison with a tolerance. A docker-compose.yml is provided for convenience. To run the tests, execute the following commands:


docker-compose build
docker-compose run test

or directly, on a host:

```bash

npm install
npm test

4.1. Important Notes.

  1. Keep the tests directory structure similar to the main codebase directory structure. Every JS module in the main codebase should have a corresponding module in tests directory which implements the tests for provided functionality.

  2. Add tests fixtures into fixtures directory. The fixtures will be automatically stored on Git LFS [6].

  3. Add Jest configuration into setupFiles module.

  4. Use setupFilesAfterEnv module to implement tests hooks.

  5. Make sure to use async keyword for Wave class tests as they are asynchronous.

4.2. Dependencies.

This package depends on Made.js, as well as a slightly modified version of Three.js. See package.json for the full list.

4.3. Using cove.js for local development

In case you need to link Cove.js into the app for local development you need

  1. Add local path of Cove.js to package.json
    "@exabyte-io/cove.js": "file:../../cove.js"
  1. Run the app
    npm start

If you need to re-link it again, remove node_modules in cove.js and the app, run npm install, then run npm start again.

5. Links.

  1. Exabyte Source of Schemas and Examples (ESSE), Github Repository

  2. ECMAScript 2015 Language Specifications

  3. Headless GL, Github Repo

  4. Enzyme, A JavaScript Testing Utility For React, Github Repo

  5. Jest Testing Framework, Official Website

  6. Git LFS, Official Website