Why SPFN?
Discover why we built SPFN and how it bridges the gap between simplicity and power.
Real connection pools, automatic transactions, background jobs—
all in one Next.js project, not a separate backend.
# 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 appDefine once, typed everywhere
// Define once
export const createUserContract = {
method: 'POST',
path: '/users',
body: Type.Object({
name: Type.String(),
email: Type.String()
}),
response: UserSchema
} satisfies RouteContract;// Implement
app.bind(
createUserContract,
[Transactional()],
async (c) => {
const user = await create(
users,
await c.data()
);
return c.json(user);
}
);// Use (auto-generated)
const user = await api.users.create({
body: {
name: 'John',
email: 'john@example.com'
}
});
// ✅ Fully typed!Zero-config deployment for your Superfunction apps
The simplest way to deploy and scale your Next.js + Superfunction applications
Connect your repo and deploy automatically. Just like Vercel, but for full-stack apps.
Managed database with automatic backups, migrations, and connection pooling.
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.
Professional development services powered by Superfunction
Work with our network of expert developers, designers, and product managers
Launch your product in weeks with full-stack TypeScript expertise.
Move from legacy stacks to modern Superfunction architecture.
Add authentication, payments, dashboards, and more to your app.
Insights, tutorials, and updates
Discover why we built SPFN and how it bridges the gap between simplicity and power.
Connection pools, transactions, background jobs—all without deploying a separate backend.
Complete type safety from your database to your frontend components.
Major milestone with enhanced type safety and performance optimizations.
Implement background jobs and scheduled tasks for better performance.
Amazing projects built with SPFN by our growing developer community.