Skip to content

Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.

825 B
Raw Blame
import SwiftUI

/// three.ws Glance for the Mac.
///
/// Two surfaces and nothing else: a menu bar item, which is the surface people
/// actually keep, and one window that links the Mac to an account. The widget
/// in Notification Centre is the point; this app exists to feed it a token and
/// to prove the token works.
@main
struct ThreeWSGlanceApp: App {
	@StateObject private var model = GlanceLinkModel()

	var body: some Scene {
		Window("three.ws Glance", id: "glance-link") {
			LinkView(model: model)
				.onOpenURL { model.handle($0) }
				.task { if model.isLinked { await model.refresh() } }
		}
		.defaultSize(width: 460, height: 520)
		.windowResizability(.contentMinSize)

		MenuBarExtra("three.ws Glance", systemImage: "square.grid.2x2") {
			MenuBarView(model: model)
		}
		.menuBarExtraStyle(.window)
	}
}