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

@o3co/auth.policy-verifier.cedar-wasm

v0.14.0

Published

Last updated: 2026-09-23

Downloads

592

Readme

@o3co/auth.policy-verifier.cedar-wasm

Last updated: 2026-09-23

The in-process Cedar engine for @o3co/auth.policy-verifier.cedar: the official @cedar-policy/cedar-wasm bindings behind cedar's CedarEngine port.

Importing this package is all a deployment does to select it:

import { cedarPolicyModule } from "@o3co/auth.policy-verifier.cedar";
import "@o3co/auth.policy-verifier.cedar-wasm";

The import registers the engine as "wasm". CedarPolicyRuleCollector picks it whenever its config names no engine, and engine = "wasm" spells the same choice out — that setting refuses to start when this package was not imported, naming it. Nothing else about the collector's config changes with the engine; see cedar's README for the whole of it.

It also vouches for the policy revision behind every answer (confirmsRevision, #244): the set is compiled in this process, from the files the revision was computed over, under an id nothing else holds — so an answer cannot have come from any other policies. It is the engine requireConfirmedRevision = true boots over; see cedar's Policy revision.

Responsibility

Role. One engine behind cedar's CedarEngine port (engine.mts). It depends on @o3co/auth.policy-verifier.cedar and on @cedar-policy/cedar-wasm. No package in this repository depends on it (only the integration tests do); a deployment imports it.

Owns (src/wasmEngine.mts):

  • Parse-checking each policy file at boot, so a syntax error names its file, and compiling the set once into wasm memory under an id minted per load.
  • Evaluating each request against that compiled set, synchronously, and rendering the bindings' answer as a CedarDecision.
  • Naming the revision of the source it compiled on every answer.
  • The exact version of @cedar-policy/cedar-wasm.
  • Registering itself as "wasm" when imported (src/index.mts).

Does not own. Policy loading, the policy revision itself, the attribute-to-request mapping, what an answer means (the answer table, onNoDeterminingPolicy, the revision check) and which engine is selected. All of that is cedar's, and is identical whichever engine runs.

Why a separate package. The cost below: about 12 MB of wasm instantiated on import. Kept out of cedar, it is carried only by a deployment that evaluates in-process; one that runs cedar's http engine never loads it.

What it costs, and when to choose it

The policy set is compiled once, at boot, into wasm memory; each request references the compiled set and re-parses nothing. A decision is synchronous, deterministic, and takes a few tens of microseconds — no network, no timeout to tune, no second process to run. That is the right trade for a policy set whose evaluation is cheaper than a loopback hop, which is most of them.

The cost is paid at import: the wasm module is about 12 MB on disk and is instantiated when the bindings load, on the verifier's own event loop. A deployment whose policy set is large enough that evaluation competes with request handling — or that wants Cedar's evaluator scaled and upgraded apart from the verifier — runs cedar's http engine against a cedar-agent instead and leaves this package out — see Running out of process and the measured sizing table. That is a dependency change, not a config change.

Version pinning

@cedar-policy/cedar-wasm is pinned exactly: Cedar minor releases can carry policy-language changes, so upgrades should be deliberate and re-validated, not fall out of a range resolution.