Components

I publish this collection so anyone can use the same Web Standard Custom Elements that run this site. They are plain Custom Elements built on native HTML, so they work on any page, with a framework, a static site generator, or no JavaScript tooling at all. Copy the files, vendor them, or import them as a local package.

Use a component on your own site · HTML
<script type="module" src="/vendor/disclosure-panel/index.js"></script>
<disclosure-panel>
	<details>
		<summary>Installation help</summary>
		<p>Use your browser’s Add to Home Screen menu.</p>
	</details>
</disclosure-panel>

Copy a component directory into your site and load its ES module. There is no build step, framework wrapper, or global stylesheet to adopt. Keep the module, README, license, and manifest together so updates stay reviewable.

Send state down with attributes. Send data up with events. Keep useful HTML underneath.

Every component and kit ships a Custom Elements Manifest, a JSON file named custom-elements.json that describes its tags, attributes, events, slots, CSS parts, and exports. The Open Web Components project provides the format’s analyzer and plugins: editors and documentation tools read the manifest for autocomplete and API reference, while @custom-elements-manifest/analyzer regenerates it from source. Each entry below links its manifest. Download the site-wide Custom Elements Manifest for all registered tags. The component catalog JSON lists every manifest URL.

Regenerate a vendored manifest · Shell
npm install --save-dev @custom-elements-manifest/analyzer
npx cem analyze --globs "vendor/disclosure-panel/**/*.js"

Point --globs at the component files you vendored. The analyzer writes custom-elements.json and records it in package.json, so the same tooling can discover a component you publish yourself.

disclosure-panel

Native disclosure, coordinated with attributes and events. Useful for help, installation instructions, and expandable documentation.

Try the disclosure

This content is ordinary HTML. Open it with a pointer, or focus the summary and press Enter or Space.

Documentation and examples · Source on GitHub · Custom Elements Manifest

rpg-actor

A portable pixel character. Four directions, nine expressions, talking, and attribute-driven playback with an HTML fallback.

My RPG Actor character sprite
My rpg.actor sprite

Documentation and examples · Source on GitHub · Custom Elements Manifest

Code Block

Display copyable HTML, CSS, JavaScript, and shell examples with syntax colors.

Sample markup · HTML
<button type="button">Save</button>

Documentation and examples · Source on GitHub · Custom Elements Manifest

Web Counter

Display a supplied page-view total with a traditional counter and a native HTML fallback.

1,234 Page views · last 30 days

Documentation and examples · Source on GitHub · Custom Elements Manifest

Kits

Kits are separate collections of elements that share a purpose but stand on their own. Use one kit by itself, mix elements from different kits, or combine them on the same page. Each kit ships its own module and stylesheet and lists any kit dependencies.

Game Kit

Build games with screens, layers, sprites, input, and scenes. Follow the Aether Wing tutorial to put them together.

Tutorial and element reference · Custom Elements Manifest · ES module · Stylesheet

Component files

Each component and kit ships an ES module, an MIT license, and a Custom Elements Manifest. The catalog includes artifact URLs and kit dependencies. See the component catalog JSON.

Find the source on GitHub or use the published files listed in the catalog.