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

@reventlessdev/reventless-gwt

v1.0.0-alpha.102

Published

Given-When-Then DSLs and CLI runner for Reventless slice testing

Readme

npm License: Apache-2.0 Docs

@reventlessdev/reventless-gwt

⚠️ Alpha. APIs and on-disk formats can change without notice between releases. Pin exact versions and expect breaking changes.

Given-When-Then test DSLs and a CLI runner for slice-level testing in Reventless — a spec-driven, event-sourced CQRS framework written in ReScript. Each DSL wraps one kind of framework component (aggregate, slice, projection, automation, translation, flow) in a declarative triple-A (given / when / then) surface, and the reventless-dev CLI discovers and runs those tests across a workspace.

What it provides

ReScript test DSLs

Every component kind has a functor that produces the same describe / test / given* / when* / then* combinator surface:

  • Behavior_GWT — event-sourced behavior tests for aggregates and StateChangeSlices (givenEvents → whenCmd → thenEmits), including DCB append-condition assertions.
  • Projection_GWT / MultiSourceProjection_GWT — single-source (StateViewSlice) and multi-source (ReadModel) projection tests.
  • Query_GWT — the read side: which query patterns the projected state must support (indexes, sub-ids, resolvers).
  • Automation_GWT — AutomationSlice reaction tests (event → command).
  • InboundTranslation_GWT / OutboundTranslation_GWT / EventMapping_GWT / Mapping_GWT — cross-component translation tests.
  • Flow_GWT — cross-slice / end-to-end tests that thread one event log through a chain of slices, verifying the wiring between tiles of an Event Modeling board.

CLI runner

The package installs the reventless-dev command (alias: reventless-gwt):

reventless-dev run [--format=<fmt>] [--filter=<id>] [--stream] [--watch] [path...]
reventless-dev discover [--format=vscode] [path...]
reventless-dev watch [--format=<fmt>] [--filter=<id>] [path...]
reventless-dev platform [--format=vscode] [--backend=<b>] [--ui-ports] [path...]

It walks a workspace to discover compiled GWT tests, runs them, and reports through pluggable formatters — human, json, tap, junit, and vscode (NDJSON). It also emits the domain graph / component inventory used by editor surfaces and can launch a local platform for integration runs.

Where it fits

reventless-gwt builds on @reventlessdev/reventless-core and @reventlessdev/reventless-spec: the DSLs test the same component specs you write against core, with no storage or cloud adapter required. Its --format=vscode output speaks the @reventlessdev/reventless-domain-protocol NDJSON contract, so the same runs drive the VS Code extension's test tree and domain views.

Install

pnpm add -D @reventlessdev/reventless-gwt

Register it as a ReScript dependency in rescript.json:

{
  "dependencies": ["@reventlessdev/reventless-gwt"]
}

Requires ReScript ^12.3.0 (peer dependency). Run the CLI with pnpm exec reventless-dev run (or add it to a package script).

Links

License

Apache-2.0