A beautiful, lightweight API that provides dates across three major calendars used in Morocco: ⴰⵎⴰⵣⵉⵖ Amazigh (Berber) 🏔️, Gregorian 📅, and Islamic (Hijri) 🌙. Built with Hono ⚡ and Bun 🥟 for blazing-fast performance 🚀.
# 🗓️ Moroccan Time API 🇲🇦
A powerful API that provides accurate date conversions between **Gregorian**, **Islamic (Hijri)**, and **Amazigh (Berber)** calendars - all with support for Tifinagh script! ✨
---
## ✨ Features
- 🔄 **Real-time Date Conversion** - Convert any date between three calendar systems
- 🌙 **Islamic/Hijri Dates** - Powered by the Aladhan API for accurate Hijri dates
- ⵣ **Amazigh Calendar** - Julian-based calendar with Tifinagh script support
- 🕐 **Morocco Timezone** - All dates are calculated for Africa/Casablanca timezone
- 🚀 **Lightning Fast** - Built with Hono and Bun for edge performance
- 🌐 **Edge Ready** - Deploys seamlessly to Vercel
---
## 📡 API Endpoints
### 🏠 Base Endpoints
| Endpoint | Method | Description |
| ------------ | ------ | ------------------------------------- |
| `/` | GET | Welcome message |
| `/api/` | GET | HTML documentation with all endpoints |
| `/api/list/` | GET | JSON list of all available APIs |
---
### 📋 API Discovery
Get a complete JSON list of all available endpoints:
| Endpoint | Method | Description |
| ------------ | ------ | ------------------------------------------------- |
| `/api/list/` | GET | Returns complete API documentation in JSON format |
**Example Response:**
```json
{
"name": "Moroccan Time API",
"version": "1.0.0",
"description": "API for converting dates...",
"endpoints": {
"base": {
"/api/": {"method": "GET", "description": "HTML documentation"},
"/api/list/": {"method": "GET", "description": "JSON API list"},
"/api/time/": {"method": "GET", "description": "Current Morocco time"}
},
"currentDate": {
"/api/date/": {"method": "GET", "description": "All three calendars today"},
"/api/amazigh/": {"method": "GET", "description": "Today's Amazigh date"},
"/api/gregorian/": {"method": "GET", "description": "Today's Gregorian date"},
"/api/islamic/": {"me …