Skip to content
Projects

About

A LoRaWAN nodes' and network simulator that works with a real LoRaWAN environment (such as Chirpstack) and equipped with a web interface for real-time interaction.

Systems & Infrastructure

How these counts are measured

Measured star growth

in 24h
Collecting history
in 7 days
Collecting history
in 15 days
Collecting history
in 1 month
Collecting history

Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.

README.md

Original

LWN Simulator

PR checks Documentation Latest release License: MIT Made with Go Made with TypeScript Go 1.26.5 Node.js 24 Yarn 4.18.0

LWN Simulator is a LoRaWAN network simulator for building, running and inspecting realistic device and gateway scenarios. It can be used as a standalone desktop application or as a web application connected to a local or remote backend.

The simulator supports virtual networks, real gateway transports, ChirpStack integration, repeatable simulations, profile-based configurations, persistent logs and live updates through WebSocket connections.

LWN Simulator homepage screenshot

Documentation

The user documentation explains installation, configuration, hardware setup, simulation controls, profiles, logs and ChirpStack integration:

https://unict-arslab.github.io/LWN-Simulator/docs

The documentation is available in English, Italian, Spanish, French and German. Start with the Getting Started guide.

Repository structure

The repository is a Yarn workspace containing the application layers and the shared packages used by them.

Applications

  • Backend: Go API, simulation orchestration, persistence and real-time communication.
  • Frontend: Next.js web interface for managing networks and simulations.
  • Desktop: Electron shell that packages the frontend and can manage a local backend.
  • Launcher: connection screen used by the desktop application to select a local or remote backend.

Shared packages

  • Contracts: OpenAPI schemas and generated TypeScript/Go models shared across the stack.
  • Engine: deterministic Go simulation engine implementing the network, protocol and radio behavior.
  • SDK: TypeScript API client and React providers used by the frontend and launcher.
  • UI components: reusable controls, layouts and Storybook scenarios.

Requirements

  • Node.js 24;
  • Corepack with Yarn 4 enabled;
  • Go 1.26 or newer for the backend and engine;
  • Docker is optional and useful when running ChirpStack locally.

Run from source

corepack enable
yarn install
yarn generate
yarn dev

The development command starts the frontend and backend together. The web interface is normally available at http://localhost:3000 and the backend at http://localhost:8080.

To launch the Electron application with its local backend:

yarn dev:electron

Useful checks

yarn generate       # regenerate shared API models
yarn typecheck      # type-check applications and packages
yarn lint           # run TypeScript, CSS and documentation linting
yarn test           # run backend and engine tests
yarn check          # run the complete validation pipeline
yarn build          # build distribution artifacts

GitHub Actions

CI checks run when a pull request is opened, reopened or updated. GitHub Pages publishes the documentation and Storybook on pushes to main or when the deploy workflow is run manually.

To publish a distribution, set the same new version in package.json and apps/desktop/package.json. Once the release workflow is available on the default branch, open it in Actions under Publish desktop and server release, select Run workflow, and choose the branch or tag to build. The workflow publishes all Linux, macOS and Windows downloads in one GitHub Release named v<version>. It publishes only after all platform builds pass and includes a SHA256SUMS file for the downloads.

License

LWN Simulator is distributed under the MIT license. See LICENSE.txt.

Publications and Citations

Explore related projects

Loading…