poi-plugin-kc-equipment-export
v0.1.6
Published
Poi plugin for exporting KanColle ship and equipment inventory as CSV and normalized JSON
Maintainers
Readme
KC Inventory Export
KC Inventory Export is a standalone Poi plugin for exporting your current KanColle inventory into machine-friendly files.
For Poi compatibility, the npm package name remains poi-plugin-kc-equipment-export.
What it does
- Export ship inventory as CSV
- Export equipment inventory as CSV
- Export a normalized inventory snapshot as JSON
- Export ship CSV and equipment CSV together from one button
- Auto-refresh ship CSV, equipment CSV, and inventory JSON into a fixed local folder whenever Poi inventory state changes
- Keep ship and equipment names in Japanese master-data naming
Export formats
Ship CSV
Default filename:
kancolle_kan_YY-MM-DD.csv
Current output includes:
- ship instance ID
- Japanese ship name
- reading
- fleet membership
- sortie area
- stats
- equipped items
- extra slot item
- lock / HP / repair state
- next remodel name
Equipment CSV
Default filename:
kancolle_equips_YYYY-MM-DD.csv
Current columns:
ID (Instance)Master ID裝備名稱類別ID改修值 (星)熟練度索敵命中
Inventory JSON
Default filename:
kancolle_inventory_YYYY-MM-DD.json
Current shape:
- top-level
schema_version,exported_at,source - normalized
fleets,ships, andequipments - ID-based links between ships and equipments
nullfor missing values- schema version
inventory_snapshot_v1
Install
Poi plugins should be installed through Poi's own plugin npm directory.
Do not symlink this repo into Poi node_modules.
1. Build a tarball
cd /path/to/poi-plugin-kc-inventory-export
npm install
npm run build
npm pack --pack-destination dist --cache "$TMPDIR/poi-inventory-export-cache"This creates a tarball like:
dist/poi-plugin-kc-equipment-export-0.1.6.tgz2. Install into Poi
cd "/path/to/poi/plugins"
npm install "/path/to/poi-plugin-kc-inventory-export/dist/poi-plugin-kc-equipment-export-0.1.6.tgz"On macOS, Poi's plugin directory is usually:
~/Library/Application Support/poi/plugins3. Restart Poi
After installation, restart Poi and open:
KC Inventory ExportUpdate
When you update the plugin:
- pull the latest code
- rebuild the tarball
- reinstall the new
.tgzinto Poi's plugin directory - restart Poi
Example:
cd /path/to/poi-plugin-kc-inventory-export
npm install
npm run build
npm pack --pack-destination dist --cache "$TMPDIR/poi-inventory-export-cache"
cd "/path/to/poi/plugins"
npm install "/path/to/poi-plugin-kc-inventory-export/dist/poi-plugin-kc-equipment-export-0.1.6.tgz"Uninstall
cd "/path/to/poi/plugins"
npm uninstall poi-plugin-kc-equipment-exportUsage
- Start Poi and let game data finish loading.
- Open
KC Inventory Export. - Choose one action:
Export ship + equipment CSVsExport ship CSVExport inventory JSONExport equipment CSV
- Choose save locations in Poi's file dialog.
Background auto-export also keeps these files in:
~/Documents/Mira-Workspace/archive/poi-inventory-exportsIf that archive lane is unavailable, for example because archive points to an
unmounted external volume, the plugin writes the same files to:
~/Documents/Mira-Workspace/local-fallback/poi-inventory-exportsThe plugin refreshes the same-day ship CSV, equipment CSV, and inventory JSON files in that folder whenever Poi inventory state changes. Archive is selected only when it resolves to the expected external archive; otherwise the plugin selects local-fallback before writing. File replacement uses a same-directory temporary file, fsync, and atomic rename so readers cannot observe a partially rewritten export.
Development
cd /path/to/poi-plugin-kc-inventory-export
npm install
npm run typeCheck
npm test -- --runInBandNotes
- The plugin reads Poi state for manual exports and through the debounced background watcher that maintains the current export bundle.
- The UI follows Poi / Blueprint light-dark theme behavior.
- CSV output is written with UTF-8 BOM for spreadsheet compatibility.
- JSON output is written without BOM for easier machine parsing.
