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

@sixtyfold/core

v1.0.1

Published

Shared Canvas2D chart runtime, data types, and interaction primitives for Sixtyfold Charts.

Downloads

264

Readme

@sixtyfold/core

Shared runtime types and interaction primitives for Sixtyfold Charts. Most applications install @sixtyfold/line or @sixtyfold/stock; those packages bring core in as a dependency.

pnpm add @sixtyfold/core
import type { MultiSeriesData, Viewport } from "@sixtyfold/core";
import { DEFAULT_CHART_FONT_FAMILY } from "@sixtyfold/core";

Deep subpaths are exported for renderer and SSR integrations, but the root entry point is the supported convenience surface for ordinary applications.

getOptions() and getAppearance() return copied DeepReadonly snapshots. Change configuration through chart methods.

Image ownership

Charts do not consume caller-supplied ImageBitmap handles used by chartBackground or image overlays. Worker and main-thread rendering both send a structured clone to the renderer and close that clone when it is replaced or the chart is destroyed; the caller's original remains reusable. Applications may close a construction-time background, or an overlay containing only eager sources, after initialize() fulfills. If a construction overlay mixes a caller ImageBitmap with a URL or another source requiring asynchronous resolution, keep the caller handle open until the overlay is replaced or the chart is destroyed; alternatively, after initialization, explicitly await chart.setOverlay(overlay) before closing it.

Runtime backgrounds and eager-only overlays may be closed after updateAppearance() returns (or after its containing batch() returns), even while initialization is pending. For a runtime overlay containing an asynchronously resolved source, call setOverlay() directly and keep caller handles open until its promise settles. If every requested item fails to resolve, setOverlay() rejects and leaves the previously rendered overlay in place; when only some items fail, the successful items remain installed and the same call still rejects with ChartOverlayError. Superseding a pending update or destroying the chart is routine cancellation: the pending promise resolves without installing and does not surface AbortError to the caller.

URL-backed overlay images are decoded and owned entirely by the chart. Their fetch/decode implementation loads on demand, so primitive and eager ImageBitmap overlays do not add it to the initial browser runtime.

Third-party notices

Notices for generated runtime helper portions are in THIRD_PARTY_NOTICES.md.

Licensing

This package is source-available under the PolyForm Noncommercial License 1.0.0.

For current licensing, commercial terms, and prices, see Licensing and Commercial Terms and Pricing.