Skip to content

About

Digital timing diagram editor

Topics

Resources

Stars

1.1k stars

Watchers

62 watching

Forks

Repository files navigation

WaveDrom

WaveDrom Website & Editor

Source repository for wavedrom.com — the documentation site, ecosystem directory, and real-time WaveDrom Editor for digital timing diagrams (signal), register & bitfield maps (reg), and combinational logic schematics (assign) powered by WaveDrom and WaveJSON.

Development

Requires Node.js 22+ (engines.node >= 22).

npm install
npm run build        # generate static HTML, CSS, and JS bundles
npm run serve        # local preview server
npm test             # ESLint (bin, lib, test) + Mocha unit tests

Other scripts:

  • npm run build:dev — unminified esbuild bundles for debugging
  • npm run coverage — Mocha tests with c8 coverage report
  • npm run ecosystem:collect — refresh data/ecosystem.json metadata

Updating the bundled WaveDrom engine

npm run build automatically copies wavedrom.min.js and skins/*.js from node_modules/wavedrom/ into the repository root and skins/. After bumping wavedrom in package.json:

npm install
npm run build
npm test

Building the Desktop Application (NW.js)

The offline desktop app is packaged with NW.js for Windows, macOS, and Linux:

npm run build:wde    # runs ./build-wde.sh

This runs npm run build, stages assets into src/, downloads the matching NW.js runtimes, and writes distributable archives under build/:

  • wavedrom-editor-v<version>-linux-x64.tar.gz
  • wavedrom-editor-v<version>-win-x64.zip
  • wavedrom-editor-v<version>-osx-x64.zip
  • wavedrom-editor-v<version>-osx-arm64.zip

Pass --stage-only to ./build-wde.sh to populate src/ without downloading NW.js.

The NW.js and app versions are configured at the bottom of build-wde.sh:

bash build.sh --name wavedrom-editor --nwversion v0.115.0 --version v3.8.0

Releasing the Desktop Application (CLI)

  1. Bump versions in package.json, WaveDromEditor/package.json, service-worker.js (CACHE_NAME), and build-wde.sh (--version / --nwversion).
  2. Build the site and desktop packages:
    npm run build:wde
    npm test
  3. Tag and push the release:
    git tag v3.8.0
    git push origin v3.8.0
  4. Publish artifacts to GitHub Releases via gh:
    gh release create v3.8.0 \
      build/wavedrom-editor-v3.8.0-*.tar.gz \
      build/wavedrom-editor-v3.8.0-*.zip \
      --title "v3.8.0" \
      --notes-file TMP_RELEASE_NOTES.md

Community

Use the WaveDrom User Group or GitHub Issues for questions, discussions, and bug reports.

License

See LICENSE.

About

Digital timing diagram editor

Topics

Resources

Stars

1.1k stars

Watchers

62 watching

Forks

Releases

Packages

Used by

Contributors

Languages