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-spec

v3.0.0-alpha.75

Published

Specifications for Reventless

Downloads

5,889

Readme

npm License: Apache-2.0 Docs

@reventlessdev/reventless-spec

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

The specification layer of Reventless — a spec-driven, event-sourced CQRS framework written in ReScript. This package holds the type specifications and module-type interfaces that the rest of the framework is built on: the contracts application domain code implements (commands, events, behaviors, projections) and the component-kind vocabulary the whole framework shares. It has no runtime, cloud, or storage dependency, so domain code can declare its shape against reventless-spec without pulling in an implementation. Modules are exposed under the Reventless namespace.

What it provides

ReScript modules, consumed by adding the package to your rescript.json dependencies.

Domain contracts (types/)

  • Message — the envelope metadata carried by every event and command (meta, event'<>, command'<>), used for audit, correlation, tracing, and routing.
  • Behavior — the module type application code implements to define aggregate business logic: initialState, evolve(state, event), and decide(command, state).
  • ProjectionSource / Target module types describing a read model projected from an aggregate's events.
  • Handler — function signatures for handling commands, events, and errors.
  • SideEffect — module type for an imperative side effect triggered by aggregate events (read-only access to the query engine; emits no events).
  • StoredEvent — the logical envelope for an event as it lives in storage; single source of truth for the on-disk event shape.
  • Authorization / Identity — provider-agnostic permission rules evaluated against a resolved identity.
  • QueryEngine — typed filter values and operations for read-model queries.
  • Id, EventMapping, ReadConsistency, Schedule, Visibility — supporting spec types for identifiers, event translation, consistency, scheduling, and exposure.

Component vocabulary (components/)

  • ComponentKind — the single source of truth for the Reventless component-kind vocabulary (aggregates, read models, tasks, extension points, DCB slices), including every accepted folder spelling and body-file suffix.
  • Per-kind spec modules: Aggregate, ReadModel, Task, ExtensionPoint, Plugin, and the DCB slices (StateChangeSlice, StateViewSlice, AutomationSlice, InboundTranslationSlice, OutboundTranslationSlice), plus DCB tagging/validation helpers.

generate-plugin CLI

reventless-spec ships a generate-plugin binary that auto-generates src/Plugin.res from a plugin's folder structure, classifying .res files by their parent folder name — no hand-authored composition root required.

generate-plugin src/          # generate src/Plugin.res from the src/ folder

Wire it into your build via a prebuild script so it runs before rescript build. The generated Plugin.res is committed to git, so CI compiles it directly.

Where it fits

reventless-spec is the foundation package in the Reventless framework:

reventless-spec (specifications)  ← this package
  ↓
reventless-core (provider-agnostic framework)
  ↓
reventless-aws / reventless-postgres / reventless-local (storage & deployment adapters)

You normally obtain reventless-spec transitively by scaffolding an app rather than installing it on its own.

Install

pnpm add @reventlessdev/reventless-spec

Then register it as a ReScript dependency in rescript.json:

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

Requires ReScript ^12.3.0 (peer dependency).

Links

License

Apache-2.0