A Visual Studio Code extension for managing an electronic component inventory in a local SQLite database.
Features
Browse categories as a nested tree and parts grouped under their categories.
View a live inventory summary with category, component, unit, and storage-location counts.
Drag a category onto another category to nest it, or drag a component onto a category to move it.
Add and delete categories. A category can only be deleted when it has no child categories or parts.
Add and delete parts, change a part's quantity, and open parts in a details webview to edit them.
Open a part's datasheet from its context menu when the file exists.
Search parts by number, category, package, location, datasheet path, notes, or quantity.
Store each part's number, category, package, quantity, location, datasheet path, and notes.
Back up and restore the complete inventory as a versioned JSON file.
Use the Part Inventory: Categories and Part Inventory: Parts views in Explorer. Drag categories or components onto a destination category in either tree view to move them. Select a part to open its details; use Edit part in the webview to update it. Use the + button in the Parts view to add a part. Right-click a category or part to see its actions, or run the commands from the Command Palette.
Datasheet paths can be absolute file paths or relative to the first open workspace folder. PDF datasheets open with the vscode-pdf extension; install or enable it to view PDFs. Other files open in VS Code. The Open Datasheet part action reports when no path is set or the file cannot be found.
The database is stored as parts.sqlite in the extension's VS Code global storage directory and is created automatically.
Run Part Inventory: Back Up Database to save a JSON backup, or Part Inventory: Restore Database to replace the current inventory from a backup. Restoring requires confirmation and replaces all current categories and parts.
Requirements
The extension uses Node.js's built-in SQLite API in the VS Code extension host. No separate database installation is required.