Bolt.newFull-stack, booking included

Booking for the full-stack apps you generate in Bolt.new

Bolt writes the frontend and the server in one go. Point its server routes at Slotr and availability, peak prices and conflict protection come from one engine instead of generated code.

  • Entities.

    Your domain, synced. Doctors, rooms, courts, cars — anything.

  • Availability.

    Ask when something can be booked. Get the real answer.

  • Rules.

    Pricing and eligibility that follow your business logic.

  • Quotes.

    Know the price before the booking exists, with reasons.

  • Lifecycle.

    Create, confirm, reschedule, cancel. One API, safe by default.

  • No double-booking.

    Locks and slot holds, so every slot has exactly one owner.

  • Booking search.

    Your entities, indexed. Search by price, distance and real availability.

  • AI recommendations.

    Suggests the best booking using your rules, prices and availability.

How it works

One prompt for the stack. One engine for the bookings.

  1. 1

    Describe your booking model

    Start the prompt with how the club books: courts are booked in 90-minute slots from 08:00 to 23:00, members pay less than guests, and evenings cost more than mornings.

  2. 2

    Connect Slotr and keep the key server-side

    Add the Slotr plugin and put your API key in the project's .env file. Tell Bolt that only server routes may call Slotr, so the key never ships in the bundle.

  3. 3

    Generate the booking routes

    Ask for two routes: one that lists free courts for a date, one that books a slot. Both are thin wrappers around Slotr calls.

    const free = await slotr.availability.query({
      type: "court",
      from: "2026-11-06",
      to: "2026-11-06",
      filters: { indoor: true }
    });
  4. 4

    Seed peak and member rules

    Have the agent write a setup script that creates your pricing rules with the SDK. Rerun it in any project, or tweak the rules later in the Console.

    await slotr.rules.create({
      appliesTo: { type: "court" },
      when: [{ startsAfter: "18:00" }],
      then: { price: "+25%" }
    });
  5. 5

    Test two players at once, then deploy

    Open the app in two windows and book Court 3 at 20:00 in both. One confirms, the other gets a clear answer. Set the same environment variable on your host and go live.

What you skip

What Bolt's agent doesn't have to build. Full-stack doesn't have to mean hand-rolled booking.

  • 01

    Booking logic baked into the scaffold

    Bolt generates routes, schema and UI together, so a home-made booking model ends up spread across all three. Swapping it out later means rewriting routes, not replacing one component.

  • 02

    Slot grids that leave dead gaps

    Courts book in 60 or 90 minutes from fixed start times. Generated code often accepts any start time, so a 19:15 booking leaves a 45-minute gap at 18:30 that nobody can book.

  • 03

    Peak pricing as if-chains in a route

    Evening and weekend rates, member discounts and off-peak promos pile up as conditions in the booking handler. The price on the court card and the price charged slowly drift apart.

  • 04

    Two groups, one court at 20:00

    Prime-time courts get requested within seconds of each other. A check-then-insert route lets both through. Slotr holds the slot for the first request and returns the reason to the second.

  • 05

    Members and guests in the same query

    A member and a guest looking at the same slot should see different prices. Without a rules layer, that logic leaks into every query and every component that shows a price.

  • 06

    Search that ignores court attributes

    Players search for "indoor court for 4 tonight after 7pm". That needs court attributes and live availability in one answer, not a filter form followed by a second availability call.

Prompt and code

Tell Bolt where booking lives. It writes routes that stay short.

Drop it into your product. No per-provider accounts, no iframes — your database stays the source of truth.

Prompt
Build a padel club booking app with Slotr as the booking backend.
Courts are bookables with indoor, lights and surface.
Slots are 90 minutes, 08:00 to 23:00.
Members pay 20% less than guests. Evenings after 18:00 cost 25% more.
Keep the Slotr key in .env and call Slotr only from server routes.
Book route
export async function POST(req) {
  const { court, player, start } = await req.json();
  const booking = await slotr.bookings.create({
    bookable: court,
    participant: player,
    start
  });
  return Response.json(booking);
}
The route passes the request through. Slotr checks the slot, applies the rules and holds the court.
Booking Kit

A slot picker that knows prime time. Or keep the UI Bolt generated.

Drop in the Booking Kit, or go headless and keep Bolt's screens. Fixed start times, member prices and live totals come from the same API either way.

Accent
Corners
Theme
<SlotrBooking
  bookable="therapist_42"
  accent="#8E99FF"
  radius="soft"
  theme="dark"
/>
C3
Court 3 · IndoorPadel doubles · lights on
90 minIn personEurope/Amsterdam
90 min$36
October 2026
SunMonTueWedThuFriSat
Tue 6th
Guide

How to build a booking app in Bolt.new

Decide where booking logic lives before the first prompt

A Bolt.new booking system works best when the prompt says up front that Slotr owns availability, prices and conflicts. Bolt generates the whole stack at once, so whatever booking model you describe gets written into the schema, the routes and the components in the same pass.

Name the boundary explicitly: server routes call Slotr, the UI calls your routes, and no component calculates a price. That keeps the generated code small and makes later prompts like "add a lights surcharge" a rule change instead of a refactor across three layers.

Model courts, not time slots

A common first attempt is a slots table with one row per court per hour. It works for a demo and becomes painful the moment you change opening hours or add 60-minute slots next to 90-minute ones.

In Slotr each court is a bookable entity with attributes such as indoor, lights and surface. Opening hours, slot length and allowed start times are part of its availability, and Slotr calculates free slots from that plus existing bookings. Adding Court 7 is one upsert, not a migration.

Seed rules with a script you can rerun

Ask Bolt to write a small setup script that creates your rules with the SDK: evenings after 18:00 cost 25% more, members get 20% off, Sunday mornings are discounted. Keeping it in the repo means a fresh project gets the same pricing, and a reviewer can read the club's price policy in one file.

Once the club is live, staff can adjust rules in the Console without a redeploy. Every quote shows which rules fired, so when a guest asks why 20:00 costs $45 and 10:00 costs $36, the answer is in the breakdown.

Check these before you deploy

Set the Slotr key as an environment variable wherever you deploy, not just in the local .env. Point webhooks such as booking.confirmed and booking.cancelled at the deployed URL so confirmations and refunds work outside the preview. Then run the two-window test again on the live app.

Finally, book a few slots as a guest and as a member, then open Booking Management in the Console. Each booking shows how its price was built, which is the quickest way to confirm the evening surcharge and the member discount stack in the order the club expects.

Questions about booking in Bolt.new

How do I add booking to a Bolt.new app?

Describe your booking model in the prompt, connect Slotr with the plugin, and keep the API key in .env. Ask Bolt to generate server routes that call Slotr for availability, quotes and bookings, and either use the Booking Kit or keep the generated UI.

Where should the Slotr API key go in a Bolt project?

In an environment variable read only by server-side code, such as the project's .env file. Never pass it to client components. On deploy, set the same variable in your hosting environment so the live app can reach Slotr.

Can I keep the booking UI Bolt generated?

Yes. Slotr has a headless mode, so the screens Bolt generated can stay and simply call your routes. If you prefer ready components, the Booking Kit calendar and search inputs are fully customizable and wired to the same APIs.

How do I set peak and off-peak court prices?

Create rules in the Rules Engine instead of writing conditions in your routes. A rule can raise the price after 18:00, discount members or change weekend rates, per court. Each quote returns a breakdown showing which rules applied.

What happens if two players book the same court at once?

Slotr serializes concurrent requests with holds and locks. The first request gets the court, and the second gets an unavailable response with the reason, so your app can suggest the next free slot instead of failing at payment.

Can Bolt's agent create booking rules for me?

Yes, through code. The agent can write a setup script that calls slotr.rules.create for each rule. You can also edit rules in the Console, and agents that support MCP can use the Slotr MCP server to create them directly.

Is Slotr open to new projects yet?

Not publicly. Slotr is pre-launch and onboarding early users from the waitlist. Join it if you are building a booking app in Bolt.new and want access to the plugin and APIs.

Generate the app. Keep the bookings out of it.

Join the waitlist for early access to Slotr for Bolt.new projects.