Orbit Functions
Orbit Functions lets you deploy serverless endpoints with a single click. Write your function code, deploy, and get afn-{name}-{org}.case.systems URL instantly.
Why Functions?
- Zero Infrastructure - No servers to manage, no containers to configure
- Instant Deployment - Deploy in seconds, not minutes
- Automatic Scaling - Scales from 0 to thousands of requests automatically
- Pay Per Use - Only pay for actual execution time
Quick Start
1. Navigate to Functions
In the Console sidebar, click Functions under the Compute section.2. Create a Function
Click New and give your function a name. The URL will be generated automatically:3. Write Your Code
Use the built-in Monaco editor to write your function. Functions receive a standard Web Request and return a Response:TypeScript
4. Test Locally
Click Test to open the test panel. You can:- Select HTTP method (GET, POST, etc.)
- Set the request path
- Add a request body for POST/PUT requests
- See the response instantly without deploying
5. Deploy
Click Save & Deploy to push your function to production. Once deployed, the status changes to active and you can access it via the URL.Request Object
Your function receives a Request-like object with these properties:| Property | Type | Description |
|---|---|---|
method | string | HTTP method (GET, POST, etc.) |
url | string | Full URL including query string |
headers.get(name) | function | Get a header value |
json() | async function | Parse JSON body |
text() | async function | Get raw body text |
Response Object
Return a Response object with your data:TypeScript
Configuration
Configure your function using the dropdowns in the editor:| Setting | Options | Description |
|---|---|---|
| Runtime | Node.js 20, Node.js 18, Python 3.12, Python 3.11 | Language runtime |
| Timeout | 10s - 15min | Maximum execution time |
| Memory | 128MB - 4GB | Memory allocation |
AI Code Generation
Click the Thurgood button to have AI write your function code. Describe what you want:“A webhook handler that validates Stripe signatures and sends a Slack notification on successful payments”Thurgood will generate production-ready, heavily-commented code using Claude Opus 4.5.
Example Functions
Hello World
TypeScript
Query Parameters
TypeScript
POST with JSON Body
TypeScript
Webhook Handler
TypeScript
Pricing
Functions are billed based on execution time and memory:- Requests: $0.20 per 1M requests
- Duration: $0.00001667 per GB-second

