New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

vimonkey

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vimonkey

Fuzz testing with auto-shrinking and composable chaos stream transformers for Vitest

latest
Source
npmnpm
Version
0.2.1
Version published
Maintainers
1
Created
Source

vimonkey

Fuzz testing and chaos streams for Vitest.

Fuzz Testing

Async generators with auto-shrinking, regression cases, and seeded RNG.

import { test, gen, take } from "vimonkey"

test.fuzz("cursor stays in bounds", async () => {
  for await (const key of take(gen(["j", "k", "h", "l"]), 100)) {
    await handle.press(key)
    expect(getCursor()).toBeGreaterThanOrEqual(0)
  }
  // On failure: auto-shrinks to minimal repro, saves to __fuzz_cases__/
})

Generators support uniform arrays, weighted tuples, sync/async picker functions, and multi-value returns.

Chaos Streams

Composable async iterable transformers that simulate unreliable delivery.

import { chaos, drop, reorder } from "vimonkey/chaos"

const chaotic = chaos(
  source,
  [
    { type: "drop", params: { rate: 0.2 } },
    { type: "reorder", params: { windowSize: 5 } },
    { type: "duplicate", params: { rate: 0.1 } },
  ],
  rng,
)

Built-in transformers: drop, reorder, duplicate, burst, initGap, delay. Extend with custom registries.

Install

npm install vimonkey

Exports

import { test, gen, take } from "vimonkey" // Fuzz testing
import { chaos, drop, reorder } from "vimonkey/chaos" // Chaos streams
import { viMonkeyPlugin } from "vimonkey/plugin" // Vitest plugin

License

MIT

Keywords

async-generator

FAQs

Package last updated on 26 Mar 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts