New:Microsoft Teams Notifications Are Now Available in Socket.Learn more
Get Started

@chartcoach/catalog

Package Overview
Dependencies
Maintainers
2
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@chartcoach/catalog

JavaScript models and artifact parsers for the chartcoach visualization guideline catalog.

Source
npmnpm
Version
0.1.7
Version published
Weekly downloads
856
42700%
Maintainers
2
Weekly downloads
 
Created
Source

@chartcoach/catalog

JavaScript models and parsers for chartcoach catalog artifacts.

Read the package docs at docs.chartcoach.dev/javascript. Read about the cataloging scheme at docs.chartcoach.dev/catalog.

Install the package from an application root:

npm install @chartcoach/catalog
import { DEFAULT_CATALOG, loadCatalog } from "@chartcoach/catalog"

const entries = await (await fetch(DEFAULT_CATALOG.entriesUrl)).arrayBuffer()
const manifestText = await (await fetch(DEFAULT_CATALOG.manifestUrl)).text()

const catalog = await loadCatalog({ entries, manifestText })
const guideline = catalog.require("compare-percentages-with-bars-not-pies")

@chartcoach/catalog accepts bytes that the caller already acquired. Use fetch, fs.readFile, Bun.file, Deno.readFile, or a test fixture to read the artifacts, then pass entries and optional manifest data to loadCatalog.

import { readFile } from "node:fs/promises"
import { loadCatalog } from "@chartcoach/catalog"

const catalog = await loadCatalog({
  entries: await readFile("entries.parquet"),
  manifestText: await readFile("MANIFEST.md", "utf8"),
})

Parse release metadata when code needs artifact URLs:

import {
  catalogArtifact,
  catalogArtifactUrl,
  parseCatalogReleaseMetadata,
} from "@chartcoach/catalog"

const metadata = parseCatalogReleaseMetadata(await response.json())
const entriesUrl = catalogArtifactUrl(
  metadataUrl,
  catalogArtifact(metadata, "entries"),
)

const entries = await (await fetch(entriesUrl)).arrayBuffer()

Run package checks from the repository root:

pnpm --dir packages/catalog-javascript lint
pnpm --dir packages/catalog-javascript typecheck
pnpm --dir packages/catalog-javascript test
pnpm --dir packages/catalog-javascript build

License

Apache-2.0. See LICENSE.

FAQs

Package last updated on 24 Jun 2026

Related posts