explaingit

zerdalu/vite-plugin-kapar

Analysis updated 2026-05-18

0Audience · developerComplexity · 2/5LicenseSetup · moderate

TLDR

A Vite dev plugin that adds a floating widget to take screenshots and record webm videos of your app's DOM, without triggering browser screen-share prompts.

Mindmap

mindmap
  root((repo))
    What it does
      Screenshots from DOM
      Records webm video
      Drawing pen tool
    Tech stack
      Vite plugin
      HTML in Canvas API
      Works with any framework
    Use cases
      Bug report screenshots
      Demo recordings
      Annotated captures
    Audience
      Frontend developers
      QA and bug reporters
    Caveats
      Chrome Canary only
      Experimental browser flag

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Record quick demo videos of a web app while it's running in development.

USE CASE 2

Take annotated screenshots to report bugs to teammates without a screen-share popup.

USE CASE 3

Capture a specific part of the page at exact pixel dimensions for documentation.

What is it built with?

ViteTypeScriptCanvas API

How does it compare?

zerdalu/vite-plugin-kapar00kaku/gallery-slider-block04amanrajj/netwatch
Stars00
LanguageJavaScriptRust
Last pushed2021-05-19
MaintenanceDormant
Setup difficultymoderateeasymoderate
Complexity2/52/53/5
Audiencedevelopergeneralops devops

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · moderate Time to first run · 30min

Requires Chrome Canary or Chromium 147+ with an experimental canvas flag manually enabled.

MIT license: use, modify, and share freely, including commercially, as long as you keep the original copyright notice.

In plain English

vite-plugin-kapar is a plugin for Vite, a popular tool for building and running web applications during development. It adds a small floating widget to your app while you are coding, letting you take screenshots or record short webm videos of what is on screen, straight from the page itself rather than through the browser's own screen-sharing feature. Normally, capturing your screen means clicking through a browser permission prompt asking you to share your screen or a window. This plugin avoids that entirely by using an experimental browser feature that lets it draw the actual webpage content into a canvas, so no popup ever appears. It works with any frontend framework, including Vue, Svelte, React, Solid, or plain JavaScript, since it bundles its own interface rather than depending on your project's setup. Along with capturing, it includes a simple drawing tool so you can sketch or mark up the screen while recording, which is useful for making quick bug reports or short demo clips for teammates. You install it as a development dependency through npm, then add it to your Vite configuration file, optionally telling it which part of the page to target. Once your dev server is running, the widget shows up automatically in the corner of the screen. There is an important catch: because the underlying browser capability is still experimental, this only works in Chrome Canary or a recent Chromium build, and you must manually turn on a specific browser flag before it functions. The author also lists a few known limitations, such as elements that are pinned to the viewport sometimes not appearing in captures, and cross-origin content like external images or fonts occasionally failing to render. The project is small, has no listed stars yet, and is released under the MIT license, meaning it can be freely used, modified, and shared, including for commercial projects, as long as the original copyright notice is kept.

Copy-paste prompts

Prompt 1
Show me how to add vite-plugin-kapar to my vite.config.ts and target a specific element with targetSelector.
Prompt 2
Explain how to enable the HTML elements in canvas flag in Chrome Canary so vite-plugin-kapar works.
Prompt 3
What are the known limitations of vite-plugin-kapar with fixed-position elements and cross-origin content?
Prompt 4
Walk me through cloning and linking vite-plugin-kapar locally to test changes in another Vite project.

Frequently asked questions

What is vite-plugin-kapar?

A Vite dev plugin that adds a floating widget to take screenshots and record webm videos of your app's DOM, without triggering browser screen-share prompts.

What license does vite-plugin-kapar use?

MIT license: use, modify, and share freely, including commercially, as long as you keep the original copyright notice.

How hard is vite-plugin-kapar to set up?

Setup difficulty is rated moderate, with roughly 30min to a first successful run.

Who is vite-plugin-kapar for?

Mainly developer.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.