ts-odd
ts-odd copied to clipboard
App API
const { app, state } = await sdk.initialise({
permissions: {
app: {
creator: "Creator",
name: "AppName"
}
}
})
// Clone the app to the user's filesystem (haven't decided how this will work yet)
app.clone()
// If the currently authed user has a copy of this app (ie. they cloned it), update those app files.
app.update()
// A sub graph, aka. scoped filesystem, of the app.
//
// ie. where you'd normally have `fs.ls("/private/Apps/Creator/AppName/...")`,
// or `fs.ls(fs.appPath("..."))`
// instead you would do:
app.fs.ls("...")
// Database
app.db()
@walkah is going to lead a design sprint for this API this week. Clearing a few things off his plate to let him focus 😄