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

@gigaflow/client

v0.1.1

Published

The GigaFlow control plane: evaluations, datasets, feedback, and durable subject outcomes.

Readme

@gigaflow/client

The GigaFlow control plane: run evaluations, read datasets, write feedback.

npm install @gigaflow/client

This is the offline half of GigaFlow. @gigaflow/sdk is for tracing what your agent does in production; this package is for scoring it against data you keep. They are separate installs because most people need only one, and the two move on different clocks.

Eval()

import { Eval } from '@gigaflow/client'

const summary = await Eval({
  apiUrl: 'https://api.gigaflow.io',
  token: process.env.GIGAFLOW_TOKEN,
  project: projectId, // UUID
  experiment: 'summariser-v3',
  data: [{ input: 'the meeting notes…', expected: 'a one-line summary' }],
  task: async (input) => summarise(input),
  scores: [({ output }) => (/\d{4}-\d{2}-\d{2}/.test(String(output)) ? 1 : 0)],
})

console.log(summary.scores) // { score_0: 1 }

An experiment runs task over every row, applies each scorer, and reports the results to GigaFlow as a comparable run. Rows are independent: a scorer that throws fails that row, recorded as an error on the case, rather than the run.

data also accepts { dataset_id, version } to run against rows curated in the UI — pinning version makes the run reproducible against an immutable snapshot.

Full guide, including the options reference: docs/evaluations.md.

Durable subject events

initSubjectEvents() delivers immutable external outcomes with bounded retries, strict response validation, and a required final-failure callback. Subjects are canonical qualified identities such as github:GigaFlowAI/gigarepo#1102; unqualified legacy identifiers are rejected. The bundled githubActionsAdapter.pullRequestClosed() builds the versioned event envelope, including the stable { kind, instance } source identity used for installation, consent, and retention policy.

import { githubActionsAdapter, initSubjectEvents } from '@gigaflow/client'

const outcomes = initSubjectEvents({
  apiUrl: 'https://api.gigaflow.io',
  token: process.env.GIGAFLOW_TOKEN!,
  onFinalFailure: ({ error, request }) => persistForOperatorReplay(error, request),
})

await outcomes.deliver([
  githubActionsAdapter.pullRequestClosed({
    repository_id: repositoryId,
    workflow_run_id: runId,
    repository: 'GigaFlowAI/gigarepo',
    pull_request_number: 1102,
    closed_at: closedAt,
    merged,
    merge_sha: mergeSha,
    compare: completeImmutableCompare,
  }),
])

Versioning

0.x, and the minor is the breaking position0.2.0 may break 0.1.x; a patch never will. This is standard 0.x semver and it is widely misread, so it is worth saying plainly: ^0.1.0 does not protect you across a minor bump. Pin ~0.1.0 if you need it to.

The emitted wire format is versioned separately from this package, under gigaflow.schema.version. Every changelog entry says whether it moved — that, not the TypeScript surface, is your real upgrade risk.

Licence

Apache-2.0.