Electus is a state-of-the-art Applicant Tracking System (ATS) designed to modernize the hiring process. Built for modern HR teams, Electus goes beyond simple keyword matching by implementing Retrieval-Augmented Generation (RAG) and Hybrid Semantic Search. It understands the context of a candidate's CV and matches them accurately to complex queries using vector embeddings and database-level cosine similarity.
- Database-Driven Hybrid Semantic Search (RAG): Powered by Gemini Embedding (
gemini-embedding-2) and SQL-level cosine similarity scoring. Search for candidates using natural language (e.g., "Find a detail-oriented backend developer with leadership skills"). Combines vector similarity with full-text search directly in PostgreSQL for speed and memory efficiency. - In-Memory Automated CV Processing: Instantly extracts text from uploaded PDFs (via
unpdf) and DOCX files (viamammoth) directly in-memory with zero network overhead, then generates an AI Summary, Skills Extraction, and Holland Code (RIASEC) personality assessment for every candidate with Gemini. - Unbiased Hiring (Blind Screening): A built-in toggle to hide candidate names and photos, promoting objective and equitable talent acquisition.
- Smart Dashboard Analytics: Real-time metrics and talent pool insights (Hiring Pipeline, Skill Distribution, Holland Code Distribution) calculated dynamically from the database and displayed in a responsive Bento-box layout.
- Liquid Glass UI: A highly polished, futuristic Glassmorphism interface with a WebGL-powered animated landing page that delivers a premium user experience.
- Bulk Management: Bulk delete tools (Delete All, Remove Duplicates, Clear by Status) with confirmation dialogs to prevent accidental data loss.
Frontend:
- React 18 / Vite
- TypeScript
- Tailwind CSS (Glassmorphism / Liquid Glass styling)
- Shadcn/UI
- Recharts (Analytics charts)
- Three.js (WebGL shader for landing page)
Backend (Modular Monolith):
- NestJS Modular Monolith (
electus-app) - TypeORM & PostgreSQL (native float array embeddings & SQL cosine similarity)
- Gemini API (CV analysis and embeddings)
- Mammoth (DOCX text extraction)
- unpdf (PDF text extraction)
Struktur kelas arsitektur backend Modular Monolith Electus:
classDiagram
%% Relations
CandidatesController ..> CandidatesService : uses
CandidatesController ..> EmailService : uses
CandidatesService ..> Candidate : manages (TypeORM)
CandidatesService ..> AiService : uses (in-memory)
CandidatesService ..> DocumentsService : uses (in-memory)
AuthController ..> AuthService : uses
AuthService ..> UsersService : uses
AnalyticsController ..> AnalyticsService : uses
%% Service Groups
namespace electus_backend_monolith {
class Candidate {
+string id
+string fullName
+string email
+string phone
+string reviewStatus
+string processingStatus
+string[] aiSummary
+string cvText
+string[] skills
+any hollandCode
+string education
+string experience
+string portfolioUrl
+boolean hasPortfolio
+number matchScore
+string cvFilePath
+number[] embedding
+Date createdAt
}
class CandidatesController {
-candidatesService: CandidatesService
-emailService: EmailService
+create(body: Partial~Candidate~) Promise~Candidate~
+uploadCv(file: Express.Multer.File) Promise~Candidate~
+search(query: string) Promise~Candidate[]~
+findAll() Promise~Candidate[]~
+findOne(id: string) Promise~Candidate~
+updateStatus(id: string, reviewStatus: string) Promise~Candidate~
+removeDuplicates() Promise~any~
+removeAll() Promise~any~
+removeByStatus(status: string) Promise~any~
+remove(id: string) Promise~any~
+sendInvite(id: string, body: any) Promise~any~
+getProcessingStatus(id: string) Promise~any~
+getCultureFit(id: string, target: string) Promise~any~
}
class CandidatesService {
-candidateRepository: Repository~Candidate~
-aiService: AiService
-documentsService: DocumentsService
+create(data: Partial~Candidate~) Promise~Candidate~
+findAll() Promise~Candidate[]~
+findOne(id: string) Promise~Candidate~
+updateStatus(id: string, reviewStatus: string) Promise~Candidate~
+remove(id: string) Promise~any~
+removeAll() Promise~any~
+removeByStatus(status: string) Promise~any~
+removeDuplicates() Promise~any~
+uploadCv(file: Express.Multer.File) Promise~Candidate~
+semanticSearch(query: string) Promise~Candidate[]~
+getCultureFit(id: string, targetStr: string) Promise~any~
}
class AiService {
+analyzeCv(cvText: string) Promise~CvAnalysis~
+generateEmbedding(text: string) Promise~number[]~
+cosineSimilarity(a: number[], b: number[]) number
}
class DocumentsService {
+extractText(file: Express.Multer.File) Promise~string~
}
class EmailService {
-transporter: nodemailer.Transporter
+sendInterviewInvite(candidateName: string, candidateEmail: string, jobTitle: string, interviewDate: string, hrName: string, customMessage: string) Promise~any~
}
}
┌──────────────┐ ┌───────────────────────────────────────┐
│ Frontend │───────▶│ electus-app (Modular Monolith) │
│ React/Vite │◀───────│ Candidates • Auth • Analytics • Users│
│ :5173 │ │ Documents Module • AI Module │
└──────────────┘ └──────┬──────────────────────┬─────────┘
│ │
▼ ▼
┌──────────────────┐ ┌─────────────────────────┐
│ PostgreSQL │ │ Gemini API │
│ Candidates DB │ │ llama3.1 + nomic-embed │
│ + Vector Search │ │ :11434 │
└──────────────────┘ └─────────────────────────┘
- Ingestion: CVs (PDF/DOCX) di-upload ke
electus-app→DocumentsModulemengekstrak teks langsung secara in-memory (tanpa overhead jaringan Base64) →AiModulemenganalisis data terstruktur dengan Gemini Flash-Lite (fallback Flash) dan membuat embedding dengan Gemini Embedding → data dan vektor embedding disimpan di PostgreSQL. - Retrieval & Ranking: Query HR dievaluasi langsung di PostgreSQL SQL menggunakan fungsi
cosine_similarity(c.embedding, :queryEmbedding)dan pencarian kata kunci dengan pembatasanLIMIT 50. Menghasilkan ranking kandidat akurat tanpa risiko kehabisan memori RAM di server.
- Node.js (v18+)
- PostgreSQL (v14+)
- Gemini API key in
electus-app/.env
After cloning, create electus-app/.env from electus-app/.env.example if the file does not exist. Fill in the PostgreSQL connection and GEMINI_API_KEY. The API uses port 3000 by default and the frontend uses port 8080.
Run from the repository root:
npm ci
npm run setup
npm --prefix electus-app run migration:run
npm run devOpen http://localhost:8080. After setup, daily development only needs npm run dev with PostgreSQL running.
PDF text extraction runs locally with unpdf, and DOCX extraction uses Mammoth. The backend sends extracted text to Google Gemini for analysis and embedding. Scanned PDFs without a text layer require OCR before upload.
CV analysis defaults to gemini-3.5-flash-lite and switches to gemini-3.8-flash on a failed analysis. Set GEMINI_MODEL or GEMINI_FALLBACK_MODEL in electus-app/.env to override either model. Older 768-dimensional vectors remain available through keyword search until re-embedded in the new 1536-dimensional format.
electus-project/
├── electus-app/ # Modular Monolith Backend (NestJS)
│ └── src/
│ ├── ai/ # Gemini API client & scoring
│ ├── analytics/ # Hiring dashboard metrics
│ ├── auth/ # JWT Authentication & guards
│ ├── candidates/ # Candidate domain, search & entities
│ ├── documents/ # In-memory PDF & DOCX text extraction
│ ├── notifications/ # Notification service
│ ├── users/ # User management & sessions
│ ├── app.module.ts
│ └── main.ts
│
├── electus-frontend/ # Frontend (React + Vite)
│ └── src/
│ ├── pages/ # Landing, Login, SignUp, Dashboard, Statistics
│ ├── components/ # Layout, Candidate cards, Modals, UI components
│ └── types/ # TypeScript interfaces
│
├── docs/ # Implementation plan & task tracker
│ └── tasks.md
│
├── start-electus.bat # Windows one-click launcher
├── start-backend.command # macOS/Linux launcher
└── README.md
cd electus-app
npm testBuilt with ❤️ for a smarter hiring future.