qmk-skim (Svalboard Keymap Image Maker)
A Python CLI tool for generating high-quality keymap layout images for the Svalboard keyboard.
Features
- Generate individual layer keymap images with layer indicator circles
- Generate overview images showing all layers with connector lines
- Supports Tap-dance and Macro keys
- Interactive TUI configurator for editing configuration files
- System dependency checker (
skim doctor) - Support for multiple keymap formats:
- Keybard (
.kbi) - Vial (
.vil) - QMK c2json (
.json)
- Keybard (
- Configurable colors, layer names, and appearance
- High-quality output in multiple formats:
- Vector: SVG
- Raster: PNG, JPEG, WEBP, AVIF
- Stdin support for piping keymap data in scripts
Installation
You can install qmk-skim using pip, pipx, or uv.
Using uv (Recommended)
uv tool install 'qmk-skim[playwright,cairo,tui]'
You can upgrade to a new version using:
uv tool upgrade qmk-skim
Using pipx
pipx install 'qmk-skim[playwright,cairo,tui]'
Using pip
pip install 'qmk-skim[playwright,cairo,tui]'
Usage
The package installs the skim command-line tool, but if you prefer to use the
tool without installing it, you can use uvx:
uvx --python 3.10 --from 'qmk-skim[cairo,playwright]' skim doctor
Check your environment
# Verify system dependencies (render engines, etc.)
skim doctor
Generate keymap images
# Generate all layers + overview from a keymap file
skim generate --keymap my-keymap.kbi --output-dir ./images
# Generate with custom configuration
skim generate --keymap my-keymap.kbi --config skim-config.yaml --output-dir ./images
# Generate specific layers only
skim generate --keymap my-keymap.kbi --layer 1 --layer 3-5 --layer overview
# Generate PNG output (requires Chromium or Cairo)
skim generate --keymap my-keymap.kbi --format png --output-dir ./images
# Read keymap from stdin
cat my-keymap.json | skim generate - --output-dir ./images
Configure appearance
The easiest way to tweak your keymap image is to use our interactive configurator where almost every configurable option is available for you to learn and change.
# Launch the interactive TUI configurator
skim configure --interactive
# Edit an existing configuration file in the TUI
skim configure --interactive --config skim-config.yaml
# Generate a config from a Keybard keymap (extracts layer colors, names, custom keycodes)
skim configure --keymap my-keymap.kbi --output skim-config.yaml
# Import QMK named colors from color.h
skim configure --keymap my-keymap.kbi --qmk-color-header /path/to/color.h --output skim-config.yaml
Development
This project uses uv for dependency management and just as a command runner.
Setup
# Clone the repository
git clone https://github.com/Townk/skim.git
cd skim
# Install dependencies (dev + docs + extras)
just sync
Testing
# Run all tests (unit + integration) with coverage
just tests
# Run only unit tests
just unit-tests
# Run only integration tests
just integration-tests
Code Quality
# Run all checks (lint, format, type check)
just check
# Quick feedback loop (format + lint + typecheck)
just quick-check
# Full CI pipeline (all checks + all tests)
just ci
Individual checks:
just lint # Run ruff linter
just format # Format code with ruff
just format-check # Check formatting without modifying
just fix # Auto-fix lint issues
just typecheck # Run basedpyright
Building
just build # Build the package
just build-docs # Build Sphinx documentation
just serve-docs # Build and open documentation in browser
just clean # Remove build artifacts and caches
License
MIT License
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Metadata
Release files for qmk-skim 0.7.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| qmk_skim-0.7.4.tar.gz | 3.8 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| qmk_skim-0.7.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.6 MB
Release files / qmk_skim-0.7.4.tar.gz
| Download URL | qmk_skim-0.7.4.tar.gz |
|---|---|
| Size | 3.8 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a9bfce2d8f38dd247cd632cae2f8ec3e53774c26d415c7232b6db37153371e43
|
|
BLAKE2b-256 checksum How to use checksums |
58586434f354c12541bdacbb0d02a8d667063ba87fbb9fb241359e9cfe8d0631
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 9, 2026.
Transparency logRelease files / qmk_skim-0.7.4-py3-none-any.whl
| Download URL | qmk_skim-0.7.4-py3-none-any.whl |
|---|---|
| Size | 3.8 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0419df4ea5b78c6cf8d280d5d7a6ff9661afbb812b366a70701cce851896813f
|
|
BLAKE2b-256 checksum How to use checksums |
55c820907efa7bb426dca2e4dc40abc6b1512438e04e103cf4a076ed56ec0b36
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 9, 2026.
Transparency log