← Projects

License Status Page

A React status page that shows software licences as a sorted countdown to expiry, with light and dark modes.

  • Role: Author
  • Year: 2023
  • Stack: React, JavaScript, Docker

A simple, self-hosted status page for keeping an eye on when licences run out.

How it works

The app reads a data.json list of licences, each with a start and expiry date. For every entry it works out the percentage of the term remaining and the number of days left:

const totalTime = expireDate.getTime() - startDate.getTime();
const remainingTime = expireDate.getTime() - today.getTime();
const daysLeft = Math.ceil(remainingTime / (1000 * 3600 * 24));

Entries are sorted soonest-to-expire first, tie-breaking on the percentage remaining, and drawn as bars. Ships with light and dark themes and runs in a Docker container.