App template
Scheduling
A team calendar and public booking pages: a week of everyone's events to drag and resize, a time that works across time zones, and links people book you on.
Use this template
Installs the whole app into your project: its pages, routes, services with sample data, agent tools and the browser entry. Every file is yours to edit.
npx shadcn@latest add checkfu/uicontext/scheduling- Run itLoad from your page’s script. It builds the app with
createApp: the browser’s router, the agent tools, an offline notice, and sign-in when you turn it on. Inside an app that already routes, renderSchedulingTemplate, which brings its own in-memory router. - Connect your backendEvery read and write goes through
Schedulingin . Implement it over your API and pointSchedulingLiveat your Layer. - Make it yoursPages are one file per route. Delete the ones you don’t need, and the sample data in .
Screens
Calendar
/A day, week, month or agenda of the calendars you pick, with a second time zone. Drag to add, move and resize, with Undo.
Find a time
/find-a-timeEveryone's hours and busy time side by side, and the times that work for all, in each person's clock.
Bookings
/bookingsWhat people booked on your pages, with links to move or cancel.
Booking pages
/bookingOne page per kind of meeting: its lengths, place and link, on or off.
Availability
/availabilityWeekly hours, date overrides, buffers, notice and how far ahead, with the next open times beside them.
Booking page
/book/:host/:typeThe public page: a month of open days in the visitor's zone, the times, a short form and Add to calendar.
Reschedule
/bookings/:id/rescheduleThe same page with the old time crossed out.
Cancel
/bookings/:id/cancelThe booking, a reason, and the button.
Where your backend plugs in
Pages never call a backend. They read through the queries in queries/ and write through Commands kept beside the component that runs them; both capture the Scheduling service. Implement its interface in over HTTP, a sync engine or a database client, then change one line:
export const SchedulingLive = Scheduling.sample
// becomes your Layer, such as
export const SchedulingLive = Layer.effect(Scheduling, makeHttpScheduling)The root provides it once, so every page shares one instance. Sign-in is one line: delete auth: false in once your backend serves the session routes, and the sidebar shows who signed in.
What to delete
- services/seed.ts, and Scheduling.sample in services/Scheduling.ts
- The meet.example.com links a new booking gets in services/Scheduling.ts: your video service makes them
To drop a screen, delete its file in pages/ and its route in ; TypeScript points at every link that still prints it. The agent tools are in .