Skip to content
erupt-ioPublic

About

Serve models from any language as Erupt admin pages — official SDKs for Python, Go, TypeScript, PHP, .NET and Java, zero-dependency, schema-driven and conformance-tested.

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Repository files navigation

erupt-sdk

Serve models from any language as erupt admin pages. A node owns models and data; the erupt server renders the admin UI, logs users in and checks menus. Wire contract: erupt-cloud/PROTOCOL.md in the erupt repository.

Dir Language Package
python/ Python 3.9+, zero dependencies erupt-sdk (PyPI)
go/ Go 1.21+, standard library only github.com/erupt-io/erupt-sdk/go
ts/ TypeScript / Node.js 22+, zero runtime dependencies erupt-sdk (npm)
php/ PHP 8.1+, zero Composer dependencies erupt-io/erupt-sdk (Packagist)
dotnet/ C# / .NET 8+, no runtime NuGet dependencies Erupt.Sdk (NuGet)
rust/ Rust 1.85+ (drivers 1.88+), serde / serde_json / ctrlc; drivers behind features erupt-sdk (crates.io)
ruby/ Ruby 3.1+, zero gem dependencies (Rack compatible) erupt-sdk (RubyGems)
swift/ Swift 5.9+ (macOS 13+, Linux), Foundation only; SQLite via the optional EruptSQLite product EruptSDK (SwiftPM, github.com/erupt-io/erupt-sdk-swift)
jvm/ Java 17+ / Kotlin: Spring Boot, or plain Java, Solon, Quarkus, Micronaut, Vert.x, Ktor, servlet xyz.erupt:erupt-cloud-node (Spring) / erupt-cloud-node-lite (+ -ktor etc.), released with erupt
conformance/ protocol checks every SDK passes against the same fixture
schema/ the contract generated by erupt: annotation JSON Schema and field templates

Every SDK serves: CRUD with search / sort / paging, CHOICE, dates, references (table and tree pickers), row operations (with forms, confirm text, per-user visibility) and the server's per-user power; raw annotation attributes are typed from and validated against schema/.

Compatibility

Every SDK here speaks node protocol v2 (erupt-cloud/PROTOCOL.md §12): the server completes and checks the build, enforces the user's rights and the model's, checks and normalizes queries and records, and turns drills and link trees into conditions; the node stores rows and runs its own code. A v2 node needs an erupt server that speaks v2. Against an older server it logs that the server needs an upgrade and stops registering; it never falls back to v1. The Java nodes (jvm/) ship with erupt: erupt-cloud-node-lite speaks v2 from erupt 2.4.1, the Spring node (erupt-cloud-node) speaks v1.

Keeping in step with erupt

schema/ is the whole contract between the two repositories. After an annotation change erupt regenerates it (mvn -pl erupt-test -Pnode-schema test); here the sync-schema workflow (weekly, or run by hand with a branch / tag of erupts/erupt) pulls it, regenerates every language's code and opens a pull request. Each language's workflow fails on a generated file that no longer matches schema/ and runs the conformance suite; databases runs every SDK's SQL repository against real PostgreSQL and MySQL. A pull request opened with the workflow token does not trigger other workflows: close and reopen it (or push to its branch) to run them.

Releasing

One tag per language publishes that package after its CI passes; see RELEASING.md.

About

Serve models from any language as Erupt admin pages — official SDKs for Python, Go, TypeScript, PHP, .NET and Java, zero-dependency, schema-driven and conformance-tested.

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages