
Security News
The Next Open Source Security Race: Triage at Machine Speed
Claude Opus 4.6 has uncovered more than 500 open source vulnerabilities, raising new considerations for disclosure, triage, and patching at scale.
Efficiently create and render virtual-dom elements.
$ npm install vel
const vel = require('vel')
const el = vel((h, state) => h.html(`<p>hello ${state.type} world</p>`))
const node = el({ type: 'cruel' })
document.body.appendChild(node)
// <p>hello cruel world</p>
Initialize a new virtual element. Listen to the render event. Expects a
vdom tree to be returned. h accepts virtual-dom elements,
h.html accepts
HTML strings and h.svg
accepts
virtual-dom SVG elements.
Render the element's vdom tree to DOM nodes which can be mounted on the DOM.
Uses main-loop under the hood. Calling
the method again will re-render the DOM nodes with the new state. Alias:
el.render([state]).
Render the element's vdom tree to a string. For example useful to pre-render HTML on the server, or save to a static file.
Get the element's vdom tree. Useful for element composition.
Using virtual-dom requires quite some boilerplate. vel removes the need for
that boilerplate without adding extra features, making it easier to write
virtual-dom systems.
vel does one thing, and only one thing. Instead of including a state transport
mechanism I felt it made more sense to let users decide for themselves how they
want their state to flow between components.
react is an opinionated framework that uses non-standard syntax to create
systems. It forces users to write JS in OO style and is hard to switch from
once you buy into it. virtual-dom does away with those opinions, giving users
a blazingly fast rendering engine without the overhead of a framework.
Yeah, definitely! I'm actually a huge fan of
base-element. However I wanted
something a little more barebone favoring composition over inheritance. If
inheritance is your thing, definitely check out
base-element (and say hi to
@shama for me :grin:).
FAQs
Create and render virtual-dom elements with ease
The npm package vel receives a total of 1 weekly downloads. As such, vel popularity was classified as not popular.
We found that vel demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Claude Opus 4.6 has uncovered more than 500 open source vulnerabilities, raising new considerations for disclosure, triage, and patching at scale.

Research
/Security News
Malicious dYdX client packages were published to npm and PyPI after a maintainer compromise, enabling wallet credential theft and remote code execution.

Security News
gem.coop is testing registry-level dependency cooldowns to limit exposure during the brief window when malicious gems are most likely to spread.