#!/usr/bin/env node /** * Batch generator: creates tailored HTML CVs + PDFs + TSV entries for 10 YC companies. * Usage: node scripts/batch-generate.mjs */ import { execFileSync } from 'child_process'; import { existsSync, writeFileSync, readFileSync, mkdirSync, appendFileSync } from 'fs'; import path from 'path'; import { fileURLToPath } from 'url'; const __dirname = path.dirname(fileURLToPath(import.meta.url)); const ROOT = path.join(__dirname, '..'); const TEMPLATE = path.join(ROOT, 'templates', 'cv-template.html'); const OUTPUT = path.join(ROOT, 'output'); const TSV = path.join(ROOT, 'data', 'outreach.tsv'); const TODAY = new Date().toISOString().slice(0, 10); if (!existsSync(OUTPUT)) mkdirSync(OUTPUT, { recursive: true }); const COMPANIES = [ { name: 'Constant', role: 'Founding Engineer', recruiter: 'Ben Sender', email: 'ben@useconstant.com', summary: 'Cloud & Backend Engineer building high-scale serverless platforms with Java (Quarkus/Spring Boot), Angular, and AWS. Reduced cold-start latency by 60% and cloud OpEx by 65%.', pitch: 'I\'m a Cloud & Backend Engineer drawn to early-stage building at Constant. I led the migration of 17+ legacy apps to serverless AWS, cutting cold-start latency by 60% and cloud costs by 65% at BT Group. I designed a centralized auth system securing 45+ services and built Angular SPAs from scratch. As a Founding Engineer, I bring the full-stack versatility and infrastructure ownership your team needs.', angle: 'full-stack + founding engineer', }, { name: 'Narrative', role: 'Founding Engineer (Backend + AI)', recruiter: 'Suchit Dubey', email: 'suchit@trynarrative.com', summary: 'Backend & AI Engineer with hands-on RAG system expertise (Mistral 20B + FAISS) and production serverless platforms on AWS.', pitch: 'I\'m a Backend & AI Engineer who built production RAG systems with Mistral 20B and FAISS vector search, implementing end-to-end pipelines from embedding to generation. At BT Group, I built serverless platforms handling 5,000+ RPM and reduced cold-start latency by 60%. Narrative\'s AI-powered testing platform aligns perfectly with my experience combining backend infrastructure with LLM deployment.', angle: 'backend + AI infrastructure', }, { name: 'Reviving Mind', role: 'Founding Engineer', recruiter: 'Rahul Sharma', email: 'rahul@revivingmind.com', summary: 'Cloud & Backend Engineer specializing in secure, scalable serverless platforms and AI-powered systems.', pitch: 'I\'m a Cloud & Backend Engineer passionate about using technology for meaningful impact — Reviving Mind\'s mission to combat senior isolation through AI-driven collaborative care resonates deeply. I built high-reliability serverless platforms achieving 99.95% availability and LLM-powered recommendation systems. My experience designing secure, compliant infrastructure for enterprise deployments maps well to healthcare\'s requirements.', angle: 'healthtech + infrastructure + AI', }, { name: 'Wolfia', role: 'Software Engineer (Full-Stack, AI-Native)', recruiter: 'Naren Manoharan', email: 'naren@wolfia.com', summary: 'Full-Stack Engineer with AI-native development experience: LLM-powered RAG systems + Angular SPA + serverless AWS.', pitch: 'I\'m a Full-Stack Engineer who builds AI-native applications end-to-end. I deployed Mistral 20B locally on GPU with FAISS vector search for a production RAG recommendation engine and led a JSP-to-Angular SPA migration at BT Group. Wolfia\'s AI agents for security questionnaires is solving a real pain point — I\'d love to help scale it.', angle: 'full-stack + AI-native + low experience barrier (1+ yr)', }, { name: 'Whip', role: 'Founding Mobile Engineer (React Native)', recruiter: 'Agam Jain', email: 'agam@whip.run', summary: 'Full-Stack Engineer experienced in Angular/TypeScript frontend, AWS serverless backend, and building consumer-scale applications.', pitch: 'I\'m a Full-Stack Engineer who led a JSP-to-Angular SPA migration and built serverless platforms handling 45+ services at BT Group. While my frontend work is Angular rather than React Native, I bring deep component architecture, state management, and API integration experience. Whip\'s interactive AI mini-app platform is a fascinating consumer product — I\'m excited about the Bengaluru-based founding team opportunity.', angle: 'full-stack + Bengaluru + consumer product', }, { name: 'Allus AI', role: 'Founding AI Agent Engineer', recruiter: 'Shijie Wang', email: 'shijie.wang@allus.ai', summary: 'AI Engineer with production RAG/LLM deployment experience and distributed systems expertise on AWS.', pitch: 'I\'m an Engineer who combines AI deployment experience with production infrastructure. I built an end-to-end RAG pipeline with Mistral 20B + FAISS for real-time AI recommendations and deployed distributed systems on AWS with 99.95% availability. Allus AI\'s vision foundation model for manufacturing defect detection is tackling a hard, high-impact problem — I\'d contribute both AI and infrastructure depth.', angle: 'AI + infrastructure + manufacturing AI', }, { name: 'Sully.ai', role: 'Technical Lead', recruiter: 'Ahmed Omar', email: 'omar@sully.ai', summary: 'Cloud & Backend Engineer with platform security design expertise, team leadership, and enterprise-scale infrastructure.', pitch: 'I\'m a Cloud & Backend Engineer experienced in leading platform-wide initiatives — I designed a centralized auth system serving 45+ services, led the migration of 17+ apps to serverless, and mentored team members on CI/CD and security practices. Sully.ai\'s AI agents for hospital operations operate at the intersection of reliability and scale that I thrive in.', angle: 'technical leadership + platform engineering + healthcare AI', }, { name: 'SuperKalam', role: 'Mobile Engineer (React Native + Fullstack)', recruiter: 'Aseem Gupta', email: 'aseem@superkalam.com', summary: 'Full-Stack Engineer with Angular frontend expertise and scalable backend platforms on AWS.', pitch: 'I\'m a Full-Stack Engineer who led a JSP-to-Angular SPA migration and built serverless platforms on AWS at BT Group. While my frontend expertise is Angular, I bring strong component architecture, state management, and API design skills that translate directly to React Native. SuperKalam\'s AI-powered UPSC mentoring platform has meaningful scale potential in India\'s edtech space.', angle: 'full-stack + edtech + India market', }, { name: 'Convexia', role: 'Founding Engineer', recruiter: 'Rahul Vijayan', email: 'rahul@convexia.bio', summary: 'Cloud & Backend Engineer with distributed systems expertise, AI pipeline experience, and full-stack versatility.', pitch: 'I\'m a Full-Stack Engineer excited by Convexia\'s AI-maximalist approach to pharma — replacing manual drug diligence with AI agents. I built production-grade AI pipelines (LLM + vector search) and scaled serverless platforms to 5,000+ RPM at 99.95% availability. I\'ve taken end-to-end ownership of complex migrations and love building from scratch.', angle: 'AI agents + pharma + full-stack', }, { name: 'Hera', role: 'Founding AI Engineer', recruiter: 'Chia-Lun Wu', email: 'chia@hera.video', summary: 'Full-Stack & AI Engineer who built Angular SPAs, serverless backends, and LLM-powered recommendation systems.', pitch: 'I\'m a Full-Stack Engineer who built Angular-based SPAs and serverless platforms on AWS serving 45+ microservices. My AI work includes deploying Mistral 20B with FAISS for real-time recommendations. Hera\'s AI motion designer is transforming a creative workflow I find fascinating — automating the tedious while preserving creative control is exactly the kind of product challenge I want to solve.', angle: 'full-stack + AI + creative tools', }, ]; function escapeTsv(val) { if (val === null || val === undefined) return ''; const s = String(val); if (s.includes('\t') || s.includes('\n') || s.includes('"')) { return '"' + s.replace(/"/g, '""') + '"'; } return s; } function buildSummaryHtml(c, companySummary) { const location = ['Constant','Wolfia','Reviving Mind','Allus AI','Sully.ai','Convexia','Hera'].includes(c.name) ? 'Bengaluru, India (Remote)' : 'Bengaluru, India'; const linkedin = 'https://linkedin.com/in/rohan-p-h-876865250'; const portfolio = 'https://rohanph-cloud-engineer-75sm7wl.gamma.site'; return [ `