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

@dailui/omega-api

v0.1.0

Published

Thin, typed JavaScript/TypeScript client for the Omega-API geometric judge.

Readme

@dailui/omega-api · JavaScript / TypeScript client

A thin, typed client for the Omega-API geometric judge. It sends one turn to the judge over HTTP, reads the gate, and returns a decision your app can act on.

This is not a wrapper. It is a comfort layer over one HTTP call. Every future SDK is a thin client over the same judge.

Zero runtime dependencies (native fetch). Node 18+. TypeScript types included. Apache-2.0.

What it does

Omega-API measures whether the process in an agent conversation is moving — turn by turn — and returns a decision. There is no client-side session state to manage: the judge keeps it server-side, per sessionId. The interface is open; the judging method is proprietary.

Before you start: register → key → judge → meter

  1. Register and create a project at your Omega-API account page.
  2. Get an API key (oapi_live_…).
  3. Judge: one call per turn.
  4. Meter: your first 100 judgments are free; after that, billing applies.

Set your key in the environment:

export OMEGA_API_KEY=oapi_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Install

npm install @dailui/omega-api

Quick start

import { Omega } from "@dailui/omega-api";

const omega = new Omega(); // reads OMEGA_API_KEY

const decision = await omega.judge({
  input: "customer message",
  output: "agent reply",
});

if (decision.release) {
  show(reply);              // PROCEED or Shadow mode
} else if (decision.isClarify) {
  await regenerateThenCallAgain();
} else if (decision.isSuppress) {
  stopOrEscalate();
}

turnId is omitted by default, so the judge assigns a unique one and returns it (decision.turnId). When sessionId is omitted, the client mints a fresh one for the call.

Act on the gate

Read the gate and act before you display the agent's response:

| gate action | what your app does | | ----------- | --------------------------------------------------------------------------- | | release | show the original response | | clarify | do not release yet — ask the agent to realign / regenerate, then call again | | suppress | do not release — stop / escalate / fall back per your policy | | none | Shadow mode — observe only, show the original |

In Shadow mode the gate always returns none. Operator mode is opt-in per key. The getters decision.release, decision.isClarify, and decision.isSuppress read the gate directly.

Real multi-turn conversations

Keep one sessionId per conversation:

const session = omega.session("support-ticket-123");

const d1 = await session.judge({ input: "hi", output: "hello" });
const d2 = await session.judge({ input: "my order never arrived", output: "let me check that for you" });

Fail-open is a policy, not a default

judge() rejects on every error — auth, bad request, 409 TURN_CONFLICT, rate limit, server, transport. If you want to release the original when the judge is unreachable, opt in explicitly:

const decision = await omega.judgeOrRelease({ input: msg, output: reply });
// on a transport/server failure: decision.release === true, decision.judged === false

Only transport and server errors are treated as fail-open. Auth, request-shape, conflict, and rate-limit still reject.

What Omega-API does not claim

It measures whether the process moved. It does not promise the agent achieved the user's goal — the two are independent. Act and bill on the movement; read the outcome separately.

Errors

OmegaConfigError · OmegaAuthError · OmegaRequestError · OmegaConflict · OmegaRateLimited · OmegaServerError · OmegaTransportError — all subclasses of OmegaError.

On the roadmap

observedEvent() — anchoring a real business outcome to a session — is planned for a future release, in parity with the Python SDK. It requires a key with the events capability. Most first integrations never send events; that is a legitimate state, not an error.

Links

License

Apache-2.0.