A user
A gradient border

Functions

Server-side code that works as API endpoints with global scale.

Transparent lines
export default (req: Request, res: Response) => {
  res.status(200).send('Hello world')
}

Serverless Functions at Scale

Handle custom logic, specific business requirements, and custom integrations using Nhost Functions.

Explore the docs
Transparent lines
import nodemailer from 'nodemailer'

export default async (req, res) => {
  let transporter = nodemailer.createTransport({
    host: process.env.SMTP_HOST,
    port: process.env.SMTP_PORT,
    secure: true,
    auth: {
      user: process.env.SMTP_USER,
      pass: process.env.SMTP_PASS,
    }
  })

  let info = await transporter.sendMail({
    from: '"Fred Foo 👻" <foo@example.com>',
    to: 'bar@example.com, baz@example.com',
    subject: 'Hello ✔',
    text: 'Hello world?',
    html: '<b>Hello world?</b>'
  })

  res.json('Message sent')
}
Dashed lines

And more...

Transparent lines
Nhost Logo in a dark circle

Nhost

Build apps users love

Start building
Code

Environment Variables

Full access to system and manually defined environment variables.

TypScript

TypeScript-Ready

Deploy your TypeScript functions with ease.

A paper

Event Triggers

Use Functions to consume event triggers.

Tool

Zero Maintenance

Functions are automatically scaled and maintained.

There is more

Other features

Logo of Postgres
A gradient border

Postgres Database

The world's most advanced relational database.

Learn more
Logo of GraphQL
A gradient border

GraphQL API

Instant Realtime GraphQL API based on your database schema.

Learn more
Logo of Hasura
A gradient border

Hasura

Role-Based Permissions, Web Console, Event Triggers, Cron Jobs, and more.

A user icon
A gradient border

Auth

Sign in users with Email, Magic Link, SMS, Google, Facebook, etc.

Learn more
A file icon
A gradient border

Storage

Let users upload and download images, documents and other files.

Learn more
Lambda icon
A gradient border

Functions

Run custom code using JavaScript and TypeScript with infinite scale.

You are here
PLay icon
A gradient border

Run

Run custom services written in your favourite language.

Learn more
Graphite icon
A gradient border

AI

Run AI workloads easily alongside your Nhost Stack.

Learn more
Glowing logo of Nhost

Ready to try Nhost?