Skip to content

Repository files navigation

bare-switch-core

The shared peer-to-peer switch core behind the bare-macos / bare-ios example shells. It is the "core" in the Tether-stack sense: the worklet (backend.js + lib/switch.js), the protocol (schema.js), and the committed generated bindings under spec/ (JS for the worklet, Swift for the shells).

Shells consume this package; they run no codegen. Edit schema.js, run npm run schema, commit the regenerated spec/.

The switch is deliberately last-writer-wins with no conflict resolution. The divergence that causes is a teaching point (it motivates Autobase), not a bug.

Develop

npm install
npm run schema   # regenerate spec/ (JS + Swift)
npm test         # switch logic on Bare
npm run lint

About

Shared peer-to-peer switch core behind the bare example apps (bare-macos, bare-ios)

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages