MCPcopy Create free account
hub / github.com/TechJeeper/Printventory

github.com/TechJeeper/Printventory @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
575 symbols 1,468 edges 28 files ⚖ MIT 37 documented · 6% ● updated 14d ago★ 20516 open issues

Browse by type

⨍ Functions 573◇ Types & classes 2
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Printventory

Version 2.2.9

Printventory is an Electron-based desktop application for managing your 3D printing model collection. It helps you organize, catalog, and manage STL and 3MF files with powerful features including automatic scanning, thumbnail generation, tagging, and duplicate detection.

Printventory Logo

Features

Core Functionality

  • Directory Scanning: Automatically scan and catalog STL and 3MF files (up to 50MB per file)
  • 3D Model Preview: View thumbnails of your 3D models with customizable background colors
  • File Management: Quick access to file locations, delete files with database cleanup
  • Database Backup & Restore: Protect your data with backup and restore functionality

Organization & Metadata

  • Tagging System: Organize models with custom tags and categories
  • Designer Tracking: Assign and track designer information for each model
  • Print Status & History: Track Unprinted / Want / Queued / Printing / Printed / Failed, log reprints with date and notes, and filter by last printed or ever printed
  • Filament catalog: Assign filaments to models and optionally sync the catalog from Spoolman (pull-only)
  • Source URLs: Store links to where you found or purchased models
  • Notes: Add custom notes to any model
  • Parent/Child Relationships: Link related models together
  • Folder & ZIP bundle grouping: Automatically group models from the same subfolder or ZIP archive; preview all parts in one 3D view
  • License Tracking: Assign licenses to models

Advanced Features

  • Server Mode: Run Printventory as a web server accessible from any device on your local network (see Server Mode section for details)
  • MCP Server: Connect a local AI agent to search the library, read model details, and write thumbnails (see MCP Server)
  • Multi-Edit Mode: Select and edit multiple models simultaneously for batch operations
  • Duplicate Detection: Find duplicate files based on content hash with visual comparison, optionally limited to the current library filters
  • Print Roulette: Randomly select models from your collection
  • AI Tagging: Automated tag suggestions using AI
  • 3D bundle preview: Open every STL/3MF in a folder or ZIP in a single preview layout
  • Send to Slicer from preview: Open the current model or entire bundle in your configured slicer (new instance when already running)
  • Search & Filter: Real-time search by filename and filter by designer, folders, tags, print status, filament, parent model, or license
  • Tag Manager: Comprehensive tag management interface
  • Metadata Editor: Bulk metadata editing capabilities
  • Thumbnail Management: Generate, regenerate, or purge model thumbnails

User Interface

  • Responsive Grid Layout: Browse models in an intuitive grid view
  • Context Menu: Quick actions via right-click menu
  • Sort Options: Sort by name, size, or date
  • Auto-save: Changes are automatically saved

For a complete list of features and detailed usage instructions, see the GUIDE.md file.

See CHANGELOG.md for recent feature additions and migration notes.

Installation

Pre-built Releases

Download the latest release for your platform: - Windows: Printventory-Setup-2.2.9.exe (NSIS installer) - macOS: Universal binary (Intel and Apple Silicon) DMG - Linux/Docker: printventory/printventory:latest on Docker Hub (or printventory-docker-2.2.9.zip)

The Windows installer is signed through SignPath. See the Code signing policy.

Data Storage

  • Windows: %LOCALAPPDATA%\Printventory
  • macOS: ~/Library/Application Support/Printventory

The database and thumbnails are preserved during updates. Backups are automatically created before updates.

Server Mode

Printventory can run in Server Mode, allowing you to access your 3D model library from any device on your local network through a web browser. This is particularly useful for accessing your collection from multiple computers or devices without installing the application on each one.

What is Server Mode?

Server Mode runs Printventory as an HTTP server on port 5000, making it accessible from any device on your local network through a web browser. The application interface is served via HTTP, and all functionality remains available remotely.

Starting Server Mode

To start Printventory in Server Mode, launch it with the --server flag:

Windows:

printventory.exe --server

Command Line:

printventory --server

The server will start and continue running until you close the application. You'll see console output indicating the server is running:

Printventory server mode started
Server running at http://0.0.0.0:5000
Access from remote browsers: http://<your-ip>:5000
Server mode requires UNC paths for all file operations

Accessing the Server

Once started, you can access Printventory from any browser on your network:

http://<your-computer-ip>:5000

For example, if your computer's IP address is 192.168.1.100:

http://192.168.1.100:5000

Important Requirements

  • Path Requirements:
  • Windows Server Mode: Requires UNC (Universal Naming Convention) paths for all file operations
    • UNC paths use the format: \\server\share\path\to\file
    • Local drive paths (C:\, D:\, etc.) will not work in Server Mode
  • Docker/Linux Server Mode: Uses Linux-style absolute paths (e.g., /mnt/network-share/path/to/file)
  • Network Access: The server listens on all network interfaces (0.0.0.0) on port 5000
  • Firewall: You may need to allow Printventory through your firewall to access it from other devices
  • Network Security: Server Mode is designed for local network use. For production deployments, consider additional security measures
  • HTTPS / SSL: Open Settings → HTTPS / SSL to use custom PEM files, a self-signed LAN certificate, or Let's Encrypt (public DNS + inbound port 80). In server/Docker mode you can also set the listen port (default 5000; https:// and wss:// on that port). PRINTVENTORY_PORT seeds the port when unset. PRINTVENTORY_TLS_* environment variables override the certificate UI. Reverse proxies should leave in-app TLS off and upgrade WebSockets.
  • STL Home Setting: The STL Home setting follows the same path format rules as regular scanning. See the STL Home Setting section below for details on automatic and periodic scanning.

Use Cases

  • Access your model library from multiple computers on the same network
  • Browse your collection from tablets or mobile devices
  • Share your library with others on your local network
  • Centralized model management for a team or workshop

Docker Deployment

Printventory can also be deployed as a Docker container for Linux server mode deployment. See the Docker Deployment section for detailed instructions.

Proxmox VE (LXC)

On a Proxmox VE host, use scripts/proxmox/setup-printventory-lxc.sh to create an unprivileged Debian LXC (nesting + keyctl for Docker), install Docker, and run the Printventory image from Docker Hub.

# From the Proxmox node shell (copy the script up first, or curl it from your clone/release)
bash setup-printventory-lxc.sh --yes
bash setup-printventory-lxc.sh --ctid 120 --memory 8192 --models /mnt/pve/data/stl

Defaults are 4 cores / 8 GB RAM / 20 GB disk / port 5000. Use --install-only --ctid <id> to deploy into an existing CT, and --help for all options.

STL Home Setting

The STL Home setting allows automatic scanning of one or more directories on startup and, in server mode, periodic scanning for new files. This is particularly useful for keeping your library up-to-date automatically.

Setting STL Home in Server Mode

  1. Access the Printventory web interface at http://<your-ip>:5000
  2. Navigate to Settings → STL Home
  3. Add each directory:
  4. Windows Server Mode: Use UNC path format (e.g., \\server\share\models)
  5. The path must be accessible from the server machine
  6. Add another row for each extra library
  7. Configure the Update Frequency (default: 60 minutes):
  8. This determines how often the STL Home directories are automatically scanned for new files
  9. Range: 1-1440 minutes (1 minute to 24 hours)
  10. Click Save

How It Works

  • On Startup: When Printventory starts in server mode, it automatically scans every configured STL Home directory
  • Periodic Scanning: In server mode, Printventory scans each STL Home directory at the configured interval
  • Path Requirements: STL Home paths follow the same format rules as regular scanning:
  • Windows Server Mode: Must use UNC paths (\\server\share\path)
  • Paths are validated when saved
  • Background Scanning: Periodic scans run in the background and won't disrupt the web interface

Clearing STL Home

To disable automatic scanning, remove every directory from the list and save. This stops both startup and periodic scanning.

Getting Help

For more information about Server Mode, use the Help > Server Mode Info menu item in the application, which provides detailed information and instructions including Docker deployment options.

MCP Server

Printventory can expose a Model Context Protocol (MCP) endpoint so a local AI agent (Cursor, Claude Desktop, VS Code Copilot, and similar) can search the library, manage tags and filaments, find duplicates, scan folders, update metadata, record print history, and write thumbnails from outside the app.

This is an experimental feature. By enabling or using it, you assume the risk: the API may change or break, and any client that can reach the endpoint can read and change library data.

The transport is Streamable HTTP at /mcp.

Desktop

  1. Open Tools → MCP Server (listed under Browser Extension)
  2. Enable MCP Server and Save — Printventory starts a localhost listener while the app is running (default port 5000)
  3. Optional: Settings → HTTPS / SSL so the MCP listener uses https:// (use https://127.0.0.1:5000/mcp in the client config)
  4. Copy the client config from the dialog into your MCP client
{
  "mcpServers": {
    "printventory": {
      "url": "http://127.0.0.1:5000/mcp"
    }
  }
}

Disable MCP Server (or quit Printventory) to stop the listener.

Docker / Server mode

The MCP endpoint is always available while the server is running — there is no toggle. Open Tools → MCP Server for the URL and client config.

http://<your-host>:5000/mcp

Tools

Agents can call the library, tag, filament, print-history, thumbnail, DeDup, scan, metadata, slicer, and backup tools listed in Tools → MCP Server. Destructive actions (remove_model, trash_file, move_files) require confirm: true.

To generate thumbnails outside Printventory: list models with get_models_missing_thumbnails, open each filePath on disk, render an image, then call set_thumbnail with a PNG or JPEG data URL or raw base64. Pass excludeIds for models that cannot be rendered, and offset to page, so a batch of permanent failures does not stay at the front of the list. node thumbnail-worker.js does this with stl-thumb, flattening 3MF files to STL first.

Building from Source

Prerequisites

Before building Printventory from source, ensure you have the following installed:

  • Node.js (v16.x or later recommended)
  • npm (v8.x or later)
  • Git
  • Platform-specific build tools:
  • Windows: Visual Studio Build Tools with C++ development workload
  • macOS: Xcode Command Line Tools (xcode-select --install)

Clone the Repository

git clone https://github.com/yourusername/printventory.git
cd printventory

Install Dependencies

Install all required dependencies:

npm install

This will also run the postinstall script to install app-specific dependencies (including native modules like better-sqlite3).

Development Mode

To run the application in development mode:

npm start

This will launch the Electron application.

Building for Production

Build for All Platforms

To build the application for both macOS and Windows:

npm run build

Build for macOS Only

To build a universal macOS application (Intel and Apple Silicon):

npm run build:mac

Build for Windows Only

To build for Windows:

npm run build:win

Build for Linux AppImage (from Windows)

To build a Linux AppImage from Windows, you need either WSL (Windows Subsystem for Linux) or Docker:

Prerequisites: - Option 1 (Recommended): WSL with Node.js installed - Install WSL: wsl --install - Install Node.js in WSL: wsl sudo apt-get update && wsl sudo apt-get install -y nodejs npm - Option 2: Docker Desktop - Install from: https://www.docker.com/products/docker-desktop

Build Command:

npm run build:linux

Or using PowerShell:

.\scripts\build-linux-appimage.ps1

The script will automatically detect and use WSL if available, otherwise it will fall back to Docker. The AppImage will be generated in the dist directory.

Note: The first build may take longer as dependencies need to be installed in the Linux environment.

All build outputs will be generated in the dist directory.

Docker Deployment (Linux Server Mode)

Printventory can be deployed as a Docker container for easy server mode deployme

Core symbols most depended-on inside this repo

browse all functions →

Shape

Function 567
Method 6
Class 2

Languages

TypeScript100%

Modules by API surface

renderer.js277 symbols
main.js127 symbols
query-builder.js46 symbols
preview.js20 symbols
scripts/container-runtime.js15 symbols
scan-worker.js12 symbols
aitagging.js12 symbols
search.js11 symbols
threemf-loader-simple.js8 symbols
scripts/build-linux-appimage.js7 symbols
server-bridge.js6 symbols
scripts/create-github-source-zip.js6 symbols

For agents

$ claude mcp add Printventory \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page