CML Kothamangalam
CML Kothamangalam
Registration, room allotment, live scoring, and automated ID card generator for the CML Diocesan Kalolsavam festival.

Event operations platform built with Next.js and Supabase for the Cherupushpa Mission League (CML) Diocese of Kothamangalam festival across 112 parish units and 8,000+ youth participants. Handles parish registrations, automated delegate ID card generation with Face-API.js portrait cropping, venue/room allocation, and live scoreboard tallies.


Manual registrations & badge prep across 112 parishes
Running a diocesan festival across 112 parishes involved manual registration sheets, cropping hundreds of participant photos by hand for ID badges, and manually tallying stage and literary competition points.

Automated Face-API ID studio & live scoreboard
Built a Next.js + Supabase platform with parish-level registration portals, an in-browser ID card studio using Face-API.js and HTML5 Canvas to auto-crop faces and batch-export print-ready PDF badges, and a live scoring engine that updates parish and regional (Mekhala) standings in real time.

In-Browser Face-API.js Badge Generator
System Core · Dynamic ID Generation Engine
const generateID = async (participant) => {
const canvas = document.createElement('canvas');
const ctx = canvas.getContext('2d');
const detections = await faceapi.detectSingleFace(img);
if (detections) {
const { x, y, width, height } = detections.box;
ctx.drawImage(img, x, y, width, height, PHOTO.x, PHOTO.y, PHOTO.w, PHOTO.h);
}
const dataUrl = await toPng(idRef.current, {
quality: 0.95,
pixelRatio: 2,
filter: (node) => node.tagName !== 'BUTTON'
});
return dataUrl;
};
Next Case Study