Ohm Sweet Ohm IT SupportAbout

Demo data resets every night.

Tomorrow Industries presents

Introducing the Ohm Sweet Ohm 3000!

The help desk of tomorrow, today!

A working IT help desk, built as a portfolio project by Shane Folk. Employees file tickets; technicians assign, update, and resolve them. Built with Next.js, PostgreSQL, and Vercel.

Look at all these features!

Take it for a spin

Three steps, about two minutes. No sign-up needed.

  1. Step 1: Be the employee

    Log in as Penny from HR and file a ticket about anything that's on the fritz.

  2. Step 2: Be the technician

    Switch to Rex from IT (the “Viewing as” switch works too). Open Penny's ticket, assign a tech, and mark it resolved.

  3. Step 3: Check the mainframe

    Every step you just took is waiting in the amber activity log.

Spec sheet · Model OSO-3000

Under the hood

For the engineers in the audience: what it's built with and how it stays safe.

Framework
Next.js 16 (App Router, TypeScript): pages and API routes in one app
Database
PostgreSQL on Neon, queried with plain parameterized SQL (no ORM)
Hosting
Vercel, with a nightly Vercel Cron job that resets the demo
Sign-in
Signed JWT (jose) in an httpOnly cookie; passwords hashed with bcrypt
Validation
Zod schemas on every request body, shared with the browser forms
Styling
Tailwind CSS v4 with a custom “Atomic Age Appliance” theme

What happens on every request

  1. proxy.ts. Sends logged-out visitors to the login page before any page loads (a convenience, not the lock).

  2. Session and role check. Is the signed cookie valid? Is this role allowed here? If not: 401 or 403.

  3. Rate limit. Too many requests this minute? 429, try again shortly.

  4. Zod validation. Is the request body the right shape and size? If not: 400 with the reason.

  5. Data layer. Is this ticket yours, or are you IT? If not: 404, so other people's tickets stay invisible.

  6. PostgreSQL. Only parameterized SQL ($1, $2), so typed text can never become a command.

The database

Seven PostgreSQL tables. Lengths and allowed values are enforced by the database too, not just the app.

departmentsPKidserialnametext, uniquecreated_attimestamptzusersPKidserialfirst_nametextlast_nametextemailtext, uniquepassword_hashtextroleemployee | it_staffFKdepartment_id→ departmentscreated_attimestamptzticketsPKidserialtitletext, 3–120descriptiontext, ≤ 2000prioritylow … criticalstatusopen … closedFKdepartment_id→ departmentsFKsubmitted_by→ usersFKassigned_to→ userssubmitter_ip_hashtextcreated_attimestamptzupdated_attimestamptzticket_assignmentsPKidserialFKticket_id→ ticketsFKassigned_to→ usersFKassigned_by→ usersassigned_attimestamptzticket_notesPKidserialFKticket_id→ ticketsFKuser_id→ usersnotetext, 1–1000created_attimestamptzactivity_logsPKidserialactiontextuser_idintticket_idintdetailstextdetails_jsonjsonbcreated_attimestamptzno foreign keys: history outlives deleted ticketsrate_limitsPKkeytextPKwindow_starttimestamptzcountintone counter per key per minutePKprimary keyFKforeign key (→ the table it points to)one-to-many

Seven tables. A department has many users and many tickets. A user submits many tickets and is assigned many tickets. A ticket has many assignment-history rows and many notes. Activity logs and rate limits stand alone.

Every table from db/schema.sql. Deleting a ticket also deletes its notes and assignment history; the activity log keeps its record.

Security features

  • Who did what (ticket owner, note author, log entry) always comes from the session, never the form.
  • Password hashes never leave the server, and login errors never say whether the email exists.
  • Security headers block framing (clickjacking) and content-type guessing.
  • The nightly reset route only answers to a secret that Vercel holds.
  • Demo visitors are told apart by a one-way hash of their IP, never the IP itself.

Spam limits

ActionLimitCounted
Log in (password or demo)5 per minute eachper IP address
Create a ticket5 per minuteper user
Add a note10 per minuteper user
Any other change30 per minuteper user
Open tickets10 at a timeper user (per visitor on demo accounts)
Notes20per ticket
Whole demo300 tickets, 1,000 notesuntil the nightly reset

Built by Shane Folk

Designed and built from the database up: schema, API, permissions, security, and every starburst.

My next goal is building a storefront with a product showcase home page.