A CLI tool that scans portfolio project images, converts them to WebP, and automatically updates projects.json and the JS fallback array.
- Scans
assets/images/for new, unreferenced images - Converts images to WebP format (keeps originals untouched)
- Interactive prompts for project metadata (title, category, tags, description, URLs)
- Updates
data/projects.jsonandjs/projects.jsfallback simultaneously - Skips SVG files and already-converted WebP images
pipx install .Or editable install for development:
pipx install -e .Or classic pip:
pip install .After installation, run globally:
json-updaterBy default, it looks for the portfolio at ~/Portfolio-v2.
Override with:
json-updater /path/to/portfolioOr set environment variable:
export PORTFOLIO_PATH=/path/to/portfolio
json-updater- Loads existing
projects.json - Scans
assets/images/for unreferenced images - Converts new images to WebP (quality 100)
- Prompts for metadata:
- title
- category
- tags
- description
- URLs
- Appends new entries to
projects.json - Regenerates
fallbackProjectsinprojects.js
PNG · JPG · JPEG · WebP · GIF · SVG
MIT License — see LICENSE
© 2026 KatsukiiNeko. All rights reserved.