snapdom

Activity, over time

Daily observations from the public event archive.

Attention

Daily stars & forks

Loading attention chart

Star accumulation

Cumulative stars

Loading star accumulation chart

Pull requests

Daily opens & merges

Loading pull requests chart

Conversations

Daily issues & comments

Loading conversations chart

Community

Daily accounts & reviews

Loading community chart

Releases

Daily releases

Loading releases chart

Mentions

2posts · 30d
Nov 40 posts
  1. SnapDOM just passed 1,000,000 weekly downloads on npm for the first time 🎉 Huge thanks to everyone using it, reporting bugs, sending PRs and sharing what you build. This one is yours. zumerlab/snapdom

    8 views
  2. Reddit · · r/webdev · u/tinchox5

    I made a plugin that turns live HTML into video overlays in the browser. No server, no OBS, works with WebGL Hi r/webdev, I maintain SnapDOM, an open source library that captures DOM elements as images. This week I shipped a new plugin for it called stream, and I’d love some feedback. It takes a live element and keeps it as a canvas that only repaints what changed. You write your overlay in plain HTML and CSS (a scoreboard, a lower third, a chat box) and you get a canvas you can draw over video, upload to WebGL, record to MP4/WebM, or send as a WebRTC track. Everything runs in the page. No headless Chrome on a server, no OBS, no browser flags. The first frame is a full capture. After that, when the clock ticks or a score changes, it captures only that box and patches it in. On a test page with 2000 cards, a frame takes about 5 ms instead of 53 ms for a full capture. Every patched frame is checked in tests to match a full capture pixel for pixel in Chrome, Firefox and Safari. Demo: snapdom.dev - Sports TV: a broadcast overlay over a simulated football match. Press Goal! - Streamer: it asks for your camera; share your screen and you end up in a circle over your game. - Looks: six WebGL looks to switch between: clean, shine, CRT, hologram, glitch, and a liquid glass one that bends the video behind each panel. - Edit: opens the HTML and CSS so you can change the overlay live. - Record: saves a clip. The SnapDOM part is short: import { stream, streamTexture } from '@zumer/snapdom-plugins/stream' const overlay = streamTexture(gl) stream(document.querySelector('#overlay'), { onFrame: (frame) => overlay.update(frame), // uploads only the changed rects }) It’s MIT: zumerlab/snapdom

    6 points · 8 comments

Latest stargazers

The last 10 distinct accounts we observed this year.

Most active participants

PR, issue, comment & review events in the past year.

Packages

3
PackageVersionDownloads · 30dTrend · 30d
v1.0.0
≥8
v3.5.0
≥1.6M
v4.3.0
≥4.4K

Live mentions badge

Show how many posts mention your project in the last 30 days.

Live mentions · last 30 days
zumerlab/snapdom mentions in the last 30 days