FeaturesTemplatesShowcaseTownie
AI
BlogDocsPricing
Log inSign up
lightweight

lightweight

glimpse2-runbook-view-glimpse-save-login

Remix of lightweight/glimpse2-runbook-view-glimpse-save
Public
Like
glimpse2-runbook-view-glimpse-save-login
Home
Code
8
_townie
13
backend
7
frontend
1
shared
1
.vtignore
README.md
deno.json
H
main.tsx
Branches
1
Pull requests
Remixes
1
History
Environment variables
5
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.
Sign up now
Code
/
backend
/
services
/
README.md
Code
/
backend
/
services
/
README.md
Search
9/5/2025
Viewing readonly version of main branch: v2
View latest version
README.md

Services

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

Examples

Notion Service Functions

  • updatePageUrl(pageId, url) - Updates a Notion page's URL property
  • getPageById(pageId) - Retrieves a single Notion page
  • getDatabaseById(databaseId) - Retrieves a Notion database
  • getDatabasePages(databaseId) - Queries pages from a Notion database
  • getDatabases() - Lists all accessible Notion databases
  • findUserByEmail(databaseId, email) - Queries database for user by email address
  • createUserRecord(databaseId, email) - Creates new user page in database with email

All functions return the standard {success, data/error, timestamp} format.

FeaturesVersion controlCode intelligenceCLI
Use cases
TeamsAI agentsSlackGTM
ExploreDocsShowcaseTemplatesNewestTrendingAPI examplesNPM packages
PricingNewsletterBlogAboutCareersBrandhi@val.townStatus
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Terms of usePrivacy policyAbuse contact
© 2025 Val Town, Inc.