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

@neptune.fintech/tokens

v2.0.0

Published

Neptune Odyssey determinism backbone — OKLCH→sRGB color math, seed→palette ramp, brandprint codec, pinned reference palettes, and the unified theme builder.

Readme

@neptune.fintech/tokens

The determinism backbone of Neptune Odyssey — the white-label banking design system by Neptune.Fintech. This package owns the color math, the seed→palette ramp, the brandprint codec, the pinned reference palettes, and the unified theme builder. Every other Odyssey library (Flutter, web, Svelte, Vue) resolves themes through the same logic, so the same brandprint produces the same theme everywhere.

Source-available under the Neptune Odyssey Community License v1.0 — free for non-commercial use and for organizations under USD $25k/yr revenue. See LICENSE.

Install

pnpm add @neptune.fintech/tokens

ESM-only, sideEffects: false, fully tree-shakeable, SSR-safe. No runtime CSS-in-JS.

Three ways to theme — one surface

import { buildTheme } from "@neptune.fintech/tokens";

buildTheme("triton", { mode: "dark", dir: "rtl" }); // 1 · reference brand id
buildTheme(myConfig);                                  // 2 · full config object
buildTheme("NO1-AYB4AKKeeABWDBIaIiw4B_YBAAABAQEBAQAAyA"); // 3 · brandprint string

buildTheme() returns a platform-agnostic NeptuneTheme: resolved colors (37 M3 roles incl. success), shape (xs…xxl), type, the five expression levers, motion (per-brand easings/durations), plus the canonical brandprint.

The brandprint codec

import { encode, decode } from "@neptune.fintech/tokens";

const print = encode(config);   // "NO1-…"  · 28-byte payload, base64url, checksummed
const config = decode(print);   // throws on bad prefix / length / checksum / version

Registries are append-only — the enum indices are the wire format (see docs/11).

Color & palette

import { oklchToHex, oklchToArgb, generatePalette, resolvePalette } from "@neptune.fintech/tokens";

oklchToHex({ L: 0.48, C: 0.15, H: 258 });          // "#1d5ab0"
resolvePalette(primarySeed, tertiarySeed, "light"); // pinned for reference, ramp for custom

The determinism contract (what the golden tests guarantee)

  1. Pinned reference palettes are exact. getResolvedPalette(brand, mode) equals build/tokens.resolved.json byte-for-byte, and the Flutter package ships the identical ARGB data — so Flutter == Web is exact by construction for the four reference brands.
  2. The shared OKLCH→sRGB converter reproduces that data to ≤ 1 LSB per channel (275/296 roles exact = 93%; the 21 residuals are off-by-one at gamut edges — sub-perceptual browser rounding). It is used for custom seeds, where the TS and Dart ports run identical math and therefore agree with each other.
  3. The brandprint codec is byte-identical to tools/brandprint.reference.js for the four brands, idempotent (encode(decode(x)) === x), and rejects tampered/short/wrong-version strings.

Run them: pnpm --filter @neptune.fintech/tokens test.


© 2026 Neptune.Fintech. "Neptune Odyssey" and "Neptune.Fintech" are marks of the Licensor. The bundled example brands (neptune/triton/nereid/proteus) are reference illustrations only.