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

@toolbarthomas/jsis

v0.1.6

Published

Javascript Signed Integer Storage

Readme

JSIS

JSIS (JavaScript Integer Schema) is a lightweight schema-based serialization utility for packing structured data into a compact Int16Array.

It allows you to define a schema describing fields and types, encode values into fixed-size integer blocks, and decode them back deterministically. This makes JSIS well-suited for binary-like storage, memory-efficient data layouts, shared memory, or low-level data transport where predictable structure matters.

Usage

  $ npm install @toolbarthomas/jsis
  import JSIS from '@toolbarthomas/jsis'

  // Basic schema
  const schema = JSIS.defineSchema(
    { key: 'id', type: 'integer' },
    { key: 'active', type: 'boolean' },
    { key: 'score', type: 'float' },
    { key: 'name', type: 'string', size: 16 }
  )

  // Create storage interface with 10 rows
  JSIS.create(10, schema)

  // Populate first row:
  JSIS.write('id', 42, schema, rom, 0)
  JSIS.write('active', true, schema, rom, 0)
  JSIS.write('score', 98.6, schema, rom, 0)
  JSIS.write('name', 'Alice', schema, rom, 0)

  // Retreive assigned values
  const id = JSIS.read('id', schema, rom, 0) // 42
  const active = JSIS.read('active', schema, rom, 0) // TRUE
  const score = JSIS.read('score', schema, rom, 0) // 98.6
  const name = JSIS.read('name', schema, rom, 0) // "Alice"

API

| Method | Arguments | Type | Description | | ------------ | ---------------------------- | ----------------------------------------- | ---------------------------------------------------------------- | | defineSchema | fields | Field[] | Defines a new Schema | | create | rows, fields | Number, Field[] | Create and assign a new Schema | | write | key, value, schema, rom, row | String, Value, Schema, Int16Array, Number | Encodes and writes a value to storage | | read | key, schema, rom, row | String, Schema, Int16Array, Number | Reads and decodes a value from storage. | | encode | value | Value | Encodes a value into an integer representation | | decode | value, type | Value, Type | Decodes integer data into its original value | | getPointer | key, schema, row | String, Schema, Number | Returns the integer offset for a field within the storage buffer | | parse | chunk | Int16Array | Parses a raw integer buffer into a schema and data view. | | hash | key, row, size | String, Number, Number | Generates a deterministic pseudo-random string. |

Definitions

| Name | Property | Type | | ------ | -------- | --------------------- | | Schema | range | Number | | | fields | Number | | | header? | Record<string, Field> | | Field | blocks | Number | | | index | Number | | | name? | String |