Singlish Pro - Professional Transliteration Engine
A high-performance NPM package that brings seamless phonetic Sinhala typing to any modern web application.
Project Overview
Singlish Pro is a developer-focused, zero-dependency library built for high-performance transliteration. It uses a sophisticated buffer-based engine to handle complex phonetic clusters perfectly. 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 professional UI toggle and a stylized keyboard guide.
Key Features
Buffer-based accuracy for complex Sinhala clusters (e.g., 'nd', 'th')
Detailed implementation of this feature ensured optimal user experience and performance.
Zero-dependency, ultra-lightweight footprint for fast loading
Detailed implementation of this feature ensured optimal user experience and performance.
Plug-and-play UI toggle with professional keyboard guide modal
Detailed implementation of this feature ensured optimal user experience and performance.
Native framework support (React Hooks, Vue Composables, Angular Directives)
Detailed implementation of this feature ensured optimal user experience and performance.
Global shortcut support (Ctrl + Shift + S) for instant mode switching
Detailed implementation of this feature ensured optimal user experience and performance.
Comprehensive documentation with step-by-step integration guides
Detailed implementation of this feature ensured optimal user experience and performance.
Project Gallery





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 core class-based engine with a universal lifecycle API, allowing for easy wrapping into framework-specific 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.