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-sunny-replay

v2.0.0

Published

A plugin which shows battle replay for poi.

Readme

POI Plugin - Sunny's Battle Replay

A POI plugin for Kantai Collection that converts battle-detail files to KC3Kai's battle replayer format.

Features

  • Converts POI battle-detail files to KC3Kai replay format
  • Displays battle replays using KC3Kai's battle replayer
  • Generates battle images for sharing
  • Supports multiple battle file formats
  • Multi-language support (English, Japanese, Chinese)

Installation

Method 1: Through POI Plugin Manager (Recommended)

  1. Open POI-viewer
  2. Go to Settings → Plugin
  3. Search for "poi-plugin-sunny-replay"
  4. Click Install

Method 2: Manual Installation

  1. Clone this repository:
    git clone [email protected]:Aravind-Sundararajan/poi-plugin-battle-replay.git
  2. Navigate to POI's plugin directory:
    • Windows: %APPDATA%/poi/plugins/
    • macOS: ~/Library/Application Support/poi/plugins/
    • Linux: ~/.config/poi/plugins/
  3. Copy the plugin folder to the plugins directory
  4. Restart POI-viewer

Method 3: NPM Installation

npm install poi-plugin-sunny-replay

Usage

  1. Start POI-viewer and ensure the plugin is enabled
  2. Navigate to the plugin in POI's plugin menu
  3. Select a battle file from the dropdown (files are automatically loaded from your battle-detail directory)
  4. Click "Copy to Battle Player" to load the battle data
  5. View the battle replay in the embedded player
  6. Download battle images using the download button

Requirements

  • POI-viewer (latest version recommended)
  • Internet connection (for KC3Kai battle replayer)
  • Battle-detail files in POI's data directory

Troubleshooting

Plugin Not Loading

  • Ensure POI-viewer is up to date
  • Check that all dependencies are installed
  • Verify the plugin is in the correct directory

No Battle Files Found

  • Check that POI is recording battle data
  • Verify the battle-detail directory exists in your POI data folder
  • Ensure you have recent battle files (.json.gz format)

Battle Replay Not Working

  • Check your internet connection (replayer loads from KC3Kai's servers)
  • Try reloading the battle player
  • Verify the battle data format is correct

Error Messages

  • "APPDATA_PATH not found": POI environment not properly configured
  • "No battle files found": No battle data in the expected directory
  • "Error reading battle-detail directory": Permission or path issues

File Structure

poi-plugin-sunny-replay/
├── index.js              # Plugin entry point
├── index.html            # Main interface
├── main.css              # Styling
├── env-loader.js         # Environment initialization
├── converter.js          # Battle data converter
├── preload.js           # Battle replayer preload script
├── preload2.js          # Converter preload script
├── constants/           # Plugin constants
│   ├── poi-fleets.js
│   └── ship-images.js
├── i18n/               # Internationalization
│   ├── en-US.json
│   └── zh-CN.json
└── package.json        # Plugin metadata

Dependencies

  • lodash: Utility functions
  • i18n-2: Internationalization
  • zlib: File compression handling

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Submit a pull request

License

MIT License - see LICENSE file for details

Credits

Technical Details

Battle Replayer Integration

This plugin uses KC3Kai's battle replayer web application hosted at: https://kc3kai.github.io/kancolle-replay/battleplayer.html

The replayer is embedded in a webview and receives battle data via IPC messages. This approach:

  • Always up-to-date: Uses the latest version from KC3Kai's servers
  • Lightweight: No need to package the replayer with the plugin
  • Maintained: KC3Kai team handles updates and maintenance
  • Reliable: Hosted on GitHub Pages with good uptime

Data Flow

  1. Battle File Selection: User selects a battle file from POI's battle-detail directory
  2. Data Conversion: POI battle format is converted to KC3Kai format using the converter
  3. IPC Communication: Converted data is sent to the embedded webview
  4. Battle Replay: KC3Kai replayer displays the battle animation

Support

If you encounter issues:

  1. Check the troubleshooting section above
  2. Search existing issues on GitHub
  3. Create a new issue with detailed information about your problem