Server
Install the server package and mount its handler:lib/tilde.ts
app/api/tilde/[...path]/route.ts:
/api/tilde/ to embed.handle(request). It takes and returns standard Request and Response objects.
resolveIdentity must read your verified server session. Return null to refuse the request.
Browser
spaces/.
Theme
Pass theme tokens to match your application. Each token takes any CSS value.
Call
space.setTheme(theme) to change it later, for example when your app switches to dark mode.
Size, links, and actions
The frame sizes itself to its content. SetautoResize: false and height for a fixed size.
A space cannot navigate your page itself. Its pages call navigate and emit from @tilde/spaces, and your app decides what happens:
spaces/pipeline/index.tsx