Back to Portfolio

Singlish Pro - Phonetic Sinhala Transliteration Library

A high-performance NPM package that brings seamless phonetic Sinhala typing to any modern web application.

Category
Developer Tools & NPM Packages
Year
2026
Duration
1 Month
Singlish Pro - Phonetic Sinhala Transliteration Library

Project Overview

Singlish Pro is a developer-focused, zero-dependency library built for fast Sinhala typing on the web. It uses an optimized buffer parser to handle complex phonetic character clusters accurately. With native support for React, Next.js, Vue, and Angular, it enables developers to add Sinhala input capabilities to their apps in minutes, complete with a clean UI toggle and a visual keyboard guide.

Key Features

Buffer-based accuracy for complex Sinhala clusters (e.g., 'nd', 'th')

Zero-dependency, ultra-lightweight footprint for fast loading

Plug-and-play UI toggle with professional keyboard guide modal

Native framework support (React Hooks, Vue Composables, Angular Directives)

Global shortcut support (Ctrl + Shift + S) for instant mode switching

Comprehensive documentation with step-by-step integration guides

Challenges & Solutions

Real-time Phonetic Parsing

Achieving zero-latency transliteration while handling multi-character sequences.

Implemented a custom buffer logic that matches keystrokes against an optimized phonetic tree, ensuring instant feedback without UI blocking.

Framework Agnosticism

Creating a single source of truth that works across disparate frontend ecosystems.

Engineered a framework-agnostic core library with a universal lifecycle API, allowing for easy integration with framework abstractions like Hooks and Composables.

UX for Sinhala Typing

Making phonetic typing intuitive for users while providing quick access to mapping guides.

Designed a sleek, floating UI toggle and a modern 'Keyboard Layout' modal that acts as a real-time reference for complex characters.

Engineering Write-ups & Architecture

Next Project

FoodyMuse - AI Culinary Publishing, SEO & Video Studio

FoodyMuse - AI Culinary Publishing, SEO & Video Studio

An AI-native culinary publishing platform and growth engine featuring Trends Intelligence, multimodal fridge-to-recipe generation, 5-language SEO localization, automated Pinterest 2:3 pin synthesis, and Google Veo / Runway 9:16 video reel pipelines.

View Project