kwasm
Standalone web-based layout viewer using KLayout
Decision gist · record as of 2026-08-14
Yes, if you work with GDS2/OASIS files and use Python 3.12. The package is actively maintained, has zero known vulnerabilities, and offers genuine value for semiconductor design workflows—especially in Jupyter notebooks and for sharing designs without requiring KLayout installation. The GPL-3.0 copyleft license is a consideration for commercial redistribution but not for internal use. The Python 3.12-only requirement is a hard constraint; it will not run on other versions.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.12 exactly (~=3.12.0); earlier or later versions will not work.
- Low friction: pure Python wheel with only typer as a runtime dependency.
- Active maintenance (latest release 2026-08-13, 1 day old).
License · maintenance · safety
GPL-3.0 (copyleft) — GPL-3.0 copyleft license: any derivative work or distribution must also be open-source under GPL-3.0. Suitable for internal tools and open-source projects; review required before commercial redistribution.
last release 2026-08-13 (1 days)
0 known vulnerabilities (OSV.dev, 2026-08-14) · 77,438 downloads/mo, #14,523 on PyPI
Alternatives
Verify before relying
pip install kwasm
import kwasm
kwasm.show("my_chip.gds")
# Or from CLI:
kwasm bundle my_chip.gds --output viewer.html- Whether gdsfactory integration (mentioned in description) is fully functional or still in development.
- Performance characteristics when viewing large GDS2/OASIS files in the browser.
- Browser compatibility matrix and minimum browser versions required for WASM execution.
What it is and what it does
kwasm wraps KLayout's layout rendering engine (compiled to WebAssembly via Emscripten and Rust FFI) to create a browser-based viewer for semiconductor design files. It runs entirely client-side—no server, no installation in the browser—and can be embedded in Jupyter notebooks or bundled as self-contained HTML files via a CLI. The viewer supports GDS2 and OASIS formats, with interactive tools for panning, zooming, measuring, drawing annotations, toggling layer visibility, and switching between dark and light themes. Layouts can be loaded via drag-and-drop, URL query parameters, or direct Python calls.
The Python package (version 0.2.24) depends only on typer for CLI scaffolding and targets Python 3.12 exclusively. It's actively maintained and has no known security vulnerabilities. The underlying WASM artifacts are built from a Rust FFI layer and KLayout's C++ engine, but users install only the pre-built wheel. For Jupyter workflows, kwasm integrates with gdsfactory to accept component objects directly.
Use it for
- View and inspect GDS2 chip layouts in a Jupyter notebook without leaving the notebook environment.
- Generate self-contained HTML viewers for sharing semiconductor designs with collaborators who have no special software installed.
- Embed an interactive layout viewer in a web application using the bundled WASM artifacts and React library.
- Measure and annotate semiconductor designs interactively in the browser for design review and documentation.
- Load and visualize layer properties from .lyp files to see designs with custom color schemes and layer configurations.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you work with GDS2/OASIS files and use Python 3.12.
The package is actively maintained, has zero known vulnerabilities, and offers genuine value for semiconductor design workflows—especially in Jupyter notebooks and for sharing designs without requiring KLayout installation. The GPL-3.0 copyleft license is a consideration for commercial redistribution but not for internal use. The Python 3.12-only requirement is a hard constraint; it will not run on other versions.
Install
kwasm on PyPI
Before you install
Low friction: pure Python wheel with only typer as a runtime dependency. Active maintenance (latest release 2026-08-13, 1 day old). Requires Python 3.12 specifically (capped_below_current support).
Requires Python 3.12 exactly (~=3.12.0); earlier or later versions will not work.
License in practice
GPL-3.0 copyleft license: any derivative work or distribution must also be open-source under GPL-3.0. Suitable for internal tools and open-source projects; review required before commercial redistribution.
Quickstart
pip install kwasm
import kwasm
kwasm.show("my_chip.gds")
# Or from CLI:
kwasm bundle my_chip.gds --output viewer.html
Verify before relying
- Whether gdsfactory integration (mentioned in description) is fully functional or still in development.
- Performance characteristics when viewing large GDS2/OASIS files in the browser.
- Browser compatibility matrix and minimum browser versions required for WASM execution.
Package facts
| License | GPL-3.0 copyleft |
| Python support | Capped below the current Python release ~=3.12.0 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packagetyper |
| Maintenance | Actively maintained 1 days since the last release |
| First released | |
| Downloads | 77,438 / month, #14,523 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
Evidence: kwasm-0.2.24-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “gds2 viewer browser”
- kwasmkwasm bundles KLayout's WebAssembly-compiled layout rendering engine…
- mjvisermjviser is a web-based viewer for MuJoCo physics simulations,…
- fprime-visualA browser-based web application for visualizing F Prime flight…
Give your agent the search over MCP, or paste the wish link into any chat.
More Graphics packages
Pillow adds image processing capabilities to Python, providing file format support, efficient pixel data handling, and image manipulation operations.
Install it if you need to work with images in Python—it is the de facto standard for this task.
fonttools manipulates font files in multiple formats (TrueType, OpenType, AFM, Type 1, Mac-specific) and includes TTX, a tool to convert fonts to and from XML text format.
Install it if you need to read, write, or manipulate fonts programmatically or via the TTX command-line tool.
Enables matplotlib figures to display inline directly within Jupyter notebooks and IPython environments instead of in separate windows.
PyMuPDF extracts, renders, converts, and manipulates PDF and other document formats (XPS, EPUB, images, Office files via Pro) with high performance, providing text, tables, images, and metadata with precise layout information.
The AGPL license requires careful review if you are building proprietary software—commercial licensing is available from Artifex.
pypdfium2 is a Python binding to PDFium that enables PDF rendering, inspection, manipulation, and creation through a ctypes interface to Google's PDFium library.
Install it if you need PDF rendering, inspection, or manipulation in Python; the medium install friction is offset by comprehensive platform support.
Altair is a declarative Python library for creating interactive statistical visualizations by writing simple, readable code that compiles to Vega-Lite specifications.
See also kfactory · klayout · elvis-lvs · gdsfactory · gdstk · gdsfactoryplus · wasmer · cmsis-pack-manager · qwasm · dvsim