Hey everyone!
I just released khmer-hybrid-calendar β a library that combines Gregorian and Khmer lunar calendars in one easy-to-use package.
Why I built it:
The Khmer calendar is an important part of Cambodian culture, used to determine holidays, religious observances, and traditional events. However, there weren't many modern, well-maintained libraries for developers to integrate this functionality into their applications. I created this to bridge that gap.
Key features:
β
Accurate Khmer lunar date conversion with moon phase emojis
β
Complete list of Cambodian national holidays and Buddhist observances
β
Support for Chinese lunar festivals (New Year, Mid-Autumn, etc.)
β
iCal feed generation for any year
β
Full TypeScript support with bundled declarations
β
Works in Node.js, browser, and React/Next.js applications
Example use:
typescript
import { KhmerCalendar } from 'khmer-hybrid-calendar';
const calendar = new KhmerCalendar();
const khmerDate = calendar.gregorianToKhmer(2026, 4, 13);
console.log(khmerDate.lunarDay); // "α‘α₯ααΎα"
I'd love to hear your feedback, ideas, or any questions you have!
π GitHub: https://github.com/hengloem/khmer-hybrid-calendar-package
π¦ npm: https://www.npmjs.com/package/khmer-hybrid-calendar













