feat: initial project setup for AniKatoAPI

- Express.js server with Vercel deployment support
- Complete API endpoints for anikototv.to anime data
- Home, search, info, episodes, stream, schedule endpoints
- Category filtering and genre support
- Caching system with 5-minute TTL
- CORS configuration
- Public documentation page
- Docker and Render deployment configs
- MIT License
This commit is contained in:
Sʜɪɴᴇɪ Nᴏᴜᴢᴇɴ
2026-06-08 15:08:22 +05:30
commit 3815521b0d
47 changed files with 1846 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
const cache = new Map();
const CACHE_TTL = 5 * 60 * 1000;
const getCache = (key) => {
const item = cache.get(key);
if (item && Date.now() - item.timestamp < CACHE_TTL) {
return item.data;
}
cache.delete(key);
return null;
};
const setCache = (key, data) => {
cache.set(key, { data, timestamp: Date.now() });
};
const clearCache = () => {
cache.clear();
};
export { getCache, setCache, clearCache };