⚠️Alpha Release— APIs may change

End-to-End Type-Safe
Backend for Next.js

Real connection pools, automatic transactions, background jobs—
all in one Next.js project, not a separate backend.

Terminal
# One Next.js project with real backend
$ npx spfn@alpha create my-app
$ cd my-app

# Start databases (Docker recommended, or use your own PostgreSQL)
$ docker compose up -d

# Two servers, one codebase
$ npm run spfn:dev

✅ Backend: http://localhost:8790  # Real backend server
✅ Frontend: http://localhost:3790 # Next.js app

Contract → Routes → Client

Define once, typed everywhere

1
Contract
📁 Shared
// Define once
export const createUserContract = {
  method: 'POST',
  path: '/users',
  body: Type.Object({
    name: Type.String(),
    email: Type.String()
  }),
  response: UserSchema
} satisfies RouteContract;
2
Route
🔧 Backend
// Implement
app.bind(
  createUserContract,
  [Transactional()],
  async (c) => {
    const user = await create(
      users,
      await c.data()
    );
    return c.json(user);
  }
);
3
Client
⚡ Next.js
// Use (auto-generated)
const user = await api.users.create({
  body: {
    name: 'John',
    email: 'john@example.com'
  }
});
// ✅ Fully typed!
Coming 2026

Superfunction Cloud

Zero-config deployment for your Superfunction apps

The simplest way to deploy and scale your Next.js + Superfunction applications

Git Push Deploy

Connect your repo and deploy automatically. Just like Vercel, but for full-stack apps.

🔄

Built-in PostgreSQL

Managed database with automatic backups, migrations, and connection pooling.

📊

Monitoring & Logs

Real-time performance metrics, error tracking, and structured logs out of the box.

Why we're building this

Superfunction apps need persistent servers for connection pooling. We're building a hosting platform optimized for this architecture—combining the DX of Vercel with the power of long-running servers.

We're Hiring

Build with Expert Partners

Professional development services powered by Superfunction

Work with our network of expert developers, designers, and product managers

🚀

MVP Development

Launch your product in weeks with full-stack TypeScript expertise.

🔄

Migration Services

Move from legacy stacks to modern Superfunction architecture.

Custom Features

Add authentication, payments, dashboards, and more to your app.