Skip to content

Microfn Documentation

The serverless function platform that makes deploying code as simple as writing it

Microfn is a serverless function platform that allows you to write JavaScript and TypeScript functions directly in your browser and deploy them instantly to AWS Lambda. With built-in modules for AI, storage, secrets management, and more, you can build powerful serverless applications without managing infrastructure.

Browser-Based Development

Write and test your functions directly in the browser with a full-featured code editor supporting TypeScript and auto-completion.

Instant Deployment

Deploy your functions to AWS Lambda with a single click. No build steps, no configuration files, just write and deploy.

Built-in Modules

Access powerful modules for AI (@microfn/ai), key-value storage (@microfn/kv), secrets management (@microfn/secret), and more.

Multiple Triggers

Trigger your functions via HTTP webhooks, scheduled cron jobs, email, or integrate with AI assistants through MCP.

import kv from "@microfn/kv";
import { askAi } from "@microfn/ai";
export default async function main(input: any) {
// Store data that persists across executions
await kv.set("lastRequest", new Date().toISOString());
// Use AI to process input
const analysis = await askAi(`Analyze this data: ${JSON.stringify(input)}`);
return {
timestamp: await kv.get("lastRequest"),
analysis
};
}

Modules

Learn about built-in modules for AI, storage, secrets, and function composition. Explore Modules →

Triggers

Discover different ways to invoke your functions: webhooks, cron jobs, email, and more. View Triggers →

Integrations

Connect Microfn with AI assistants and other tools through MCP and APIs. See Integrations →

  1. Sign up at microfn.dev
  2. Create a workspace for your functions
  3. Write your first function using the browser editor
  4. Deploy instantly to AWS Lambda
  5. Trigger your function via HTTP, cron, email, or MCP
  • No Infrastructure Management: Focus on writing code, not managing servers
  • Pay-Per-Use: Only pay for actual function executions
  • Instant Scaling: Functions scale automatically with demand
  • Built-in Security: Authentication, secrets management, and secure execution
  • Developer Experience: TypeScript support, auto-completion, and instant feedback

Ready to build? Sign up now and deploy your first function in minutes!