In productionEcologic Engineering · Water treatment

Digital Logbook: operations software for ETP and STP plants

A production logbook for industrial water treatment — shift operations, rounds, sampling, maintenance and alerts for effluent and sewage treatment plants.

Role
Full-stack developer
Employer
Ecologic Engineering
Status
In production
Stack
React, NestJS, Prisma, PostgreSQL

Overview

Effluent treatment plants (ETPs) and sewage treatment plants (STPs) run in shifts. Operators take readings on rounds, collect samples for the lab, report equipment issues and hand over to the next shift.

Digital Logbook moves those records into one system, with role-based access for operators, lab staff and administrators. It covers shift sessions and handovers, operator rounds and process logs, sampling plans and a lab queue, issues and maintenance tickets, equipment and preventive maintenance, inventory, compliance exceptions, and reports.

The problem

A plant’s logbook is also its compliance record. When a sampling window is missed or preventive maintenance slips, the people responsible need to know while there’s still time to act — and the record has to show what happened on each shift.

What I built

  • Alerting: alert rules and notifications by email and web push, including an alert when a scheduled sampling window is missed.
  • The Asset Definition Studio, an admin tool for defining equipment templates — reading parameters, lifecycle states, physical asset instances, duty/standby interlock groups, alert-rule triggers and preventive-maintenance plans.
  • STP operations screens and shift-operation workflows across the React app and the NestJS API.

Architecture

A React client, with a service worker for push notifications, talks to a NestJS API that handles JWT authentication, role-based access control, request throttling, scheduled jobs and OpenAPI (Swagger) documentation. Data lives in PostgreSQL, accessed through Prisma; notifications go out by email and web push.

  1. Clients

    Operator web appReact · service worker
    Admin & lab viewsDefinition Studio · lab queue
  2. API

    NestJS APIJWT · RBAC · throttling
    Scheduled jobsSampling windows · alerts
  3. Data & alerts

    PostgreSQLPrisma ORM
    NotificationsEmail · web push
  1. Shift start
  2. Rounds & readings
  3. Sampling
  4. Handover
Architecture: a React operator app and a NestJS API over PostgreSQL, with scheduled jobs that raise email and web-push alerts.

Engineering decisions

  • Equipment as data. Assets are defined from templates with typed reading parameters, so a new plant or piece of equipment is configured rather than coded.
  • Scheduled checks for time-bound work. Scheduled jobs watch sampling windows and raise an alert when a sample is missed, instead of relying on someone to notice.
  • Alerts that reach people off-screen. Email and web-push notifications mean an operator or supervisor doesn’t have to be watching a dashboard to see a problem.

Evidence and status

Digital Logbook is in production. The codebase is private to Ecologic Engineering; its test suite runs on Vitest.

I can walk through the alerting design, the asset model and the shift workflow in an interview.

Contact

Want a walkthrough of Digital Logbook?

Email me and I’ll take you through the architecture and the decisions behind it.

Email Thanush