Skip to content

About

REAL TIME

Resources

Stars

2 stars

Watchers

0 watching

Forks

Repository files navigation

SCADA Code Studio

Open the live application

View execution evidence

An interactive interface for electrical controls, ladder diagrams, and motor states, with accessible controls and action-history export.

Run

Requirements: React, TypeScript, TanStack Start, and Vite.

npm ci
npm run dev
npm run build

Behavior

Controls handle pointer input, cancellation, keyboard interaction, and loss of focus. History retains up to 1,000 actions and exports JSON for the operations archive. This is a training environment and does not control a physical PLC.

GitHub Pages

The live application runs the same React simulation components entirely in the browser. The static build includes the repository base path and needs no backend or API credentials. The existing server build remains available through npm run build.

npm ci
npm run build:pages
npm run preview:pages

Open http://localhost:4173/scada-code-studio/ to preview the production build. Pushes to main build and test the static application in Chromium before publishing it with the official GitHub Pages deployment actions. The browser check starts the motor, triggers the thermal trip, resets the protection, exports a session and rejects missing application assets or browser errors.

Pages deployment

Optional report archive

Use the shared operations archive client to queue result.json under project scada-code-studio. The client uses BRUNNODEV_ACCESS_TOKEN and retains unacknowledged reports locally.

License

Original source and documentation are MIT licensed; see LICENSE. Third-party dependencies and media retain their respective terms. Maintained by Brunno Dev.

Implementation update

Netlify builds use the official TanStack Start adapter with SSR output; the previous Nitro target remains available outside Netlify. Session recording validates action fields and exports only bounded, known fields. Use NETLIFY=true npm run build to verify the Netlify target locally.

Contribution trailer: Co-authored-by: nyctophile <33561761+ineedfoundmyway@users.noreply.github.com>.

Execution proof

Executable proof

Recorded program execution

Verified run · Execution report

Run python .proof/record.py after installing the prerequisites above. The scenarios execute repository code and verify exit codes and expected output. CI publishes execution-proof with the transcript, input fingerprints and source commit. The downloadable report identifies the exact tested version; the workflow badge tracks the latest run.

Actual browser execution

Chromium starts the motor, verifies the thermal trip and reset, then downloads the captured session JSON. Browser execution record

About

REAL TIME

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages