Serverless job scheduling and cron

Struggling to run background jobs in serverless environment? That's why we made Next Cron. You can setup background jobs with just a few lines of code.

1. Schedule job with our SDK

import { NextCron } from 'next-cron-node'

const nextCron = new NextCron('YOUR_API_KEY')

await nextCron.schedule.create({
  name: "unique-name",
  data: {
    userId: "user1",
  },
  scheduledAt: new Date(),
  endpoint: 'https://api.example.com/callback',
})

2. Create an API endpoint

import { NextResponse } from 'next/server'

export async function POST(req: Request) {
  const data = await req.json()

  console.log(data.userId)

  // OUTPUT: user1
  return NextResponse.json({
    success: true
  })
}

Simple & Scalable

Start for free and upgrade as you grow. No hidden fees or surprises.

Free
$0/mo
Includes 4000 invocations per month
Unlimited cron
Automatic retries
Webhooks
Premium
$19/mo
Includes 20000 invocations per month
Then as low as $0.0000022 per invocation
Priority support
Unlimited users