
Security News
Meet Socket at Black Hat Europe and BSides London 2025
Socket is heading to London! Stop by our booth or schedule a meeting to see what we've been working on.
@motorcycle/html
Advanced tools
This is the standard HTML driver for Motorcycle built using snabbdom-to-html.
$ npm install @motorcycle/html
If you found an issue or want to contribute code, please read the contributing guidelines.
import {run} from '@motorcycle/core'
import {h2} from '@motorcycle/dom'
import htmlDriver from '@motorcycle/html'
function app(sources) {
...
return {
HTML: most.just(h2('Hello, world!'))
}
}
const {sources} = run(app, {
HTML: htmlDriver,
})
sources.HTML.select(':root').observable.observe(html => {...})
htmlDriver is a function which takes a stream of Snabbdom virtual nodes and returns a stream of HTML strings.
source$ :: most.Stream - A stream of Snabbdom virtual nodes.
(Object): An object with a single method select().
select() :: Function - A function which return as an object containing observable and events().
observable :: most.Stream - A stream of HTML strings.
events() :: Function - A function which returns an empty stream for compatibility with the DOM driver API.
FAQs
Motorcycle.js HTML Driver
We found that @motorcycle/html 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
Socket is heading to London! Stop by our booth or schedule a meeting to see what we've been working on.

Security News
OWASP’s 2025 Top 10 introduces Software Supply Chain Failures as a new category, reflecting rising concern over dependency and build system risks.

Research
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.