Public
Like
glimpse2-runbook-view-glimpse-save-login
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Viewing readonly version of main branch: v1View latest version
External API integrations (pure API calls only).
Services should:
- Be single-purpose functions that make direct API calls to external systems
- Be pure functions that handle HTTP transport layer (response.ok)
- Return consistent
{ success: boolean, data?: any, error?: string }
format - NOT handle environment variables, business logic, or orchestrate multiple calls
updatePageUrl(pageId, url)
- Updates a Notion page's URL propertygetPageById(pageId)
- Retrieves a single Notion pagegetDatabaseById(databaseId)
- Retrieves a Notion databasegetDatabasePages(databaseId)
- Queries pages from a Notion databasegetDatabases()
- Lists all accessible Notion databases
All functions return the standard {success, data/error, timestamp}
format.