Skip to content
Prompt

impvol — Cursor Rules

by boneskull

AI Summary

impvol enables importing modules directly from memfs virtual filesystems in Node.js using customization hooks, ideal for developers building tools that need in-memory filesystem abstraction with dynamic module loading.

Install

Copy this and paste it into Claude Code, Cursor, or any AI assistant:

I want to add the "impvol — Cursor Rules" prompt rules to my project.
Repository: https://github.com/boneskull/impvol

Please read the repo to find the rules/prompt file, then:
1. Download it to the correct location (.cursorrules, .windsurfrules, .github/prompts/, or project root — based on the file type)
2. If there's an existing rules file, merge the new rules in rather than overwriting
3. Confirm what was added

Description

Import scripts and modules from memfs' virtual filesystems

Repository Overview

impvol is a dual ESM/CJS npm package that allows importing scripts and modules from memfs virtual filesystems in Node.js. It provides a drop-in replacement for memfs's Volume class with the ability to import modules directly from virtual filesystems using Node.js customization hooks. • Type: Dual ESM/CJS npm package for Node.js • Size: Small (~6 TypeScript source files, 1 test file) • Target Runtime: Node.js 20.0.0+ • Build Tool: tshy (TypeScript dual-package builder) • Key Dependencies: memfs (peer dependency), debug • Architecture: Uses Node.js module loader hooks running in worker threads

Critical Setup Sequence

Always run commands in this order: `bash npm install # Required first - installs deps and sets up Husky hooks npm run build # Must run before knip linting (requires built files) npm test # Can run without building (tsx handles TypeScript) `

Testing

`bash npm test # Node.js test runner with tsx (runs without build) `

Linting (all must pass for CI)

`bash npm run lint # ESLint with TypeScript rules npm run lint:knip # Unused code/deps detection (REQUIRES BUILD FIRST) npm run lint:md # Markdown linting npm run lint:spelling # Spell checking npm run tsc # TypeScript type checking (no emit) `

Discussion

0/2000
Loading comments...

Health Signals

MaintenanceCommitted 3mo ago
Stale
AdoptionUnder 100 stars
4 ★ · Niche
DocsMissing or thin
Undocumented

GitHub Signals

Stars4
Issues1
Updated3mo ago
View on GitHub
Apache-2.0 License

My Fox Den

Community Rating

Sign in to rate this booster

Works With

Any AI assistant that accepts custom rules or system prompts

Claude
ChatGPT
Cursor
Windsurf
Copilot
+ more