En Garde

Interns’ on-call shifts, shared out fairly.

  • iPhone
  • Android
  • Web

Date: 2026

En Garde is an app for the medical interns of a hospital department: organising on-call shifts so that they are shared out fairly, and giving everyone a tool to get organised.

I designed an app where the department’s planning is shared: each intern enters their shifts in a few taps, and a fairness table counts everyone’s, by type and by weekend, to spread the next ones. Reminders go to the phone and to the personal calendar, and an Excel export goes to HR at the end of the month. The app installs from the browser, on iPhone as on Android, and the planning stays readable even offline.

The data stays in France, with a Paris host. Each intern signs in with an email address, or in one click with Google, Microsoft or the hospital’s SSO.

The result

The app in use. The app run locally, a demo department of invented interns
The planning for November 2026 on a computer: the month’s calendar, the intern’s shifts in blue, the co-interns’ in light blue, and beside it the list of the month’s shifts with the hours.
The month’s planning. The app run locally, a demo department of invented interns
Entering shifts on a phone: three days selected in the calendar, the choice of “Garde 24 h”, “Garde de nuit” or “Garde de jour”, and the button “Enregistrer 3 jours · 24h” (save 3 days).
Three days entered at once. The app run locally, a demo department of invented interns
The sheet for Wednesday 4 November on a phone: the intern on the night shift, from 18:30 to 06:30, and the shifts to add, 24 hours, night or day.
A day’s sheet. The app run locally, a demo department of invented interns
The fairness table for the winter semester 2026–2027: seven interns, the number of 24-hour, night and day shifts, Fridays, Sundays and holidays, and Saturday’s astreintes apart.
The fairness table. The app run locally, a demo department of invented interns
Reminders on a phone: notifications, reminders to add, the calendar subscription for iPhone, Mac or Google, and the next shifts.
Reminders and the calendar. The app run locally, a demo department of invented interns
The department’s page: the invite code to share, the export for HR, Excel or CSV, by month or by semester, the shift types, the interns and the calendar, Saturday ticked as the day on call.
The department’s shared settings. The app run locally, a demo department of invented interns

What was done

  1. 01

    Free hosting, in France

    The app fits in a Paris host’s free plan: one process serves the pages, the API and the reminders, the database keeps no connection open at rest, and a task every five minutes sends the reminders and wakes the app if it has fallen asleep.

    alwaysdata · Node.js · PostgreSQL

  2. 02

    A hospital sign-in

    One-click sign-in with Google, Microsoft or the hospital’s SSO, with no paid identity service. No account is opened on the sole strength of an address a provider sent: linking two accounts takes the password.

    OpenID Connect · PKCE

  3. 03

    A fairness table in the open

    Each intern’s shifts counted by type, Fridays, weekends and public holidays apart, astreintes separate, over the internship semester or any other period. Public holidays are computed automatically, Easter and Alsace-Moselle included.

  4. 04

    The option to add reminders

    Each intern chooses when to be told, the day before, an hour before or a week before: a notification arrives on the phone, even with the app closed, and the same reminders follow the shifts into the personal calendar, updated automatically.

    Web Push · iCalendar

  5. 05

    An export ready for HR

    An Excel file in three sheets, every shift, the summary by intern and the planning day by day, or a CSV that can be opened straight in French Excel.

    ExcelJS

  6. 06

    Protected data

    Passwords and sessions stored hashed, sign-in attempts limited, no health data, and a privacy page that tells the interns what data is kept, for how long, and which rights they have.

    scrypt · GDPR

  7. 07

    Easy deployment and upkeep

    The hosting is set up in three commands, every change is checked against a real PostgreSQL database then deployed and tested online automatically, and the database migrations apply themselves at start-up.

    GitHub Actions · Vitest · Drizzle

A perspective drawing of a month’s planning, November 2026: one square a day, and on each square a shift as a block, as tall as the shift is long, 24 or 12 hours, Saturday’s astreintes hatched, and a phone lying beside. Depending on the step: the department’s code and the SSO on the phone’s screen; a shift of the intern’s, of a co-intern, an empty square; selected days; a shift passed to a co-intern; the shifts stacked by intern, the astreintes left apart; a notification; an export sheet in three tabs; Saturday’s column and the public holidays.

How it works

  1. Scroll: the drawing follows.

  2. 01 / 08

    Join the department

    The intern enters the department’s code, or opens the invite link a co-intern shared, then creates an account with an email address, or in one click with Google, Microsoft or the hospital’s SSO. If a record already existed under that name, the app asks “C’est vous ?” (is it you?) and attaches the shifts already entered. From one semester to the next, the same account joins a new department.

  3. 02 / 08

    Read the planning

    The planning is a calendar of the month: a blue square for the intern’s own shift, light blue for a co-intern, empty when nobody is on call. A sideways swipe changes the month, and tapping a day shows who is on call, with the type and the hours. Offline, the last planning loaded stays readable.

  4. 03 / 08

    Enter shifts

    To enter a month at once, the intern taps the days, picks one type, a 24-hour shift, a night or a day, and saves them all in one go. Entries work for a co-intern too, and “Effacer” (clear) removes shifts the same way.

  5. 04 / 08

    Swap a shift

    Tapping a day opens the day’s sheet. From there, a shift changes type, goes, or passes to a co-intern in a swap, unless that co-intern is already on call that day.

  6. 05 / 08

    Check the fairness

    To keep the share fair, the fairness table counts each intern’s shifts, by type, along with Fridays, Saturdays, Sundays and public holidays, over the internship semester, the month, the year or all time. Astreintes, the days on call from home, are counted apart. Everyone sees at a glance who has done the most, so the next ones are shared out fairly.

  7. 06 / 08

    Never miss a shift

    The intern chooses when to be told, the day before, an hour before or a week before, and gets a notification on the phone, even with the app closed. The shifts also show in the usual calendar, on iPhone, Google or Outlook, and update there by themselves.

  8. 07 / 08

    Export for HR

    At the end of the month, an intern exports the department’s shifts for HR: an Excel file listing every shift and every astreinte with the duration and the holidays, then a summary by intern and the planning day by day. A CSV that can be opened straight in French Excel is offered too.

  9. 08 / 08

    Set up the department

    The shared settings sit on a page marked as common to the whole department: the shift types, the days on call, Saturday by default, the list of interns and the public holidays, computed by themselves, Alsace-Moselle included. At the end of a semester, an intern who leaves is marked “parti·e” (left): the shifts done still count, without cluttering the table of the semesters after.

Specifications

Collection
Personal products
Date
2026
Context
A personal project, for medical interns.
Role
Design and development
Built with
SvelteKit · PostgreSQL · Drizzle · OpenID Connect · Web Push · ExcelJS · alwaysdata
Platforms
iPhone · Android · Web