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

@resolve-js/module-admin

v0.34.3

Published

A reSolve module that adds admin commands to an application.

Readme

@resolve-js/module-admin

npm version Analytics

Use this module to manage a reSolve application's sagas and read models.

Installation

Use the steps below to add the module-admin tool to a reSolve application.

  1. Install the module-admin NPM package:

    yarn add @resolve-js/module-admin
  2. Register a script that runs the module-admin tool in the application's package.json file:

    "scripts": {
      ...
      "module-admin": "module-admin",
      ...
    }
  3. Register module-admin as a module in the application's run.js file:

import resolveModuleAdmin from '@resolve-js/module-admin'
...
switch (launchMode) {
  case 'dev': {
    const moduleAdmin = resolveModuleAdmin()
    const resolveConfig = merge(
      defaultResolveConfig,
      appConfig,
      devConfig,
      moduleAdmin
    )
  }
  case 'test:e2e': {
    const moduleAdmin = resolveModuleAdmin()
    const resolveConfig = merge(
      defaultResolveConfig,
      appConfig,
      testFunctionalConfig,
      moduleAdmin
    )
  }
}

Usage

The module-admin tool adds API handlers to a reSolve application and sends queries to these handlers to manage the application. To use the tool, you need to start your application. Then, you can execute module-admin with the required command:

yarn module-admin read-models reset ShoppingList

The default URL that module-admin uses to access an application's API is http://localhost:3000/api. Use the --api-url option to specify another URL:

yarn module-admin --api-url "https://127.0.0.1:2000/api" read-models reset ShoppingList

Manage Application

The system command manages the application's system.

Show the system's status

npx @resolve-js/module-admin system status

Wait for an application to finish launching

npx @resolve-js/module-admin system status --wait-ready

Manage Event Store

The event-store command manages the application's event store.

Import an event store from the specified directory

npx @resolve-js/module-admin event-store import <directory>

Export an event store to the specified directory

npx @resolve-js/module-admin event-store import <directory>

Incrementally import an event store from the file

npx @resolve-js/module-admin event-store incremental-import <file>

Freeze an event store

npx @resolve-js/module-admin event-store freeze

Unfreeze an event store

npx @resolve-js/module-admin event-store unfreeze

Manage Read Models

The read-models command manages the application's read models.

View a deployed application's read models:
npx @resolve-js/module-admin read-models list
Pause and resume read model updates:
npx @resolve-js/module-admin read-models pause <readModelName>
npx @resolve-js/module-admin read-models resume <readModelName>
Reset a read model's persistent state:
npx @resolve-js/module-admin read-models reset <readModelName>

Manage Sagas

The sagas command manages the application's sagas.

View a list of available sagas:
npx @resolve-js/module-admin sagas list
Pause and resume a saga:
npx @resolve-js/module-admin sagas pause <sagaName>
npx @resolve-js/module-admin sagas resume <sagaName>
Reset a saga's persistent state:
npx @resolve-js/module-admin sagas reset <sagaName> [--side-effects-start-timestamp YYYY-MM-DDTHH:mm:ss.sssZ]

Manage Saga Properties

Use the sagas properties command to manage a saga's properties.

Set a property:
npx @resolve-js/module-admin sagas properties set <sagaName> <propertyName> <value>
Get a property:
npx @resolve-js/module-admin sagas properties get <sagaName> <propertyName>
View all saga's properties:
npx @resolve-js/module-admin sagas properties list <sagaName>
Remove a property:
npx @resolve-js/module-admin sagas properties remove <sagaName> <propertyName>

FAQ

How to restart saga side effects starting from custom time

npx @resolve-js/module-admin sagas reset <sagaName> --side-effects-start-timestamp YYYY-MM-DDTHH:mm:ss.sssZ
npx @resolve-js/module-admin sagas resume <sagaName>