Skip to content

TUPSAFE

Digital PDS and SALN filing for TUP Manila, with AI document search and compliance tracking.

Category
Web
TUPSAFE e-PDS overview dashboard with metric cards for total submissions, pending reviews, needs revision, and approval rate, above a quick actions panel with a revise rejected submissions alert.

Overview

TUPSAFE (TUP System for Automated Filing and e-Compliance) began as a thesis research project. It is a Turborepo monorepo with two portals. In the Employee Portal, staff fill in their PDS and SALN and apply for open positions. In the Admin Portal, HR reviews submissions, tracks compliance and runs recruitment. Its AI features, an assistant for compliance questions and document search, use LangChain, OpenAI embeddings and Pinecone. The system generates government-standard PDFs, limits access by role and sends real-time notifications. It runs in Docker on AWS EC2 behind Nginx, with CI/CD through GitHub Actions.

What it does

  • Dual-portal monorepo architecture (Employee + Admin) with Turborepo
  • CSC-compliant PDS and SALN digital forms with PDF generation
  • AI-powered compliance assistant using LLM integration
  • Role-based access control (Applicant, Employee, Supervisor, HR, Admin)
  • Recruitment workflow with job posting, application, and hiring pipeline
  • Production deployment on AWS EC2 with Docker, Nginx, and GitHub Actions CI/CD

Architecture

  1. Portals

    • Employee Portal
    • Admin Portal
  2. Application

    • Next.js 15
    • Turborepo monorepo
  3. Services

    • AI compliance assistant
    • AI document search
    • PDF generation
    • Real-time notifications
  4. AI and data

    • LangChain
    • OpenAI Embeddings
    • Pinecone
    • PostgreSQL
    • Supabase
    • Redis
  5. Infrastructure

    • Docker
    • AWS EC2
    • Nginx
    • GitHub Actions CI/CD

Built with, 16

  • Next.js 15
  • React 19
  • TypeScript
  • Tailwind CSS
  • PostgreSQL
  • Drizzle ORM
  • Supabase
  • Redis
  • Python
  • FastAPI
  • LangChain
  • Pinecone
  • OpenAI Embeddings
  • Docker
  • AWS EC2
  • Nginx

Screens, 4

  • TUPSAFE employee profile page showing a photo, name, Assistant Professor II title and employee ID badges, followed by personal information and employment detail rows.
  • TUPSAFE create SALN statement wizard on step 1 of 7 with a progress bar and step tabs for declarant info, real properties, personal properties, liabilities, and business.
  • TUPSAFE PDS submissions page with approved and rejected counters, a search field with status and sort filters, and a submission record flagged rejected with view, edit, and resubmit actions.
  • TUPSAFE settings page with a theme card offering light, dark, and system display modes, and a security card with password fields and a two-factor authentication toggle.