Case study · N3XUS Eventos

From quote to signed contract, in one system.

Management system for DJ, sound and lighting production companies: quotes, contracts with electronic signatures, billing, playlists, technical checklists and inventory.

N3XUS Eventos dashboard with fictitious demo dataSample data
Type
Our own product · multi-tenant SaaS
First commit
Live at
eventos.n3xus.dev
Code
Private repository
Stack
  • React 19
  • Vite 8
  • TypeScript
  • Express 5
  • Zod
  • Supabase self-hosted
  • Postgres
  • Puppeteer
  • Bun
  • Coolify
  • Sentry

The problem

N3XUS is also a sound and DJ production company. The system started in August 2026 as the internal dashboard for that operation, to take quotes, contracts and billing out of spreadsheets and scattered chats.

Since September 10, 2026 the same product is sold as SaaS: any production company signs up on its own, gets a 14-day trial and uses the system with its own logo and color. N3XUS remains its first company user.

The challenge: the production company’s client (whoever books the event) also uses the system, with no login. They approve the quote, pay and sign through a link, and those links must be secure and keep working even if the production company is late on its subscription.

What we built

The whole life cycle of an event.

From the first quote to the checklist on the day, with the client taking part through a link.

  • Quotes approved by link

    Versioned quotes, a PDF in the production company’s brand and a public link where the client approves or declines.

  • Payment in two parts

    Approving the quote creates the 50% deposit; the balance is charged whenever the team wants. Pix and card through InfinityPay’s checkout, confirmed by webhook with a double check.

  • Contracts with two signatures

    The production company signs while logged in and the client signs by link, after accepting the privacy policy. Optional ICP-Brasil A1 certificate, with a PAdES signature on the PDF.

  • Inventory without double booking

    Equipment booked per event, with the schedule conflict check done in the database, under a lock.

  • Playlists and checklists

    Tracks imported from Spotify, marked as required or do not play, and a technical checklist of the venue with photo evidence.

  • Role-based team

    Admin, operator, DJ and technician. DJs and technicians only see the events they are assigned to.

N3XUS Eventos contracts screen with fictitious demo dataSample data

Architecture and security

Isolation in the database, not just on screen.

Each company sees only its own data because Postgres filters it, not because the interface hides it.

  • SPA

    React 19 with Vite talks directly to Supabase. Company and role travel inside the JWT, written by an Auth Hook at login.

    React 19 · Vite
  • BFF

    Express 5 handles whatever needs a secret or the real IP: PDFs with Puppeteer, signing, public links, payments, invitations and Spotify. Validation with Zod, Helmet and rate limiting on public routes.

    Express 5 · Zod
  • Database

    RLS on every domain table. Critical writes go through SECURITY DEFINER functions that check the company and its suspension. Suspension applies in the BFF and in the database, but never takes down the end client’s links.

    Postgres · RLS
  • Secrets and LGPD

    A1 certificate encrypted with AES-256-GCM, in a table users cannot access. Privacy consent checked on the server, a consent log and client anonymization.

    AES-256-GCM · LGPD
$ curl -sI https://eventos.n3xus.dev/
HTTP/2 200
content-security-policy: default-src 'self'; script-src 'self' https://sdk.scdn.co;
  object-src 'none'; base-uri 'self'; form-action 'self';
  frame-ancestors 'none'
permissions-policy: geolocation=(), microphone=(), camera=()
x-frame-options: DENY
x-content-type-options: nosniff
Headers measured in production on October 18, 2026.

Results

Numbers you can check.

Database migrationsversioned schema, RLS and functions
67
Test filesVitest and Testing Library
39
Roles under RLSadmin, operator, DJ and technician
4
Public pages by linksign-up, invitation, quote, payment and signature
6

Repository counts on October 18, 2026. Screenshots use fictitious demo data.

What went wrong

What went wrong and how we fixed it.

An honest record of the problems we hit along the way. It is what teaches the most.

  • A security rule lived only in the repository.

    The migration that enforces suspension in RLS was in the code and in the local environment, but had not been applied in production. The check is now done by querying the database directly, not by reading the docs.

  • The password reset email pointed to an internal address.

    The authentication service was configured with the address from inside the network, so the email link did not open from outside. Fixed on October 17, 2026 and checked from outside the network.

  • Preview bots used up the invitation.

    Messaging apps open the link to build the preview, and the token was consumed on that visit. Since October 18, 2026 the password and invitation link is only validated on click.

Tell us the problem. You talk directly to the people who build.

contato@n3xus.dev

Email reply within 2 business days. The first conversation is free, and the proposal arrives in writing before any charge.

Thiago RangelFounder and lead engineer

Prefer the phone? (11) 2532‑8468 · other channels