Tessera docs

Launch Tessera

Launch

Functions

Writing functions

Run server code next to your data, with the same typed client and no servers to manage.

Your first function

functions/welcome-email.ts
import { fn } from "tessera" export default fn(async ({ db, input }) => {  const user = await db.users.find(input.userId)  await sendEmail(user.email, "Welcome to Acme")  return { sent: true }})

Deploying

Terminal
npx tessera functions deploy# ✓ welcome-email  deployed to development

Calling a function

await functions.invoke("welcome-email", { userId })

Runtime

Functions run on Node.js 20 with a 30 second default timeout and 512 MB of memory.

Was this helpful?

© 2026 Tessera, Inc.

Support

Status

Create a free website with Framer, the website builder loved by startups, designers and agencies.