Commit Graph

210 Commits

Author SHA1 Message Date
Ritesh Ghosh 54fe5389e1 feat: add global constants 2024-12-17 12:49:14 +05:30
Ritesh Ghosh da83048f90 feat(cache): add middleware to insert CACHE_CONFIG variable in request context 2024-12-07 21:14:36 +05:30
Ritesh Ghosh 5cd99fcc64 feat(cache): integrated Redis caching layer for endpoint responses 2024-12-07 21:13:16 +05:30
Ritesh Ghosh b7d036dbe2 feat(cache): add AniwatchAPICache class to implement API caching layer 2024-12-07 21:12:34 +05:30
Ritesh Ghosh db022185ef feat(server): add aniwatch variables types for type-safe req context variable access 2024-12-07 21:11:44 +05:30
Ritesh Ghosh 46f688ac12 Aniwatch API Version 2 (#66)
BREAKING CHANGE:

* chore: remove files that are not necessary for api v2

* test: update existing tests to use  pkg

* feat: organized aniwatch api envs and add more info about them

* feat: update tsconfig to include strict noUnsed params

* feat(api homepage): revamp api home page

* feat: update wani kuni image

* feat: add dot img

* feat: use hono cors

* feat: use hono rate limiter

* build: remove unnecessary deps, add ones needed and update description

* feat: add hianime routes and their handlers

* feat: update vercel deployment file

* docs: update logo and scraper docs, add envs section

* feat: update main server file

* feat: update peronal deployments caution section
2024-10-06 01:13:23 +05:30
Ritesh Ghosh 21a8718f87 feat: update allowed origins to include wildcard if env not present 2024-10-04 12:24:31 +05:30
Divyansh 91fd0918c3 Enhance CORS Configuration for Production Security
📌 Removed the wildcard (*) origin and replaced it with trusted origins from .env.

📌 Introduced environment variable (CORS_ALLOWED_ORIGINS) for dynamic origin management.

📌 Improved security by blocking untrusted origins and methods.

📌 Enhanced performance with maxAge for caching preflight responses.

📌 No breaking changes, as the fallback origin is set to http://localhost:4000 for development, ensuring compatibility with local setups.
2024-10-01 04:55:14 +00:00
Ritesh Ghosh c65d786673 feat: add jname field to Anime interface 2024-07-24 20:24:18 +05:30
WBRK-dev 94664abdfd fix: added japanese anime names to all responses 2024-07-21 10:39:17 +02:00
WBRK-dev 5d929461ce feat: added mostPopular, mostFavorite and latestCompleted to the home route response 2024-07-21 10:18:05 +02:00
WBRK-dev 62fa83a56d feat: added episode count to top airing anime 2024-07-21 10:04:33 +02:00
WBRK-dev bdfebb5e32 feat: added episode number to estimated anime schedule 2024-07-21 09:58:18 +02:00
WBRK-dev bf2c69e7ab fix: fixed tests regarding episode sources 2024-07-18 19:34:09 +02:00
WBRK-dev 4437ef24cc fix: fixed using specific server for episode sources 2024-07-18 17:39:03 +02:00
Ritesh Ghosh 041c0b7098 feat: add airingTimestamp and secondsUntilAiring to /anime/schedule endpoint 2024-07-14 00:09:22 +05:30
Ritesh Ghosh 3f0b367ae0 feat: add airingTimestamp and secondsUntilAiring to /anime/schedule endpoint 2024-07-14 00:09:11 +05:30
Ritesh Ghosh 68aba1d6bc refactor: update constants.ts with typed URLs 2024-07-14 00:07:55 +05:30
Ritesh Ghosh 8d82f44896 feat: update rate limit to 6 reqs every 30 mins 2024-06-11 10:37:32 +05:30
WBRK-dev 8ee9120a10 fix: crash on unencrypted sources in megacloud extractor 2024-05-02 12:55:10 +02:00
WBRK-dev 2f0157ab33 chore: removed unnecessary lines 2024-04-28 11:47:44 +02:00
WBRK-dev f6261199f8 feat: added characters and voice actors to /info endpoint response 2024-04-28 11:44:26 +02:00
WBRK-dev 8abde11e7b feat: added promotional videos to /info endpoint response 2024-04-28 11:25:12 +02:00
WBRK-dev ffebb03bc9 feat: added raw servers to /servers endpoint response 2024-04-28 10:30:10 +02:00
WBRK-dev a0d039ecc1 feat: added the ability to grab episode sources from raw servers in endpoint /episode-srcs 2024-04-28 10:26:39 +02:00
WBRK-dev 33bdd5adcd fix: regex key grabber 2024-04-21 13:17:26 +02:00
WBRK-dev 44d6ff5a11 feat: added new error message 2024-04-20 08:54:44 +02:00
Raze Viana 4682af675d fix: Removed unnecessary attributes from Anime interface 2024-04-13 19:26:43 +02:00
Raze Viana 55eaf06081 feat: added mal and anilist id to anime info endpoint 2024-04-13 00:21:31 +02:00
Ritesh Ghosh 79d0bdf05f feat(advancedSearch): add utility methods related to advanced search 2024-03-25 19:00:52 +05:30
Ritesh Ghosh be672c5422 refactor: update exports 2024-03-25 19:00:18 +05:30
Ritesh Ghosh ede94ab092 refactor: update exports 2024-03-25 19:00:07 +05:30
Ritesh Ghosh 68e4c70dd8 feat(advancedSearch): add advanced related constants 2024-03-25 18:59:54 +05:30
Ritesh Ghosh d6f9f0f665 feat(advancedSearch): add utility props to search response 2024-03-25 18:59:35 +05:30
Ritesh Ghosh 71f0905115 feat(advancedSearch): add helper types 2024-03-25 18:59:00 +05:30
Ritesh Ghosh 1c02c9cf4f feat(advancedSearch): add advanced search feature 2024-03-25 18:58:40 +05:30
Ritesh Ghosh fef106da27 feat(advancedSearch): feat: add search filter parsing 2024-03-25 18:58:09 +05:30
Ritesh Ghosh 8565619f3a feat: disabled ratelimit & dont_sleep for personal deployments 2024-03-12 22:57:39 +05:30
Ritesh Ghosh 870fae700b feat: add json rate limit response; replace max with limit 2024-03-12 22:54:09 +05:30
Ritesh Ghosh a4b08c435c feat: add explicit interval time for convenience 2024-03-03 23:12:13 +05:30
Ritesh Ghosh 4782a8dd70 feat: add axios config for future code reusability 2024-03-03 20:05:42 +05:30
Ritesh Ghosh a6f99bf681 feat: update rebranded domain name 2024-03-03 20:05:18 +05:30
Ritesh Ghosh eea621b17a feat: merge 'main' of https://github.com/ghoshRitesh12/aniwatch-api 2024-03-03 20:04:22 +05:30
Ritesh Ghosh 5562885184 feat: update rebranded domain name 2024-03-03 20:02:25 +05:30
Ayush Choudhary 3dc9d80d44 Added double quotes in fallback domain 2024-02-28 21:26:48 +05:30
Ayush Choudhary c3ee76a06b Added .env.example 2024-02-28 12:42:05 +00:00
Ritesh Ghosh dec2c427e2 refactor: update extractor imports 2024-02-26 01:05:20 +05:30
Ritesh Ghosh 74e9455890 feat: replace RapidCloud extractor for MegaCloud 2024-02-26 01:04:32 +05:30
Ritesh Ghosh c634f6e560 feat: add MegaCloud extractor 2024-02-26 01:04:02 +05:30
Ritesh Ghosh 3617c500d6 feat: update decrypt key src 2024-02-20 00:01:13 +05:30