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

@omena/wasm

v0.2.1

Published

Wasm bindings for browser-side Omena CSS parser and transform checks

Readme

omena-wasm

omena-wasm exposes the first browser-side binding for the Omena CSS workspace. The binding consumes omena-query as the public Rust facade and keeps parser and transform crates behind that boundary.

The current API is intentionally in-memory:

  • checkStyleSource(source, path) checks CSS-family source text and returns query-owned parser facts.
  • buildStyleSource(source, path, passIds) runs conservative transform passes and returns the execution summary plus output CSS.
  • buildStyleSourceWithContext(source, path, passIds, context) accepts explicit evaluator/provenance context and returns the execution summary plus output CSS.
  • buildStyleSourceForTargetQuery(source, path, targetQuery) plans conservative target-sensitive passes from a Browserslist query or named target profile.
  • buildStyleSourceForTargetQueryWithOptions(source, path, targetQuery, targetOptions) accepts camelCase target transform options for explicit lowering opt-ins.
  • buildStyleSourceForTargetQueryWithContext(source, path, targetQuery, targetOptions, context) combines target planning with explicit evaluator context, including dart-sass-compatible SCSS output.
  • buildStyleSourcesWithContext(targetPath, sources, passIds, context, packageManifests) derives import/composes context from an in-memory workspace source array, merges explicit evaluator/provenance context, and returns an execution summary plus output CSS.
  • buildStyleSourcesForTargetQueryWithContext(targetPath, sources, targetQuery, targetOptions, context, packageManifests) combines target planning with workspace-derived import/composes context.
  • readCascadeAtPosition(source, path, line, character, input) reads cascade, computed-value, and custom-property LFP information at a var(...) reference position. Pass null or undefined for input when no EngineInputV2 context is needed.
  • readStyleContextIndex(source, path, input) reads query-owned @layer, @container, and @scope context indexes. Pass null or undefined for input when no EngineInputV2 context is needed.
  • readStyleDiagnostics(source, path) reads query-owned style diagnostics for a CSS-family file.
  • readStyleHoverCandidates(source, path) reads query-owned style hover candidates for a CSS-family file.
  • readStyleCompletionAtPosition(source, path, line, character) reads query-owned style completions at a source position.
  • readSourceDiagnostics(sourceUri, candidates) reads query-owned source diagnostics from precomputed missing-selector candidates.
  • expressionDomainIncrementalFlow(input) runs one query-owned expression-domain incremental-flow pass for simple browser clients.
  • new ExpressionDomainFlowRuntime().analyze(input) keeps the query-owned incremental-flow runtime alive across calls so browser clients can observe graph reuse.
  • expressionDomainSelectorProjection(input) projects expression-domain flow values to target style selectors.
  • listTransformPasses() lists transform pass ids accepted by buildStyleSource.

This crate does not read from the filesystem and does not provide the Node or LSP integration layer. Those stay in native consumer crates.