🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

bare-switch-core

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bare-switch-core

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

latest
Source
npmnpm
Version
1.1.0
Version published
Weekly downloads
30
11.11%
Maintainers
1
Weekly downloads
 
Created
Source

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

FAQs

Package last updated on 29 Jun 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts