Welcome to Invoke
Invoke is a modern serverless function management platform that lets you deploy and execute custom functions in a secure, isolated VM environment.
What is Invoke?โ
Invoke allows you to write serverless functions using Node.js-compatible JavaScript, with access to a rich set of built-in modules and APIs. Your functions run in a sandboxed environment with:
- 24 Built-in Modules: Including
crypto,http,fs,dns, and more - Express.js-compatible APIs: Familiar
reqandresobjects - Persistent Storage: Built-in key-value store with TTL support
- Modern JavaScript: Full async/await, Promises, and ES6+ support
- Package Support: Use npm packages with
node_modules
Quick Exampleโ
Here's a simple Invoke function:
module.exports = async function(req, res) {
// Access request data
const name = req.query.name || 'World';
// Use built-in modules
const crypto = require('crypto');
const id = crypto.randomUUID();
// Store data in KV store
await kv.set(`user:${id}`, { name, timestamp: Date.now() });
// Send response
res.json({
message: `Hello, ${name}!`,
id
});
};
Key Featuresโ
๐ Secure Executionโ
Functions run in isolated VM environments with controlled access to system resources.
๐ HTTP/HTTPS Supportโ
Make external API calls using fetch, http, or https modules.
๐พ Built-in KV Storeโ
Persistent key-value storage with automatic TTL management.
๐ฆ npm Package Supportโ
Include node_modules in your function packages for third-party libraries.
โก High Performanceโ
Efficient execution with caching and resource pooling.
๐ ๏ธ Powerful CLIโ
Manage functions, versions, environment variables, and more from the command line.
Management Optionsโ
Web Admin Panelโ
Access the full-featured web interface to manage functions, view logs, and monitor performance.
Command Line Interface (CLI)โ
Use the Invoke CLI for powerful command-line management:
# Create and deploy a function
invoke function:create --name my-api ./my-function
# Invoke a function
invoke function:invoke my-api --method POST --data '{"hello": "world"}'
# View execution logs
invoke function:logs my-api --status error --limit 10
Learn more in the CLI Documentation.
What You'll Learnโ
- Quick Start - Create your first function in 5 minutes
- CLI Reference - Command-line interface documentation
- API Reference - Complete documentation of available APIs
- Guides - Step-by-step tutorials for common tasks
- Examples - Real-world function examples
Ready to Get Started?โ
Jump into the Quick Start Guide to create your first Invoke function!