Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

The booking engine you should not have to write again

Описание и применение

Bookrail – открытая инфраструктура бронирования, устраняющая общие проблемы, такие как двойные бронирования, некорректное управление временем и политикам, обеспечивая единый набор гарантий через PostgreSQL.

Задача

Developers building booking products face eight common problems—concurrency, double bookings, time‑zone shifts, policy changes, idempotency, cancellation rules, availability reporting, and API consistency—leading to frequent rewrites.

Результат

Bookrail eliminates the need to re‑implement core booking logic, reducing development time, preventing double bookings, ensuring policy consistency, and handling daylight‑saving transitions correctly.

Рабочий процесс

  • 1. Define resources and capacities in Bookrail’s PostgreSQL schema.
  • 2. Use the CLI or SDK to create a project and describe the booking product.
  • 3. Expose the Bookrail API (api.bookrail.dev) to the front‑end or agent.
  • 4. Make booking requests with Idempotency‑Key headers to ensure single creation.
  • 5. Query availability with the explain flag to see why slots are occupied.
  • 6. Rely on Bookrail’s built‑in policies and time‑zone logic for consistent behavior.
  • 7. Integrate coding agents via the MCP server to automate product setup and bookings.

Доказательства

Zero double bookings. A resource with capacity 1 has a PostgreSQL exclusion constraint on its occupancies.

Источник

Idempotent by construction. Every POST accepts an Idempotency-Key.

Источник

Time zones done properly. Schedules live on a local clock… materialised into UTC day by day from the IANA database.

Источник

  • Дата записи: 2026-09-15T19:00:27.512Z