RepositoryTypeScript
wokwi

wokwi/wokwi-elements

Web Components for Electronics and IoT Parts

274stars
77forks
16issues
2views

Featured achievements

The project's latest awards

4
TINIX TRENDING·Topic: lit-element

#4 Repository of the week

5
TINIX TRENDING·Topic: web-components

#5 Repository of the week

8
TINIX TRENDING·Topic: electronics

#8 Repository of the week

Wokwi Elements

Web Components for Arduino and various electronic parts.

NPM Version Gitpod ready-to-code

Check out the component catalog.

Note: these elements only provide the presentation and display of the represented hardware. They do not provide the functional simulation code of the hardware. That is dependant on the application (simulator) that you wish to use these with, and thus up to you to create.

Using Wokwi Elements

You can install the package with npm and then import it into your code:

import '@wokwi/elements';

Alternatively, you can load the Wokwi Elements bundle from unpkg's CDN:

Replace 0.48.3 with the latest version number. You can find a list of all the versions in the releases page.

Local development

To prepare for local development, clone this repo, and then install the dependencies:

npm install

Then start storybook:

npm run storybook

This will open a local dev server at http://localhost:6006, where you can interact with the elements and see your changes live, similar to https://elements.wokwi.com.

Creating a new element

The easiest way to create a new element is to run the generator:

npm run new-element --name demo

This will generate a new element called demo. It will also create a storybook file, so you will be able to see the new element in storybook (see the "Local development" section above).

Note: updates the docstrings in the code will not be reflected in Storybook's Docs tab unless you restart Storybook, or run the following command manually and refresh the page:

npm run analyze-components

Check out the Contributing Guide for more details.

Learn how to create elements

Video tutorial

The Membrane keypad element live-coding tutorial walks through the complete process behind creating an element: research, drawing, and writing the code / stories.

Blog posts

License

Wokwi Elements are released under the MIT license.

Similar Projects

Discover other similar projects and AI models.

RepositoryTypeScript
khmyznikov/pwa-install

Installation dialog for Progressive Web Application. Provides a more convenient user experience and fixes the lack of native dialogs in some browsers.

989
Sep 14, 2026
RepositorySCSS
material-components/material-web

Material Design Web Components

11.5k
Dec 1, 2026
RepositoryTypeScript
microsoft/vscode

Visual Studio Code

195.9k
Nov 30, 2026
RepositoryPython
microsoft/markitdown

Python tool for converting files and office documents to Markdown.

199.5k
Dec 2, 2026
RepositoryTypeScript
lit/lit

Lit is a simple library for building fast, lightweight web components.

21.9k
Nov 5, 2026
RepositoryTypeScript
Tencent/omi

Web Components Framework - Web组件框架

13.3k
Nov 29, 2026
RepositoryTypeScript
vercel-labs/ui

A library of behaviors for agents to build and drive the next generation of user interfaces.

8.3k
Dec 2, 2026
RepositoryTypeScript
home-assistant/frontend

:lollipop: Frontend for Home Assistant

5.8k
Dec 1, 2026
RepositoryTypeScript
Tencent/wujie

A micro-frontend framework based on Web Components and iframe — ultra-low cost, fast rendering, and native isolation.

5.1k
Nov 24, 2026