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

@commonedge/api

v0.3.0

Published

TypeScript bindings for CommonEdge APIs

Readme

CommonEdge TypeScript APIs

This is a collection of client-side APIs for interacting with the CommonEdge glass design models and services from TypeScript and JavaScript.

General Notes

This library is intended to be imported by module. So rather than importing something from the package as a whole:

import { Opening } from '@commonedge/api'; // does not work

you must import from the module within the package:

import { Opening } from '@commonedge/api/Silica/Opening'; // works!

This is partly as a simplistic form of tree shaking, but mostly to provide name spacing as different generations provide similarly named models.

Models

Each model comes with TypeScript type definitions and an encoder-decoder pair to validate that a received model matches the type. There are also supplied optics (using the monocle-ts library) to manipulate the model in an pure/immutable fashion with maximum data sharing.

Template

Template provides generic templating of an client-opaque model. The client can manipulate the Value field of each Option and Variable, and the server can then substitute in the variables and apply the options to the data payload before sending them on to the appropriate service.

  • Type/Codecs: complete.
  • Optics: none.

Silica/Opening

Opening is a model the walls, floor, and ceiling surrounding a single opening, which is to be filled with panels of some material.

  • Type/Codecs: complete.
  • Optics: partial.

Silica/Division

Division is typically used as part of the Opening model to describe how each Section in an Opening should be split into panels. This library provides types and validators for these structures, as well as optics to manipulate them.

  • Type/Codecs: mostly complete.
  • Optics: partial.

Services

Requestor

Requestor abstracts the details of making a, probably authenticated, one-off request of the server. Currently the only Requestor is in Requestor/Glassd which requires an API token-secret pair.

Subscriber

Subscriber abstracts the details of opening a, probably authenticated, session with the server. It is currently unimplemented in the client.

Silica/Calc

Calc requests calculations of the server. The client provides a set of inputs, and the server responds with the requested outputs, or messages describing what went wrong in producing those outputs.

Silica/Opening/GetDrawings

GetDrawings requests SVG drawings of Openings suitable for display to the end user, with sufficient metadata to create an interactive client.