Skip to content

A Chrome extension that adds screenshot and video recording capabilities to NanoKVM.

Notifications You must be signed in to change notification settings

koedame/webextension-nanokvm-capture

Repository files navigation

NanoKVM Capture - Chrome Extension

NanoKVM Capture

A Chrome extension that adds screenshot and video recording capabilities to NanoKVM.

Features

  • Screenshot Capture of NanoKVM Interface
    • High-quality PNG image capture
    • One-click saving
    • Automatic timestamped filenames
  • Video Recording of NanoKVM Interface
    • High-quality WebM recording with VP9 codec
    • Start/stop recording at any time
    • Real-time recording duration display
    • Visual recording indicator
  • Local Storage of Captured Media
    • Automatic saving with timestamped filenames
    • PNG format for screenshots
    • WebM format for videos
  • Easy-to-use Interface Integrated with Chrome Browser
    • Simple and intuitive floating controls
    • Visual feedback for recording status

Technical Details

  • Video Format: WebM with VP9 codec
  • Image Format: PNG
  • Browser Support: Chrome with VP9 codec support
  • Interface Detection: Automatic detection of NanoKVM interface
  • Performance: Optimized for minimal resource usage

Development Setup

Requirements

  • Bun 1.0.0 or later
  • Chrome Browser

Setup Steps

  1. Clone the repository
git clone https://github.com/koedame/webextension-nanokvm-capture.git
cd webextension-nanokvm-capture
  1. Install dependencies
bun install

Development Mode

To start development mode with hot reload:

bun run dev

Production Build

To create a production build:

bun run build:prod

Installing the Extension in Chrome

  1. Open Chrome and navigate to chrome://extensions
  2. Enable "Developer mode" in the top right corner
  3. Click "Load unpacked" and select the dist directory from this project
  4. The extension icon should appear in your browser toolbar

Development Tips

  • After making changes to the code, the extension will automatically rebuild in development mode
  • You may need to click the refresh button on the extension card in chrome://extensions to apply changes
  • Check the browser console for any errors or logs
  • The extension automatically detects the NanoKVM interface by checking for specific DOM elements

License

MIT License

Creating a ZIP file for Store Submission

To create a ZIP file for submitting to the Chrome Web Store:

  1. Build the production version:
bun run build:prod
  1. Create a ZIP file containing the following files and directories:
VERSION=$(node -p "require('./package.json').version")
mkdir ./temp
cd dist
zip -r "../temp/nanokvm-capture-v${VERSION}.zip" ./*
cd ..

This will create nanokvm-capture-v{version}.zip (e.g., nanokvm-capture-v1.0.0.zip) in the project root directory, which includes:

  • All contents of the dist/ directory
  • manifest.json
  • icons/ directory

The generated ZIP file is ready to be submitted to the Chrome Web Store.

About

A Chrome extension that adds screenshot and video recording capabilities to NanoKVM.

Resources

Stars

Watchers

Forks

Packages

No packages published