r/npm • • 11h ago

Self Promotion contextpack-cli: zero-dependency CLI that packs a repo into a token-budgeted prompt for LLMs

1 Upvotes

I published contextpack-cli recently. It solves a problem I kept hitting: pasting a repo into an LLM one file at a time and blowing the context window on node_modules and lockfiles.

npm: https://www.npmjs.com/package/contextpack-cli Source: https://github.com/fadiuniv1/contextpack

Run it with `npx contextpack-cli . -o context.md`

It respects nested .gitignore and .ignore files, ranks source code above tests, redacts common secret formats, and supports --task, --diff, --profile and JSON output. Zero runtime dependencies, MIT licensed.

Honest caveat: token counts are local estimates (~±15%), not exact tokenizer counts. Feedback welcome.


r/npm • • 14h ago

Self Promotion Built a lightweight Node.js (ESM) MCP server & CLI that maps repo import topology and git hotspots so AI coding agents stop reading 20+ files blindly

1 Upvotes

I built project-context-map-mcp (MIT, Node.js >=20, pure ESM with u/modelcontextprotocol/sdk as the only runtime dependency).

Why I built it

When using AI coding agents (Claude Code, Cursor, VS Code Copilot) on medium/large Node.js repos, they usually start by walking directories and reading 15–25 files just to trace imports and recent changes—burning tokens and context before editing anything.

I wanted a lightweight, zero-config indexer that turns a repo into a structured map (.project.md, .project-map.json, .project-map.md) so the agent queries topology first and only reads the relevant files.

How it works under the hood

  • File & Module Indexing: Walks the repo (skipping node_modules, dist, build, .git, etc.), infers modules/roles/tags, and detects stack/entrypoints (package.json, frameworks).
  • Import Topology Graph: Extracts ES import/export ... from, dynamic import(), CommonJS require(), and Python imports into dependencies and usedBy adjacency lists + a Mermaid diagram in .project.md.
  • Git Hotspot Signal: Uses git log via execFileSync to track recently modified files and commit reasons, boosting them in task-relevance ranking.
  • MCP Server (StdioServerTransport): Exposes 10 tools (get_project_summary, query_topology, find_relevant_files, read_files_sparse, get_module_context, explain_file_role, get_recent_git_changes, write_and_log, refresh_project_map, read_project_context).
  • Safety & Testing: Enforces lexical + realpathSync symlink-traversal checks on read_files_sparse and write_and_log, validates tool args, and tests the MCP handlers end-to-end with InMemoryTransport in Jest (--experimental-vm-modules).

Try it with npx

Run a one-off map refresh in any Node repo:

bashnpx -y project-context-map-mcp refresh --project-root .

Or add it to your MCP client config:

{
  "mcpServers": {
    "project-context-map": {
      "command": "npx",
      "args": ["-y", "project-context-map-mcp", "serve", "--project-root", "."]
    }
  }
}

Feedback from Node/TS folks is very welcome—especially around supporting tsconfig.json path aliases (@/...) or monorepo workspaces (pnpm-workspace.yaml / npm workspaces) in the topology resolver!


r/npm • • 17h ago

Self Promotion Built an open-source MCP server (Shanaxon) that compresses repo context with AST + PageRank, skips optimization when it isn't cost-effective, and lets agents recover exact source files on demand

Thumbnail
reddit.com
1 Upvotes

r/npm • • 1d ago

Self Promotion I built gitenv to sync .env files across machines using a private Git repository

Post image
1 Upvotes

Working on multiple machines, I often found myself manually copying .env files between them.

I wanted a simple way to:

  • Sync environment variables across my machines.
  • Keep .env files out of my project repositories.
  • Track changes to environment configurations over time.

So I built gitenv.

The idea is simple: use a private Git repository under your personal account to store your environment files, while your project repository only contains a public configuration file that tells gitenv where and how to sync them.

How it works

  • Reads the configuration from your project repository.
  • Syncs your local environment files with those stored in your private repository.
  • Uses Git underneath, so you can inspect the history of changes to your environment files.

Usage

gitenv init
gitenv push
gitenv pull
  • init — Creates the configuration file for your project.
  • push — Pushes your local environment changes to the private repository.
  • pull — Pulls environment changes from the private repository to your machine.

Since gitenv uses Git, you can also inspect the history of your environment changes directly through the private repository.

It's available on npm:

https://www.npmjs.com/package/@yukiakai/gitenv

Requires Node.js.

I'd appreciate any feedback or thoughts on the approach.


r/npm • • 2d ago

Self Promotion A Jupyter-style notebook for JavaScript and TypeScript: server code and browser code in one document, calling each other. Local, with a CLI, an MCP server and a debugger.

Thumbnail
github.com
2 Upvotes

The problem: trying an idea in JS means juggling a script, a REPL, a throwaway app and a database client. Python people have Jupyter; I wanted that for JS, with the browser included.

What nimbo does:

  • 🧩 One notebook with server cells (Node) and client cells (browser) that call each other
  • 🔎 Explore and query any output with JSONPath, jq or SQL
  • 🌐 Turn a cell into an API endpoint
  • 🐞 Built-in debugger
  • 🤖 Works with coding agents through a CLI and an MCP server, with edits you review
  • ⚡ One-line install, runs entirely on your machine

Where it is: version 0.1, open source (Apache-2.0), macOS and Linux. Windows and a

desktop app are on the roadmap.

https://github.com/7sStudio/nimbo


r/npm • • 2d ago

Self Promotion Tired of handling Promise timeouts and resource cleanup manually in Node.js, so I built a library

1 Upvotes

I created @yukiakai/promise-scope to solve two problems I kept running into when working with asynchronous operations in Node.js.

Native Promises don't have built-in timeout support, so you usually have to implement it manually — often with Promise.race() and a timer.

Resource cleanup is another problem. When an async operation owns timers, listeners, or other resources, cleanup can end up scattered across different finally blocks or callbacks. It's easy to miss something, and forgotten cleanup can lead to resource leaks.

I wanted an abstraction where an async operation has a clear lifecycle:

  • A built-in timeout
  • Cancellation through AbortSignal
  • A centralized scope for resource cleanup
  • Cleanup that runs when the operation settles

The goal is to make these concerns part of the operation itself, instead of requiring every caller to manually coordinate them.

This is not intended to replace native Promises. I wanted to keep the familiar Promise experience while making timeout and resource lifecycle management less error-prone.

npm: https://www.npmjs.com/package/@yukiakai/promise-scope

I'd appreciate feedback !


r/npm • • 2d ago

Self Promotion I open-sourced a static verification & SAST engine (CLI + MCP) for React / React Native to catch subtle bugs AI coding agents introduce

Thumbnail npmjs.com
1 Upvotes

I've been using AI coding agents heavily on React and Expo/React Native codebases, and I kept running into the same problem: they ship features fast, but quietly introduce subtle runtime bugs that basic linting misses—render-phase ref mutations that break React 19.2+/Compiler, stale async races, AsyncStorage leaks, and TanStack Query cache bugs.

So I built and just open-sourced Code Verifier (v0.1.0, MIT-licensed)—a static verification engine designed to be run either from the CLI or wired directly into your IDE as an MCP server so your coding agent can verify its own code and fix issues before you review it.

How it works under the hood:

  • Babel AST + 128 rules covering React/React 19, React Native/Expo, TanStack Query, async race conditions, security/injection, and mobile config (app.json, Podfile.lock drift, manifests).
  • Formal abstract interpretation over per-function CFGs for path-sensitive nullability (AI-NULL-001) and source-to-sink taint tracking (AI-TAINT-001).
  • TypeScript semantic analysis for floating Promises and Promise-valued conditions.
  • Fast & LLM-first: Runs in ~1–55ms per file and outputs structured remediation Markdown (or SARIF 2.1.0 for CI).

Example finding it caught on a real React hook (REACT-007):

Markdown

**Issue #1: [HIGH] REACT-007 - 'coordinatorRef.current' is accessed during render.**
- Location: Line 22, Col 6
- Offending Code:
  > 22 | if (coordinatorRef.current === null) {
    23 |   coordinatorRef.current = new SessionCoordinator({
- LLM Remediation Action: Hoist the value out of the ref: `useState(() => new SessionCoordinator(...))[0]` for a stable per-instance value, or move `.current` access into Effects and event handlers.

Try it in 10 seconds (no clone needed):

CLI:

Bash

npx code-verifier src/

Or add it to your MCP config (Cursor, Claude Code, etc.):

JSON

{
  "mcpServers": {
    "code-verifier": {
      "command": "npx",
      "args": ["-y", "code-verifier", "mcp"]
    }
  }
}

(By default, the MCP exposes verify_code and get_test_context*, which extracts framework info, exported contracts, and mocks so your LLM writes better unit tests.)*

GitHub: https://github.com/iniola145/Code-Verifier

It's v0.1.1—I've tested it across a couple of large internal React and Expo repos (1,800+ files), and there are 553 unit tests, but static analysis always hits weird real-world edge cases. If you run it on one of your repos and hit a false positive, I added an issue template specifically for reporting them so I can tighten the rules. Feedback and critiques are very welcome.


r/npm • • 2d ago

Self Promotion 🚀 I built an in-memory caching library for Node.js & Browser environments – lightweight, promise-aware, and super developer-friendly

Thumbnail
reddit.com
1 Upvotes

r/npm • • 4d ago

Self Promotion @rootvarma/firebase-electron 1.2.2 — native fetch + MCS heartbeat fixes for Electron FCM

Thumbnail reddit.com
1 Upvotes

Released @rootvarma/firebase-electron 1.2.2.

This package lets Electron apps receive Firebase Cloud Messaging (FCM) push notifications. It’s a fork that requires vapidKey and fixes MismatchSenderId / Web Push decrypt issues.

What’s new in 1.2.2 (no code changes needed on your side if you’re already on 1.2.x):

  • Replaced deprecated request / request-promise with native fetch
  • Acks MCS heartbeat pings so the push connection stays alive
  • Safer reconnect (avoids stacked reconnect attempts)

Install:
npm i @rootvarma/firebase-electron@1.2.2

npm: https://www.npmjs.com/package/@rootvarma/firebase-electron
GitHub: https://github.com/rootvarma/firebase-electron

Feedback welcome.


r/npm • • 4d ago

Self Promotion GitHub - profullstack/affiliates: Scarce invite codes + affiliate attribution for every Profullstack property (npm @profullstack/affiliates)

Thumbnail
github.com
1 Upvotes

r/npm • • 5d ago

Self Promotion Share Private Client Demos With Six-Digit Email Codes

Thumbnail
instawormhole.com
1 Upvotes

r/npm • • 6d ago

Self Promotion I built QA Guardian — an open-source CLI for web quality checks

Thumbnail reddit.com
1 Upvotes

r/npm • • 6d ago

Self Promotion Run a Frontend and API Together From One Tunnel File

Thumbnail
instawormhole.com
2 Upvotes

r/npm • • 7d ago

Help Made my first NPM package, need reviews

1 Upvotes

Hello there,

I published my first package on npm, its called "brickbox".

What it basically does is this build a walls around your object to give it a 3d effect. Don't know if its actually useful or good, but i learned many things building this.

I'm looking for reviews and issue, please do check out

Also it's open source if you want to contribute.

Here the link to the repo: https://github.com/Prashaxt/brickbox

Thankyou ☺


r/npm • • 8d ago

Self Promotion I built Effectum — an open-source TypeScript runtime for reified effects, AI agents, and MCP tooling

Thumbnail gallery
1 Upvotes

An open-source TypeScript runtime focused on reified effects.

The idea is straightforward: instead of executing every operation immediately, represent effects as values that can be interpreted, tested, and recorded.

The project includes:

  • Stack-safe execution for long effect programs
  • Pluggable effect interpreters
  • MCP tooling
  • MindLog audit functionality

I'm particularly interested in how developers approach effect isolation, deterministic testing, and auditing AI-agent actions.

GitHub:
https://github.com/mwatso12026-bit/Effectum

I also have a separate upgraded version Effectum Pro, at https://effectum-pro.com.

I'd appreciate technical feedback, especially on the runtime design and practical use cases.


r/npm • • 8d ago

Self Promotion A small SAM-pattern framework on Effect 4

1 Upvotes

Hi everyone,

After several cycles of rewriting, postponing and shelving that spanned years, I decided to just give up and vibe code in a rather depressingly short time an idea that was stuck in my mind that I hope you might find interesting or useful.

You can see it here: https://github.com/Trebh/microfw

and there's a -totally not AI- made showcase here https://microfw.pages.dev/ (desktop only)

It's a very small framework (I know, I know) built around some opinionated choices:

\- SAM pattern (https://sam.js.org/)

\- Effect 4

\- strongly isomorphic (you can literally swap stuff around just by playing with Layers)

\- model based testing.

Performance is not really the selling point, but for transparency I tried to see how it fares against other frameworks and it seems to place middle of the pack https://github.com/Trebh/microfw/blob/main/docs/architecture/performance.md#against-other-frameworks.

As per the DX... well that is definitely not something I designed for from the start. I tried some iterations on that, but there are some inherent "quirks" due to the extreme isomorphic nature of the components.

I guess this is an area with lots of potential improvements. Although, and this is a tough one, I am even starting to question if DX really matters in this day and age. My main concern would still be readability (by human standards), but code ergonomics? Not sure.

Let me know what you think! It's still just an early POC, but I published the core packages on NPM https://www.npmjs.com/package/@mufw/core (plus devtools, rpc, view-uhtml and test) if someone wants to play with it

(Also, thanks to Andrea Gianmarchi and his https://github.com/WebReflection/uhtml , that I used for the renderer)


r/npm • • 9d ago

Self Promotion Ethersphere postmortem: bee-js 13.3.0 and Swarm Desktop 0.56.2 shipped the same loader via a compromised release bot

1 Upvotes

npm pulled bee-js@13.3.0 about 75 minutes after it was published. The same release bot had also shipped Swarm Desktop v0.56.2, and that build stayed the latest GitHub release for nearly eight more hours. Its macOS build was signed and notarized under the project's own Developer ID. I found it by following the bot's identity across the org instead of stopping at the npm package. At 03:26 UTC I posted the release, the commit, the loader and a containment list in the triage thread: [https://github.com/ethersphere/bee-js/issues/1295#issuecomment-6731497299](https://github.com/ethersphere/bee-js/issues/1295#issuecomment-6731497299)


r/npm • • 11d ago

Self Promotion Typed-xlsx, a TypeScript library for generating Excel reports from a typed schema, v5 just shipped

Thumbnail
reddit.com
1 Upvotes

r/npm • • 12d ago

Self Promotion I turned lessons from 10,659 public MCP configs into an open-source scanner for .mcp.json, claude_desktop_config.json & AGENTS.md (0 bytes uploaded)

Thumbnail reddit.com
1 Upvotes

r/npm • • 13d ago

Help Best-Practices for Publishing a JS Framework

1 Upvotes

Im working on a project for myself. Its an unreviewed, unaudited and far from finished. It started of as a person curiosity and evolved from there. Its shaping up well enough to publish and share.

If i publish something on NPM, there are strict controls around versioning for which i havent burdened myself on my own projects (but clearly important when making something for a wider community). I also wonder if im overlooking any other details.

I wonder what best practices there are for something like this. Should i be publishing new versions with CI/CD? Are there any tips or advice for doing this in the modern js ecosystem?


r/npm • • 13d ago

Self Promotion I built an open-source CLI that turns huge OpenAPI specs into small, safer MCP servers (no LLM required)

Thumbnail
github.com
0 Upvotes

I've been experimenting with OpenAPI-to-MCP converters, and one thing kept bothering me: most of them turn every API endpoint into a separate MCP tool.

That works fine for small APIs. But point one at GitHub or Stripe, and suddenly your agent has hundreds of tools to choose from, eating up context and making tool selection harder.

Also, do you really want your agent to have access to every DELETE endpoint by default?

So I built getmcp-cli, an open-source CLI that generates smaller, safer MCP servers from OpenAPI specs.

Try it:

npx getmcp-cli https://petstore3.swagger.io/api/v3/openapi.json

What it does:

  • Automatically filters potentially risky operations (destructive actions, payments, admin routes, credentials, etc.).
  • Ranks the remaining endpoints and selects 25 by default, balanced across resources.
  • Generates a runnable stdio MCP server.
  • Creates a REPORT.md explaining exactly which endpoints were excluded and why.

Some results:

APIOriginal operationsSelectedEstimated tool tokens
GitHub REST1,28025~263k → ~6k
Stripe61225~176k → ~10k

Token counts are rough estimates based on characters / 4, not actual tokenizer measurements.

No LLM calls, no API keys for generation, no database. Everything runs offline and deterministically.

You can also customize the selection:

  • --only issues,pulls,search to prioritize specific resources.
  • --allow to include otherwise filtered categories.
  • --dry-run to preview the report without generating files.

Current limitations:

The ranking is based on API structure, not your specific use case, so the default 25 tools won't always be ideal. Classification is keyword-based and conservative. It currently supports stdio, local $refs, and token-based API authentication, but not OAuth flows.

GitHub: GetMCP

I'd really appreciate feedback on two things:

  1. Would you actually prefer an automatically selected, safer subset of tools, or would you rather manually choose endpoints?
  2. If you try it with an API you know well, which important endpoints does it miss?

I'm especially interested in real-world cases where the automatic ranking gets things wrong.


r/npm • • 13d ago

Self Promotion [Showoff] umbot: A TypeScript framework for bots with an indexed router that creates 2 Promises per update instead of 8,000

1 Upvotes

I'm the author of umbot, an open-source TypeScript framework for messaging bots and voice assistants. (Disclaimer: I am obviously biased, so take my benchmarks with a grain of salt. To keep it fair, I included a single-dispatcher control for grammY to show it's not just a framework issue, but an architectural one). While benchmarking it against grammY and Telegraf, I got a much bigger gap than I expected. My first thought was that I'd messed up the benchmark, so I started looking at what actually happens before a handler runs.

The most useful finding was how much work happens before the selected handler runs.

TL;DR: In one warmed-up routing probe with 1,000 rules, umbot created 2 Promise resources, grammY with individual listeners created 6,014, and Telegraf created 8,013. A single synchronous dispatcher inside grammY brought its count to 16. That control is the point of this post: how dispatch is organized changes the amount of work per update. For reference, per-update latency in the same warmed-up setup kept the same ordering: at 1,000 rules, umbot was ~1.3 µs, the single-dispatcher grammY control ~8 µs, and individual-listener chains ~300 µs. Latency numbers vary by machine; the counts remain the subject of this post. These counts don't measure end-to-end latency or allocated bytes.

The workload

The benchmark feeds Telegram update objects into each framework's update-processing entry point. Network calls and database operations are excluded. For grammY and Telegraf, bot information is supplied explicitly so initialization doesn't call Telegram's `getMe` API.

The competitors register individual `hears` handlers. String slots in umbot use substring matching, so the corresponding competitor triggers use escaped regular expressions with the same substring behavior. Matching rules are placed halfway through the registered list.

For this post, I narrowed the question to the Promise resources created while processing one warmed-up update. I'm leaving throughput rankings out and including a single-dispatcher control within grammY.

Why the architecture matters

In this setup, grammY and Telegraf compose the registered listeners as middleware. Reaching a rule halfway through a large list means passing through the earlier listeners. Those transitions have a cost beyond checking a string or a regular expression.

umbot uses a different internal search structure:

  1. Exact lookup: a hash map handles eligible exact matches.
  2. Substring lookup: larger literal rule sets use an Aho–Corasick index, so each phrase doesn't require its own middleware traversal. The trie is stored in flat typed arrays; edge lookup uses binary search.
  3. Regex prefiltering: when a required literal can be safely extracted from a regex, its absence rules that expression out. A positive prefilter result still needs the real regex check. Expressions without a usable literal remain candidates.
  4. Reusable search buffers: candidate positions and matched-literal IDs use preallocated buffers rather than fresh per-rule async closures.

I also checked the worst case for these structures: 1,000 anchored patterns with no safely extractable literal, so prefiltering rejects nothing and routing degrades to a linear candidate scan. Even there the scan stayed about 10× cheaper per update than the middleware chain, because testing candidates without per-listener composition is cheaper.

The internals also avoid unnecessary async wrappers and initialize things such as buttons, cards, NLU and regex match results lazily. The public update-processing method still returns a Promise; this isn't a claim of zero allocations per update.

There's a cost on the other side: indexes take time and memory to build. Tiny rule sets use simpler paths, and registration/startup should be measured separately from warmed-up routing. Concretely, on this machine registering 1,000 regex rules takes umbot ~9 ms versus ~1.4 ms in grammY — the cost of ReDoS validation and prefilter construction. String-slot registration is at parity. Both run once at startup, not per update.

Counting the Promise resources

To check the middleware explanation directly, I used `async_hooks` to count `PROMISE` initialization events around one warmed-up exact match in the middle of the list:

Configuration6 rules1,000 rules
umbot22
grammY, individual hears handlers506014
Telegraf, individual hears handlers618013
grammY, one text handler with a synchronous substring loop1616

This diagnostic ran on Node 24.21.0, V8 13.6, Windows x64, with grammY 1.46.0 and Telegraf 4.16.3. Counts include the probe's own `await`. Hooks add overhead, so I didn't use this instrumented run to measure latency. These are resource-initialization counts, not allocated bytes or simultaneously live objects.

The last row is important. You can change how routing is organized inside grammY too. A single handler doing synchronous dispatch doesn't pay the same per-listener Promise cost. A follow-up latency run on the same machine, with handler outcomes verified by counters, still put the control well above umbot: roughly 2.5–11× slower at 1,000 rules depending on match type, and near-parity at 6 rules. That is expected — a linear `includes` scan over 1,000 slots is still more work than an indexed lookup.

That is the architectural comparison I find interesting: an indexed command router versus a long chain of independently composed listeners. It also suggests a useful control for future comparisons: keep the framework, change only the dispatch structure.

Under concurrency, more transient objects can increase GC pressure. That is a plausible contributor to the larger gaps in stress runs, but assigning a specific fraction of the speedup to GC or to an individual optimization needs a separate measurement.

What I would and wouldn't conclude

The counts support a substantial difference in Promise creation for these routing configurations. They don't establish the best possible performance of every application built with the other frameworks, or tell us exactly how much time each optimization saves. A bot with six commands, external API calls and database work has a different cost profile.

With real I/O, network waiting can dominate response time while routing still consumes CPU. Reducing that work and transient allocations can matter even when users see little change in latency. These Promise counts alone don't quantify the CPU or memory savings of a complete application.

A separate experiment I'd run is a local HTTP server returning delayed responses, rate-limit errors and timeouts. That would let me check pending-request memory, queues and recovery under controlled conditions. Live API checks would cover compatibility; the local server would cover repeatable load. Those experiments haven't been performed here.

I also found things to improve in my stress harness: its advertised regex traffic wasn't actually registering separate regex rules, and timer-based heap sampling could collect zero samples during a continuously replenished microtask workload. I'm leaving the stress RPS and memory charts out of this post until those measurements are tightened up.

Reproduce and inspect

The benchmark sources are in the repository:

git clone https://github.com/max36895/umbot.git
cd umbot
npm install
npm run build
npm install --prefix benchmark/comparison
npm run compare

Record the commit, Node version and installed dependency versions when comparing runs. Results will vary by machine and revision; a development working tree also needs its actual changes recorded.

npm install umbot

Link:

Benchmark setup: https://github.com/max36895/umbot/blob/main/benchmark/comparison/

I've kept the links minimal in the main post to avoid triggering Reddit's spam filters. I'll drop the direct file links in the comments below.

The diagnostic below can be saved as `redit/promise-probe.cjs` inside the checkout and run with node redit/promise-probe.cjs. It counts one request after warm-up, including a single-handler grammY control.

If you maintain a high-throughput Node.js router, I'd be interested in which control you'd add next: the same indexed dispatcher inside each framework, randomized matching positions, or a more representative set of real conversation rules?

Promise-count diagnostic

// Diagnostic Promise counting; do not use the timings from this run as a benchmark.
const path = require('path');
const { createHook } = require('async_hooks');
const bench = path.resolve(__dirname, '../benchmark/comparison');
const { buildBenchOptions } = require(path.join(bench, 'telegram.js'));
const { umbotParticipant } = require(path.join(bench, 'runner.js'));

(async () => {
    const results = [];
    for (const count of [6, 1000]) {
        const opts = buildBenchOptions();
        const scenario = { cmds: count, kind: 'text', hit: 'exact' };
        const participants = [umbotParticipant(opts), ...opts.competitors];
        // The same gram, but one routing point with the usual synchronous enumeration.
        const grammy = opts.competitors.find((fw) => fw.name === 'grammy');
        participants.push({
            name: 'grammy-single-router',
            make: grammy.make,
            setup: (bot) => {
                const slots = Array.from({ length: count }, (_, i) => `cmd_${i}_`);
                bot.on('message:text', (ctx) => {
                    for (const slot of slots) {
                        if (ctx.message.text.includes(slot)) return;
                    }
                });
            },
            run: grammy.run,
        });
        for (const fw of participants) {
            const instance = fw.make();
            fw.setup(instance, scenario);
            await new Promise((resolve) => setTimeout(resolve, 100));
            const text = `cmd_${Math.floor(count / 2)}_`;
            for (let i = 0; i < 100; i++) await fw.run(instance, text, i);
            let promises = 0;
            const hook = createHook({
                init(_id, type) {
                    if (type === 'PROMISE') promises++;
                },
            });
            hook.enable();
            await fw.run(instance, text, 1001);
            hook.disable();
            results.push({
                participant: fw.name,
                commands: count,
                promiseInitsIncludingProbeAwait: promises,
            });
        }
    }
    console.log(JSON.stringify(results, null, 2));
})().catch((error) => {
    console.error(error);
    process.exitCode = 1;
});