Functions Run Code, Not Servers
Serverless functions that scale automatically
Deploy serverless functions with automatic scaling, built-in monitoring, and pay-per-execution pricing. Perfect for APIs, webhooks, and event-driven applications.
export default async (req, res) => {
const { name } = req.query;
// Your serverless logic here
const response = await fetch(`/api/users/${name}`);
const user = await response.json();
return res.json({
message: `Hello ${user.name}!`,
timestamp: new Date().toISOString()
});
};
Serverless, simplified
Everything you need for production-ready serverless functions
Instant Scaling
Automatically scale from zero to thousands of concurrent executions in milliseconds.
- Zero cold starts
- Automatic concurrency
- Global edge execution
Multiple Runtimes
Support for Node.js, Python, Go, and custom runtime environments.
- Node.js 18, 16, 14
- Python 3.9, 3.8
- Go 1.19
Edge Computing
Execute functions at the edge for ultra-low latency responses worldwide.
- 150+ edge locations
- Sub-10ms latency
- Automatic geo-routing
Built-in Monitoring
Real-time metrics, logs, and distributed tracing for all function executions.
- Real-time metrics
- Structured logging
- Error tracking
Enterprise Security
Built-in security with authentication, rate limiting, and environment isolation.
- Function-level auth
- Rate limiting
- Secret management
Pay Per Use
Only pay for actual function execution time. No charges for idle time.
- Per-millisecond billing
- No idle costs
- Free tier included
Ready-to-use examples
Get started with these common serverless patterns
REST API
export default async (req, res) => {
const { method } = req;
switch (method) {
case 'GET':
return res.json({ users: await getUsers() });
case 'POST':
const user = await createUser(req.body);
return res.status(201).json(user);
default:
return res.status(405).end();
}
};
Image Processing
from PIL import Image
import json
def handler(event, context):
# Process uploaded image
image = Image.open(event['image'])
# Resize and optimize
image.thumbnail((800, 600))
# Return processed image URL
return {
'statusCode': 200,
'body': json.dumps({
'processed_url': upload_to_storage(image)
})
}
Webhook Handler
package main
import (
"encoding/json"
"net/http"
)
func Handler(w http.ResponseWriter, r *http.Request) {
var payload WebhookPayload
json.NewDecoder(r.Body).Decode(&payload)
// Process webhook
result := processWebhook(payload)
w.Header().Set("Content-Type", "application/json")
json.NewEncoder(w).Encode(result)
}
Scheduled Tasks
export default async (req, res) => {
// Run every hour via cron: 0 * * * *
try {
// Cleanup expired sessions
await cleanupExpiredSessions();
// Send daily report
await sendDailyReport();
return res.json({
success: true,
timestamp: new Date()
});
} catch (error) {
return res.status(500).json({ error: error.message });
}
};
Simple, transparent pricing
Pay only for what you use, down to the millisecond
Calculate your costs
Estimated Monthly Cost
Pricing Details
Perfect for any use case
From simple APIs to complex event-driven architectures
API Backends
Build scalable REST APIs and GraphQL endpoints that scale automatically with demand.
- RESTful services
- GraphQL resolvers
- Authentication middleware
- Data validation
Webhooks & Integrations
Handle webhooks from third-party services and integrate with external APIs seamlessly.
- Payment processing
- GitHub webhooks
- Slack integrations
- CRM sync
Data Processing
Process files, transform data, and handle batch operations without managing infrastructure.
- Image resizing
- PDF generation
- CSV processing
- Data transformation
Automation & Cron Jobs
Schedule recurring tasks and automate workflows with reliable execution.
- Database cleanup
- Report generation
- Email campaigns
- Backup operations
Deploy your first function in minutes
Multiple ways to get started with HostEngine Functions
Deploy with CLI
# Install the CLI
npm install -g @hostengine/cli
# Login to your account
hostengine login
# Create a new function
hostengine functions:create hello-world
# Deploy to production
hostengine functions:deploy
Deploy from GitHub
Start building serverless today
Deploy your first function for free. No credit card required.