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

@owise1/ic-js

v2.0.0

Published

Parse and serialize the IC (Intelligence Collective) text format.

Readme

ic-js

Parse and serialize the IC (Intelligence Collective) text format — a tiny, human-readable format for recording associations between things.

Isomorphic (browser + Node), TypeScript, dual ESM/CJS, zero runtime dependencies in the core.

The broader IC vision and format documentation live at ic-caves/ic-docs. This repo is just the JavaScript/TypeScript library.

Install

npm install @owise1/ic-js

The format

_0x04916228              # perspective id (a line starting with `_`); bare `_` = no perspective
things i love            # a "parent" (top-level line, no prefix)
+my family               # `+` child  → an affirmed connection to the parent(s) above
-doomscrolling           # `-` child  → a negated connection
+warmth,1620150217594    # optional ,timestamp (ms) suffix

doomscrolling            # a new parent block
+huckster
// lines starting with // are comments

Consecutive top-level lines are all parents; each following +/- line creates one connection per accumulated parent (multi-parent). In memory a connection is:

interface Connection {
  parent: string
  child: string
  affirm: boolean        // + => true, - => false
  perspective?: string   // the `_` id
  time?: number          // ms, from the ,timestamp suffix
  source?: string        // url a connection was resolved from
}

API

import { parse, stringify, resolve, isIcUrl } from '@owise1/ic-js'

// text -> connections (pure, synchronous)
const doc = parse('animals\n+cat\n-dog')
// [{ parent: 'animals', child: 'cat', affirm: true },
//  { parent: 'animals', child: 'dog', affirm: false }]

// connections -> text (pure; default `pure: true` sorts deterministically and drops timestamps)
stringify(doc)                       // "_\nanimals\n-dog\n+cat"
stringify(doc, { pure: false })      // preserves insertion order and ,timestamps

Following referenced .ic files

An IC document can reference other IC files by URL. resolve parses the input and recursively fetches any referenced .ic URLs (appearing as a parent or child), merging their connections — cycle-safe and depth-limited. The fetcher is pluggable (defaults to the global fetch).

import { resolve } from '@owise1/ic-js'

const all = await resolve(icText, {
  fetch: (url) => fetch(url).then((r) => r.text()), // optional; this is the default
  depth: -1,                                        // -1 = unlimited (default); 0/1 = don't follow refs
  onError: (url, err) => {/* optional; failures are skipped silently by default */},
})

Content addressing

import { calculateCID } from '@owise1/ic-js/cid'

(await calculateCID('hello')).toString()
// 'bafkreibm6jg3ux5qumhcn2b3flc3tyu6dmlb4xa7u5bf44yegnrjhc4yeq'

calculateCID (CIDv1 / raw / sha-256) is exposed on the @owise1/ic-js/cid subpath so its only dependency, multiformats, stays out of the core bundle.

License

MIT