# Portmon

SaaS web application and REST API for monitoring open network ports on the IP addresses a company registers. It shows each address with its ports, port states and last scan time, a metrics panel and a feed of recent changes. Access is split between vendor and company roles, and a Stripe subscription with a free trial unlocks the product for a company.

- **Facts:** 2025, Built for a client, Completed, role: Lead developer
- **What I did:** I led 1 other developer. I did the estimate and the architecture and built about half of the project: the full-stack Next.js app. The other developer built the separate Node.js back end.
- **Scope:** fullstack
- **Domain:** security
- **Stack:** TypeScript, Next.js, React, Koa, Prisma, PostgreSQL, Tailwind CSS, TanStack Query, Turborepo, Stripe, REST APIs, Webhooks, Zod, React Hook Form, TanStack Table, TanStack Virtual, Arcjet, Motion, Recharts, T3 Env, nuqs, React Compiler, dotenvx, Radix UI, shadcn/ui, Axios, date-fns, OpenAPI, pnpm, ESLint, Prettier, GitHub Actions, Figma, Docker
- **Page:** https://sergey-petrinich.vercel.app/work/portmon

Capabilities:

- Infinite table of IP addresses with cursor paging, virtualized rows and expandable rows for addresses with several ports
- Search, port state and time range filters, sorting and page size kept in the URL
- Add, edit, delete and restore of an IP address
- Side panel with a chart of ports by state, the total of addresses, changes of the last 24 hours and a feed of the latest port changes
- Four roles with one permission matrix for the API and the interface
- Company list with user, address and open port counts, and activate and deactivate
- User list with status tabs and a role filter, and editing of name, company and roles
- Permissions screen showing which of 12 permissions each role has
- Stripe Checkout with a 7-day trial on the first purchase and prices read live from Stripe
- Webhook that stores the subscription end date and locks the app when it passes
- Profile edit, password change, light and dark theme, and a command palette search

Back to the [work archive](https://sergey-petrinich.vercel.app/work.md) · [CV](https://sergey-petrinich.vercel.app/cv.md) · [all of it in one file](https://sergey-petrinich.vercel.app/llms-full.txt)
