observable-framework-lib-generators

Installation
SKILL.md

Library: Observable Generators

Observable Framework documentation: Library: Observable Generators Source: https://observablehq.com/framework/lib-generators

The Observable standard library includes several generator utilities. These are available by default in Markdown as Generators, but you can import them explicitly:

import {Generators} from "observablehq:stdlib";

input(element)

Source · Returns an async generator that yields whenever the given element emits an input event, with the given element’s current value. (It’s a bit fancier than that because we special-case a few element types.) The built-in view function uses this.

const nameInput = display(document.createElement("input"));
const name = Generators.input(nameInput);
Related skills
Installs
3
First Seen
Feb 28, 2026
Security Audits