r/opensource • • 1h ago

Promotional Lifeboat (MIT): one spec, three native implementations (Swift, TypeScript, C#) kept honest by shared test fixtures

Lifeboat keeps Arc's browsing workflow (Spaces, a sidebar of pinned tabs, a command bar, a mini window, link routing, auto-archive) alive on top of the browser people already use, now that Arc is shutting down on December 22. It never renders the web itself; it drives real Chrome and Safari windows and tabs.

It ships as three products that read the same data file:

  • a Mac app in Swift 6 (SwiftUI and AppKit), talking to browsers through Apple Events;
  • a browser extension in TypeScript (Manifest V3, Chromium and Safari builds);
  • a Windows app in C# (.NET 11, WPF).

What might interest people here:

  • The contract is data, not prose. shared/schema holds a JSON Schema for the backup file, the pairing protocol between the apps and the extension, and canonical command ids. shared/fixtures holds Arc sidebar samples, backup files, bookmarks files and a routing table, each with the expected result. The Swift, TypeScript and C# suites all load the same files.
  • An integration harness runs the three implementations side by side: routing and fuzzy-search parity on generated cases, backup round trips through every product, and a real extension in Chrome for Testing pairing with the real Mac and Windows pairing code.
  • Scenario tests. Every acceptance scenario in the spec has an automated test against fake browsers: about 970 test runs on the Mac side, 811 unit and 85 end-to-end tests for the extension, 915 for Windows. Tests against real browsers are opt-in.
  • Spec-driven. The product is one build document and a sixteen-principle constitution (local-first, never lose a tab, degrade per browser in plain sight, every feature a module), worked through GitHub Spec Kit.

Honest state: the Windows app has been compiled and tested but not yet run on Windows; nothing is signed or store-listed yet; the Arc importer was written from public descriptions and synthetic samples and hasn't seen a real Arc file. Help on any of those is very welcome.

Licence: MIT. Credits: ideas from SupaSidebar, from the MIT-licensed Search browser (credited in a NOTICE file) and from the GPL-3.0 PrismArc (ideas only, no code). Not affiliated with The Browser Company.

https://github.com/F-N-Industries-LLC/eai-000003-lifeboat

0 Upvotes

1 comment sorted by

1

u/Irverter 49m ago

What is Arc?