npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

poi-plugin-kc-equipment-export

v0.1.6

Published

Poi plugin for exporting KanColle ship and equipment inventory as CSV and normalized JSON

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, and equipments
  • ID-based links between ships and equipments
  • null for 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.tgz

2. 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/plugins

3. Restart Poi

After installation, restart Poi and open:

KC Inventory Export

Update

When you update the plugin:

  1. pull the latest code
  2. rebuild the tarball
  3. reinstall the new .tgz into Poi's plugin directory
  4. 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-export

Usage

  1. Start Poi and let game data finish loading.
  2. Open KC Inventory Export.
  3. Choose one action:
    • Export ship + equipment CSVs
    • Export ship CSV
    • Export inventory JSON
    • Export equipment CSV
  4. Choose save locations in Poi's file dialog.

Background auto-export also keeps these files in:

~/Documents/Mira-Workspace/archive/poi-inventory-exports

If 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-exports

The 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 -- --runInBand

Notes

  • 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.