← Build log

Mar

March 2025: DomainCal, from a domain list to expiry alerts

DomainCal

DomainCal

March took DomainCal from a sign-up form to something that does its job.

Real dates. The backend got a proper structure: models, services and controllers. Signed-in users see their domains, and whatever you paste is normalised, with URLs cleaned up and subdomains stripped using the Public Suffix List to find the registrable domain. Each domain then gets its expiry date and registrar from WHOIS, and its own refresh, reworked around a shared API client and one response shape.

Coping with WHOIS. WHOIS data is messy, so the lookups had to get defensive:

  • The refresh cooldown depends on the last result: 24 hours after a good lookup, but only 5 seconds after a failed one, so a retry is immediate.
  • A lookup gives up after 10 seconds instead of hanging.
  • Expiry dates are pulled out of more formats, and domains whose registrar can’t be found are handled.

Sign-in got sturdier along the way: adding a domain before you have an account works, and so does login in a private window.

Doing the job. The month ended with email verification, so nothing is sent to an unconfirmed address. In the first days of April came the expiry alerts: a scheduled job emails you 14 days, 7 days and 1 day before a domain expires, in batches, with the warning worded by how close the expiry is.