JavaScript SDK documentation
One typed client for storage, AI, the scheduler, and webhooks, for code that runs on your servers.
The digitospace package gives your server code one client for every product: space.fs for storage, space.ai for AI, space.schedule for the scheduler, and space.hooks for webhooks. It checks what you send before it leaves your server and what comes back before your code sees it, so a mistake shows up as a clear error with a stable code.
import { space } from "digitospace"
await space.fs.write("invoices/2026/0001.txt", "Invoice 0001")
const text = await space.fs.read("invoices/2026/0001.txt", { as: "text" })
console.log(text)Documentation resources
Find guides and a quickstart, look up every function, and check the limits.
Guides
Reference
Resources
Get started
- QuickstartStore a file and ask a model about it
Install the package, upload a file from your code, read it again, and ask a model about it.
- GuideInstall and set up
Add the package, create an API key, and choose the project your calls work in.
- GuideHandle errors
Branch on an error’s code, show what was wrong with the input, and know when to try again.
- ReferencecreateSpace() and space
Every option, and how the client pages, retries, times out, and cancels.
Last updated