Skip to content
projectGloriaPublic

About

An offline, editor-first VS Code developer toolbox: in-editor slash commands, automatic code memory, pinned snippets, mock data generation, and selection transformations.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Nihilanth Toolbox Hero Banner

Nihilanth Toolbox

The offline, editor-first developer suite crafted for VS Code

Recall removed code, pin cross-project snippets, generate type-driven mock data, and transform selections — directly at your cursor.

Marketplace Version License: MIT 100% Local Zero Telemetry No Cloud Dependencies


Quick Start • Visual Tour • Capabilities • Slash Commands • Data Generation • Transformations • Architecture • Settings • License


⚡ Quick Start in 30 Seconds

code --install-extension Nihilnia.nihilanth-toolbox
  1. Summon Slash Commands: On a dedicated line in any .ts, .js, or .json file, type / or press Ctrl+Alt+Space (Cmd+Alt+Space on macOS).
  2. Instant Dummy Data: Type /data users 3 --format=json and hit Tab or Enter.
  3. Type-Driven Mocking: Highlight or define any TypeScript type or interface and run /data from UserProfile 5.
  4. Recall Lost Code: Accidentally delete a function or type declaration? Just type the first two letters of its name anywhere in your project to restore it.

📸 Visual Feature Tour

1. Type-Driven Mock Data & Slash Commands

Parse local TypeScript interfaces, types, unions, and tuples directly at your cursor to generate deterministic, structurally matched mock datasets in milliseconds.

Type-driven mock generation and slash commands


2. Automatic Workspace Code Memory

Passively observes declarations and deleted code fragments (>24 characters) across JS/TS/JSX/TSX files. As soon as you type two letters of any past identifier, Nihilanth offers both the standalone identifier name and the complete implementation body.

Automatic code memory and instant recall


3. Selection Transformations

Select any snippet or JSON payload and press Ctrl+Alt+Space (or right-click) to trigger instant transformations: convert JSON to TypeScript types, switch JSON to JS object literals, deduplicate arrays, extract keys, or convert naming conventions.

Selection transformations and type generation


4. 100% Offline & Private Architecture

Your code never leaves your workstation. No background telemetry pings, no cloud models, no API quotas, and no subscription paywalls.

100% Offline local architecture and privacy guarantees


🌟 Key Capabilities

🕒 Automatic Workspace Code Memory

Passively captures function, class, type, and interface declarations as well as deleted blocks across your files. Restores deleted implementations right from your cursor suggestions.

📌 Cross-Project Snippet Pins

Save reusable code blocks with custom aliases, tags, and dynamic VS Code placeholder syntax (${1:param}). Pinned snippets are available across all workspaces and never expire.

🎲 Deterministic Dummy Data

Generate arrays or single instances of common schemas (users, products, emails, IDs, timestamps) with reproducible seed control (--seed=42) and edge-case boundary testing.

🧬 TypeScript Type Mocking

Understands your active file's TypeScript AST. Run /data from <Type> [count] to produce conforming mock data with zero manual configuration.

🔄 Selection Transformations

Instantly convert between strict JSON and JavaScript object literals, infer TypeScript types from JSON payloads, deduplicate arrays, and switch casing (camel, Pascal, snake, kebab).

🐉 Nihilanth Dragon Theme & Status Launcher

Features an embedded vector dragon status bar launcher and an optional bespoke product icon theme for sleek, high-contrast suggestion badges.


⌨️ Keyboard Shortcuts & Context Actions

Shortcut (Win / Linux) Shortcut (macOS) Context Action
Ctrl + Alt + Space Cmd + Alt + Space Editor (no selection) Open toolbox completion suggestions at cursor
Ctrl + Alt + Space Cmd + Alt + Space Editor (text selected) Open Selection Transformation quick-pick menu
/ / Start of dedicated line Trigger slash command completions
Esc Esc Completion widget Dismiss suggestions

You can also right-click anywhere in the editor to access:

  • Nihilanth Toolbox: Open at Cursor
  • Nihilanth Toolbox: Pin Selection as Snippet
  • Nihilanth Toolbox: Transform Selection
  • Nihilanth Toolbox: Generate Data from Selection

⚡ Slash Commands Reference

Type / at the beginning of a dedicated line (leading indentation is preserved). Suggestions filter dynamically as you type arguments.

Supported Commands

Command Arguments Description Example
/recall <query> [--project=current] Search stored identifiers, declarations, and deleted code fragments. /recall authService
/snippet <alias | tag> [--project=current] Insert a pinned snippet across workspaces. Expands TabStops. /snippet fetchUsers
/data <preset> [count] [flags] Generate synthetic test data from built-in schemas. /data users 5 --format=json
/data from <Type> [count] [flags] Parse a local TypeScript type or interface and output conforming mock data. /data from Order 3 --seed=101

Built-in Presets

Plural (Generates Array) Singular (Generates Single Value / Object)
users, products user, product
names, emails, ids name, email, id
numbers, dates, booleans, strings number, date, boolean, string

CLI Flags & Edge Cases

  • --format=json: Emits strict JSON with quoted keys.
  • --format=js: Emits native JavaScript / TypeScript object literals.
  • --seed=<number>: Creates deterministic, 100% reproducible pseudo-random output.
  • --edge=empty: Generates an empty array (tests zero-state UI).
  • --edge=long: Stretches string fields to extreme lengths (tests UI overflow & wrapping).
  • --edge=boundary: Uses extreme numeric limits (0, -1, Number.MIN_SAFE_INTEGER, Number.MAX_SAFE_INTEGER).

🔄 Selection Transformations Reference

Highlight any text and press Ctrl+Alt+Space or choose Transform Selection:

Transformation Description
JSON ↔ JS Object Seamlessly toggle between strict JSON format and clean JS object literals.
JSON → TypeScript Type Infers and generates a clean type GeneratedType = { ... } from a JSON sample.
Extract Keys / Values / Entries Pulls out object keys, values, or [key, value] tuple pairs from selected objects.
Deduplicate Array Removes duplicates from selected primitive lists or JSON arrays.
Case Conversions Switch text between camelCase, PascalCase, snake_case, and kebab-case.

All transformations operate purely in memory on the selected text and are fully reversible with native Undo (Ctrl+Z).


🐉 Dragon Product Icon Theme (Optional)

Nihilanth dragon badge and status bar launcher

To display the custom teal dragon glyph beside Nihilanth completion items:

  1. Open the Command Palette (Ctrl+Shift+P / Cmd+Shift+P).
  2. Run Preferences: Product Icon Theme.
  3. Select Nihilanth Dragon.

(Standard VS Code icons gracefully fall back to defaults; switching themes retains the dragon launcher in your status bar).


⚙️ Settings & Configuration

Configure Nihilanth in your VS Code settings (settings.json):

Setting Default Description
nihilanth.prefix "/" The character sequence used to trigger slash commands on dedicated lines.
nihilanth.captureEnabled true Automatically record observed declarations and deleted fragments.
nihilanth.historyLimitMB 100 Storage cap in MB for automatic memory. Least recently seen or used items are evicted first; pins never expire.
nihilanth.defaultCount 5 Default number of items generated for array presets.
nihilanth.maxDocumentKB 512 Upper file size limit (in KB) for automatic AST observation.
nihilanth.excludedFolders ["node_modules", ".git", "dist", "out", "build", "coverage"] Folders excluded from capture.
nihilanth.excludedFiles [".env", ".env.local"] Specific files ignored to safeguard secrets.

🛡️ Privacy & Storage Architecture

  • Local Storage Only: Memory entries are stored unencrypted in VS Code's local extension globalStorage as a versioned, append-only JSON Lines log (memory-v2.jsonl). Older memory-v1.json databases are migrated automatically and kept as memory-v1.json.migrated.
  • Isolated from Source Control: History is never committed to Git, workspace files, or Settings Sync.
  • Concurrency Safe: Locked appends and atomic compaction keep the log consistent across multiple open VS Code windows. A damaged database is never overwritten; Nihilanth offers to move it aside and start fresh.
  • Secret Safeguards (best effort): Only JS/TS/JSX/TSX documents are observed, and excluded folders and files are skipped. Declarations and fragments that look like credentials (private keys, well-known token formats such as sk-…, ghp_…, AKIA…, or a string literal assigned to names like apiKey, password, token) are not captured. This is a heuristic — remembered code can be offered in other projects, so pause capture (or add exclusions) for sensitive codebases.
  • Untrusted Workspaces: Automatic capture is paused until you trust the workspace; everything else keeps working.
  • Management Controls:
    • Nihilanth Toolbox: Manage Memory and Snippets — Browse, filter, pin, or delete stored entries.
    • Nihilanth Toolbox: Pause / Resume Code Capture — Temporarily suspend code observation.
    • Nihilanth Toolbox: Clear Automatic History — Instantly purge unpinned history while preserving saved snippets.

📦 Distribution & Installation

Via Marketplace

Install directly from the VS Code Marketplace or search Nihilanth Toolbox in the Extensions view (Ctrl+Shift+X).

Via VSIX File

Download nihilanth-toolbox-0.1.5.vsix and install via command line:

code --install-extension nihilanth-toolbox-0.1.5.vsix

Or via the Extensions view: … menu → Install from VSIX….


📜 License

Distributed under the MIT License.

Copyright © 2026 Nihil. All rights reserved.

About

An offline, editor-first VS Code developer toolbox: in-editor slash commands, automatic code memory, pinned snippets, mock data generation, and selection transformations.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages