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

@igrs/circahue

v0.1.1

Published

Circadian accent hues from clock time, season, and latitude — pure TypeScript, zero DOM

Downloads

117

Readme

circahue

Circadian accent hues from clock time, season, and observer latitude.

Pure TypeScript — no DOM, no React, zero runtime deps.
Born as the Luminat “living light” accent (code name light-hue); npm package @igrs/circahue.

CI npm

Install

npm install @igrs/circahue

Quick start

import { sampleLightHue, applyCssVars, createLightHueTicker } from "@igrs/circahue";

const snap = sampleLightHue({
  latitude: 57.63, // e.g. Yaroslavl
  timeZone: "Europe/Moscow",
  season: "auto", // auto | winter | mid | summer
  hourOverride: 18, // optional dial / demo
  includeArcs: true, // SVG sun/moon day chart
});

// browser
applyCssVars(document.documentElement, snap.cssVars);

const ticker = createLightHueTicker(
  (s) => {
    applyCssVars(document.documentElement, s.cssVars);
  },
  { latitude: 57.63, timeZone: "Europe/Moscow", intervalMs: 60_000 },
);

// later: ticker.stop();

What it computes

| Output | Source | | ------------------------------ | ------------------------------------------------------------------------------------------ | | Accent RGB / hex / hover / dim | Time-of-day keyframes (midnight → sunrise → zenith → sunset → dusk) | | Glow alpha / blur, ring alpha | Season shaping (winter soft, summer punchy) | | Solar altitude & day arc | Declination + hour angle at latitude | | Moon age, phase fill, arc | Synodic month from 2000-01-06 new moon epoch | | CSS vars | --accent-primary, --accent-primary-hover, --accent-primary-dim, plus --light-hue-* |

Brand accent ≠ status. Green/red stay for success/danger in the host design system.

API

sampleLightHue(opts?): LightHueSnapshot

interface LightHueOptions {
  at?: Date;
  hourOverride?: number; // 0–24
  timeZone?: string; // IANA, e.g. "Europe/Moscow"
  latitude?: number; // default 55.75
  longitude?: number; // reserved
  season?: "auto" | "winter" | "mid" | "summer";
  includeArcs?: boolean;
  arcHeight?: number;
  locale?: string;
}

Also: lightHueCssVars, createLightHueTicker, solarDayEvents, zonedParts, lightAt, DAY_STOPS, …

Time zones

sampleLightHue({
  at: new Date(),
  timeZone: "America/New_York",
  latitude: 40.71,
});

Moon age stays absolute (UTC). Latitude is explicit — pair zone + city lat yourself.

Demo (GitHub Pages)

Live: https://isamarin.github.io/circahue/

Location / timezone / lat·lon, 24h dial, sun·moon chart, UI kit on CSS vars.

npm install
npm run dev              # → http://localhost:5173
GITHUB_PAGES=1 npm run build:demo   # → ./site with base /circahue/

Scripts

npm test
npm run build
npm run typecheck
npm run lint          # ESLint
npm run format:check  # Prettier
npm run publint       # package export quality
npm run quality       # all of the above + tests + build
npm run build:demo    # static playground → ./site

Publish

See PUBLISH.md — npm, tags, CI, CDN.

License

MIT · isamarin × BLMK