Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
456 commits
Select commit Hold shift + click to select a range
cdbb8e8
cleanup
riimuru Dec 10, 2022
cec6e60
chore(deps): lock file maintenance
renovate[bot] Dec 12, 2022
a56382e
chore(deps): lock file maintenance (#223)
renovate[bot] Dec 14, 2022
2128af1
Add genres to gogoanime route (#224)
wearrrrr Dec 14, 2022
baab34e
chore(deps): lock file maintenance (#226)
renovate[bot] Dec 15, 2022
aac2f2c
Update Crunchyroll token every hour (#227)
enimax-anime Dec 15, 2022
6ab19ee
fix(deps): update dependency axios to v1
renovate[bot] Dec 15, 2022
929ee67
chore(deps): lock file maintenance
renovate[bot] Dec 19, 2022
c8de4e9
fixed issue relating to anime id being too long (#232)
TDanks2000 Dec 20, 2022
8f1beba
anilist caching (#231)
illusionTBA Dec 20, 2022
2642a70
fix cache, pages not being stored (#233)
TDanks2000 Dec 20, 2022
59ffbc9
cache more anilist routes
riimuru Dec 22, 2022
56bb709
fix issues where caching not returning correct episode info
erikbdev Dec 22, 2022
6ccfbe9
fix issue where a change in anilist meta might interfere with other r…
erikbdev Dec 23, 2022
0c7b20f
Deploy to vercel button (#235)
parnexcodes Dec 25, 2022
92d35a4
BYE AnimixPlay, switch consumet/extensions to git
Dec 25, 2022
4a13691
remove unused console log
Dec 25, 2022
4cae971
Merge pull request #236 from TDanks2000/main
erikbdev Dec 25, 2022
ee2575f
add trending route to flixhq (#237)
illusionTBA Dec 25, 2022
f82b6b9
chore(deps): lock file maintenance
renovate[bot] Dec 26, 2022
f7f1a23
chore(deps): lock file maintenance
renovate[bot] Dec 26, 2022
97034aa
refactor fastify path structure
riimuru Dec 26, 2022
c9a656c
fix gogoanime routes
riimuru Dec 26, 2022
51fada4
fix anilist advanced search
riimuru Dec 26, 2022
da489a6
add TMDB to api (#242)
illusionTBA Dec 29, 2022
e495633
Make the `type` query param required on tmdb info (#244)
illusionTBA Dec 29, 2022
adbfd51
Revert "fix(deps): update dependency chalk to v5" (#245)
erikbdev Dec 29, 2022
9936d16
Add server param to anilist watch route
riimuru Dec 29, 2022
d78ade7
chore(deps): lock file maintenance
renovate[bot] Jan 2, 2023
50d5382
Return providers with their corresponding status and info. (#251)
erikbdev Jan 3, 2023
850e871
add mangapill & mangareader & the servers route on flixhq (#252)
illusionTBA Jan 6, 2023
72a02f5
add missing movie and monga providers (#255)
illusionTBA Jan 8, 2023
143e774
fix kamyroll
riimuru Jan 8, 2023
456fce0
chore(deps): lock file maintenance
renovate[bot] Jan 9, 2023
8dadde2
Added todo, restart server for kamyroll
erikbdev Jan 10, 2023
c284961
bump consumet ver (#261)
TDanks2000 Jan 14, 2023
aa99bfb
bump cs ver (#262)
TDanks2000 Jan 14, 2023
ed459f3
Update package.json
TDanks2000 Jan 14, 2023
0e93e93
Update package.json
illusionTBA Jan 14, 2023
4699085
fix(deps): update dependency @consumet/extensions to v1.3.2 (#264)
renovate[bot] Jan 14, 2023
680d315
Update package.json
celymyst Jan 14, 2023
b1348f9
chore(deps): lock file maintenance
renovate[bot] Jan 16, 2023
aa7fb4d
Update package.json
celymyst Jan 17, 2023
fabf830
Update package.json
celymyst Jan 17, 2023
20ae65e
Update package.json
celymyst Jan 17, 2023
d940eed
kamyroll now is their own provider
erikbdev Jan 17, 2023
63515fe
Added Cronchy as Crunchyroll
erikbdev Jan 17, 2023
2beef7b
fix Chayce errors for m3u8 proxy (#274)
TDanks2000 Jan 20, 2023
c6e47ec
fix shift error (#276)
TDanks2000 Jan 20, 2023
63ced94
chore(deps): lock file maintenance
renovate[bot] Jan 23, 2023
632ad71
bump consumet.ts version to 1.3.3
erikbdev Jan 23, 2023
fe67266
Update gogoanime.ts
TDanks2000 Jan 23, 2023
00fa482
bump @consumet/extensions to 1.3.4
erikbdev Jan 24, 2023
af5d276
👺 bye, kamyroll! remove all references... (#282)
aidanjuma Jan 26, 2023
435f8c2
chore: bump @consumet/extensions to v1.3.5
riimuru Jan 28, 2023
6c669dd
chore(deps): lock file maintenance
renovate[bot] Jan 30, 2023
535e7eb
chore: bump @consumet/extensions to v1.3.6 (#289)
TDanks2000 Jan 30, 2023
2189b0f
Bump docker/build-push-action from 3 to 4
dependabot[bot] Jan 31, 2023
a748bd5
Bump @consumet/extensions from 1.3.6 to 1.4.0 (#299)
dependabot[bot] Feb 4, 2023
38c61f6
chore bump consumet version to 1.4.1 (#302)
TDanks2000 Feb 5, 2023
485b5e0
chore(deps): lock file maintenance
renovate[bot] Feb 6, 2023
46b66d3
chore(deps): lock file maintenance (#308)
renovate[bot] Feb 10, 2023
86bd9b5
chore(deps): lock file maintenance (#309)
renovate[bot] Feb 11, 2023
aa89f36
added marin
celymyst Feb 11, 2023
55aec4f
added marin
celymyst Feb 11, 2023
6eef053
added recent episodes to marin
celymyst Feb 11, 2023
a6396e7
chore(deps): lock file maintenance
renovate[bot] Feb 13, 2023
6afad19
added ann and updated consumet to latest version (#315)
TDanks2000 Feb 14, 2023
9a331e9
Update package.json
celymyst Feb 14, 2023
34e6cc6
Update dependabot.yml
TDanks2000 Feb 15, 2023
1c8b736
Update package.json
TDanks2000 Feb 16, 2023
70673a4
chore(deps): lock file maintenance
renovate[bot] Feb 20, 2023
4761458
added caching to flix (#322)
TDanks2000 Feb 20, 2023
b042308
Update .env.example
TDanks2000 Feb 22, 2023
045e6e0
fix 9anime
riimuru Feb 23, 2023
ac08605
final final changes to make 9anime work (#329)
TDanks2000 Feb 25, 2023
a3ec1b1
update @consumet/extensions to v1.4.13 (#330)
TDanks2000 Feb 25, 2023
c113532
9anime is ready for take off... (#332)
TDanks2000 Feb 26, 2023
7c97217
Delete LICENSE
riimuru Feb 26, 2023
15f645d
Create LICENSE
riimuru Feb 26, 2023
8d15ae4
9anime taking off again...
Feb 26, 2023
d980d05
fix: nineanime now works in meta/anilist route
erikbdev Feb 26, 2023
6fc6f12
chore(deps): lock file maintenance
renovate[bot] Feb 27, 2023
35cec67
remove isDub (#337)
TDanks2000 Feb 27, 2023
a2356c9
chore(deps): lock file maintenance
renovate[bot] Feb 27, 2023
80cfa13
Update .env.example
riimuru Mar 1, 2023
48de42c
Add Railway deploy button
riimuru Mar 1, 2023
fe21705
fix flixhq routes (#339)
illusionTBA Mar 1, 2023
ad1c0e2
chore(deps): lock file maintenance
renovate[bot] Mar 6, 2023
b05ab01
chore(deps): lock file maintenance
renovate[bot] Mar 13, 2023
7b2e329
Added fmovies (#352)
enimax-anime Mar 13, 2023
57c52d4
Update main.ts
TDanks2000 Mar 13, 2023
1da1f69
Added helper route (#354)
enimax-anime Mar 13, 2023
9fbe07a
vizcloud (#355)
enimax-anime Mar 13, 2023
1ab6b2e
9anime helper route: Cleaning up the response (#362)
enimax-anime Mar 16, 2023
a123e3f
9anime: Added custom actions (#365)
enimax-anime Mar 17, 2023
15910a0
Bump typescript from 4.9.4 to 5.0.2 (#364)
dependabot[bot] Mar 18, 2023
a484433
chore(deps): lock file maintenance
renovate[bot] Mar 20, 2023
501c8d0
fix marin
Mar 22, 2023
c9abb5b
Update fmovies.ts (#378)
enimax-anime Mar 25, 2023
80d55a1
chore(deps): lock file maintenance
renovate[bot] Mar 27, 2023
1e29a95
Utils: Added a route for keys (#391)
enimax-anime Apr 1, 2023
eb04a80
chore(deps): lock file maintenance
renovate[bot] Apr 3, 2023
4f683f6
chore(deps): lock file maintenance
renovate[bot] Apr 10, 2023
793b2b7
chore(deps): lock file maintenance (#395)
renovate[bot] Apr 10, 2023
db06827
chore(deps): update node.js to v19.9
renovate[bot] Apr 11, 2023
18b6407
fix issues
riimuru Apr 14, 2023
b32ea50
chore(deps): lock file maintenance
renovate[bot] Apr 17, 2023
99b7df6
chore(deps): lock file maintenance
renovate[bot] Apr 24, 2023
10b21b7
chore(deps): lock file maintenance
renovate[bot] Apr 30, 2023
d0507e8
shhhh secrets
TDanks2000 May 4, 2023
fc7e4cb
Update image-proxy.ts (#418)
Eltik May 6, 2023
f6a7410
chore(deps): lock file maintenance
renovate[bot] May 8, 2023
1c93930
Fix image-proxy and update package.json
Eltik May 8, 2023
78a905c
Merge pull request #423 from Eltik/main
aidanjuma May 8, 2023
f54bff9
Update index.ts
riimuru May 9, 2023
17e0f35
Add Nodejs CI
riimuru May 9, 2023
d0a0c50
Bump actions/setup-node from 3.5.1 to 3.6.0
dependabot[bot] May 9, 2023
7e66c4f
change Node.js CI branch from `master` -> `main`
riimuru May 9, 2023
1a1a621
fix builds
riimuru May 9, 2023
224bb66
chore: cleanup dependacies
riimuru May 9, 2023
2f87106
chore(deps): lock file maintenance
renovate[bot] May 15, 2023
9a26539
chore(deps): lock file maintenance
renovate[bot] May 22, 2023
6a63f28
Fix image-proxy.ts
Eltik May 26, 2023
31e0051
chore(deps): lock file maintenance
renovate[bot] May 29, 2023
9a667fd
Fix image-proxy.ts (#447)
Eltik Jun 1, 2023
b4673e0
Bump typescript from 5.0.2 to 5.1.3
dependabot[bot] Jun 2, 2023
6aa7499
chore(deps): lock file maintenance
renovate[bot] Jun 5, 2023
a1e9bc5
Bump @consumet/extensions from `fde6bca` to `266fee3`
dependabot[bot] Jun 9, 2023
2c97555
Bump @types/node from 18.16.16 to 20.3.1
dependabot[bot] Jun 13, 2023
f933156
chore (build): update packages)
riimuru Jul 24, 2023
693b144
added support for provider in episode fetching (#474)
zues-adi Jul 28, 2023
ee90743
chore(deps): update actions/setup-node action to v3.8.1
renovate[bot] Aug 17, 2023
a7c1fb2
chore(deps): lock file maintenance (#481)
renovate[bot] Aug 24, 2023
e218779
Fix `REDIS_NO_AUTH` and `TMDB` key problem (#484)
KuroXI Sep 1, 2023
b084aeb
chore(deps): file maintenance
riimuru Sep 3, 2023
130d4c9
Merge branch 'consumet:main' into main
Eltik Oct 17, 2023
3eab45a
feat: Switch from Enime -> Anify
Eltik Oct 18, 2023
cbe5fd1
Merge pull request #490 from Eltik/main
Eltik Oct 18, 2023
48b72bf
init demo
riimuru Oct 18, 2023
fe83008
yarn upgrade
riimuru Oct 18, 2023
6c75cb0
feat: Add DEMO env & CI/CD Pipeline
riimuru Oct 18, 2023
ae69676
chore(deps): update dependency nodemon to v2.0.22
renovate[bot] Oct 18, 2023
aca2dad
chore(deps): update dependency node to v12.22.12
renovate[bot] Oct 18, 2023
6ab033e
ci fix
riimuru Oct 18, 2023
de071de
Merge pull request #202 from consumet/renovate/node-19.x
Eltik Oct 19, 2023
8af7de0
Merge pull request #292 from consumet/dependabot/github_actions/docke…
Eltik Oct 19, 2023
e5caa01
Merge pull request #341 from consumet/renovate/nodemon-2.x
Eltik Oct 19, 2023
eb58893
chore(deps): update node.js to v20
renovate[bot] Oct 19, 2023
4aaf276
fix(deps): replace dependency fastify-cors with @fastify/cors ^7.0.0
renovate[bot] Oct 19, 2023
e51ff3d
Merge pull request #359 from consumet/renovate/fastify-cors-replacement
Eltik Oct 19, 2023
410ac50
fix(deps): update dependency typescript to v5.2.2
renovate[bot] Oct 19, 2023
12d0f6f
fix(deps): update dependency axios to v1
renovate[bot] Oct 19, 2023
4914df9
Merge branch 'renovate/node-20.x'
Eltik Oct 19, 2023
708970d
Merge remote-tracking branch 'origin/dependabot/github_actions/action…
Eltik Oct 19, 2023
0af9ddd
Merge remote-tracking branch 'origin/dependabot/npm_and_yarn/consumet…
Eltik Oct 19, 2023
be072f1
fix(deps): update dependency @types/node to v18.18.6
renovate[bot] Oct 19, 2023
e0fefcc
Merge remote-tracking branch 'origin/dependabot/npm_and_yarn/types/no…
Eltik Oct 19, 2023
1f31c99
Merge remote-tracking branch 'origin/dependabot/npm_and_yarn/typescri…
Eltik Oct 19, 2023
b9b644d
fix(deps): update dependency ws to v8.14.2
renovate[bot] Oct 19, 2023
b59fcf5
Merge remote-tracking branch 'origin/renovate/actions-setup-node-3.x'
Eltik Oct 19, 2023
c79ed05
chore(deps): update actions/setup-node action to v3.8.1
renovate[bot] Oct 19, 2023
e1e8819
Merge remote-tracking branch 'origin/renovate/ws-8.x-lockfile'
Eltik Oct 19, 2023
d7da64e
Merge remote-tracking branch 'origin/renovate/actions-setup-node-3.x'
Eltik Oct 19, 2023
b321eb9
fix(deps): update dependency typescript to v5.2.2
renovate[bot] Oct 19, 2023
b24c037
Merge remote-tracking branch 'origin/renovate/typescript-5.x'
Eltik Oct 19, 2023
cb2f678
fix(deps): update dependency ws to v8.14.2
renovate[bot] Oct 19, 2023
63f1e64
Merge remote-tracking branch 'origin/renovate/typescript-5.x'
Eltik Oct 19, 2023
c5a98b3
chore(deps): update dependency nodemon to v3
renovate[bot] Oct 19, 2023
4f71785
Merge remote-tracking branch 'origin/renovate/ws-8.x-lockfile'
Eltik Oct 19, 2023
296e244
chore(deps): update dependency nodemon to v3
renovate[bot] Oct 19, 2023
f37330f
Merge remote-tracking branch 'origin/renovate/nodemon-3.x'
Eltik Oct 19, 2023
a1ab0ce
Merge remote-tracking branch 'origin/renovate/nodemon-3.x'
Eltik Oct 19, 2023
c4ff88d
Merge remote-tracking branch 'origin/renovate/node-18.x-lockfile'
Eltik Oct 19, 2023
77436a1
fix(deps): update dependency @types/node to v18.18.6
renovate[bot] Oct 19, 2023
a2dab19
Merge remote-tracking branch 'origin/renovate/node-12.x'
Eltik Oct 19, 2023
e881ff7
fix(deps): update dependency fastify to v4.24.3
renovate[bot] Oct 19, 2023
b6b0943
Merge remote-tracking branch 'origin/renovate/node-18.x-lockfile'
Eltik Oct 19, 2023
1d40b9b
Merge remote-tracking branch 'origin/renovate/fastify-4.x-lockfile'
Eltik Oct 19, 2023
f322900
Merge remote-tracking branch 'origin/renovate/axios-1.x'
Eltik Oct 19, 2023
35c6302
Merge remote-tracking branch 'origin/demo'
Eltik Oct 19, 2023
555a434
chore(deps): update dependency prettier to v3
renovate[bot] Oct 19, 2023
62f7ed2
Merge pull request #471 from consumet/renovate/prettier-3.x
Eltik Oct 19, 2023
41a2bed
dockerfile: NODE_ENV = PROD
riimuru Oct 19, 2023
ea82c58
fix: duplicate import, Updated README, and run lint (#499)
Layendan Oct 20, 2023
4454a9f
chore(deps): lock file maintenance
renovate[bot] Oct 23, 2023
f686f6b
chore(deps)
riimuru Oct 23, 2023
8fdfe90
chore(deps)
riimuru Oct 23, 2023
03750a0
fix Procfile
riimuru Oct 23, 2023
0ad441a
feat(anilist): Add perPage parameter to recent episodes (#518)
DevanAbinaya Nov 16, 2023
5c06e53
chore(build)
riimuru Nov 30, 2023
0b33db1
feat(gogoanime): Add genre list+popular anime and anime movies route …
hase0278 Dec 4, 2023
f800a5a
Update anilist.ts
Toasty360 Jan 4, 2024
d4b5f6e
feat: zoro extra routes
shubham7101 Jan 27, 2024
570f27c
fix: zoro routes
shubham7101 Jan 28, 2024
586424d
Merge pull request #562 from shubham7101/zoro
Eltik Jan 28, 2024
abd1d9b
Merge pull request #552 from Toasty360/patch-1
Eltik Jan 28, 2024
eb39bb9
feat(gogoanime): Add list all anime route (#567)
hase0278 Feb 25, 2024
26fbd3c
fix: Vercel 500 crash error (#572)
hase0278 Feb 26, 2024
07c5e7b
feat(gogoanime): Add redis cache (#579)
hase0278 Mar 6, 2024
d49a669
Add routes to flixhq info page (#582)
Mar 18, 2024
1bc5851
feat(flixhq): Add country and genre routes (#581)
2004durgesh Mar 18, 2024
404f425
Bump typescript from 5.2.2 to 5.3.3 (#543)
dependabot[bot] Mar 20, 2024
f4613b3
feat(TMDB): Add /trending endpoint (#580)
Babyyoda777 Mar 23, 2024
7a655f5
fix(gogoanime): not able to fetch info when redis disabled (#590)
2uanDM Mar 27, 2024
6b83167
chore(deps): update actions/setup-node action to v4 (#513)
renovate[bot] Mar 28, 2024
f6cd4ef
chore(deps): update github/codeql-action action to v3 (#593)
renovate[bot] Mar 28, 2024
31ad982
feat(gogoanime): get direct download links from download url (#598)
hase0278 Apr 24, 2024
cb37014
feat: Add optional custom domain functionality (#609)
hase0278 May 16, 2024
08360b5
feat(zoro): Add routes for anime schedule, studio, spotlight, & searc…
2004durgesh Jun 2, 2024
03ee229
fix: adapter is not a function error (#622)
riimuru Jun 2, 2024
6c7484f
feat(zoro): improve QOL (#627)
hase0278 Aug 1, 2024
f589eef
feat(anilist + dramacool): Add routes for fetching staff information …
2004durgesh Aug 6, 2024
0b1eff7
feat(readme): Add important and caution notices to README
riimuru Aug 31, 2024
e56e7ac
docs(dramcool): Add popular to routes (#629)
OshekharO Aug 31, 2024
3e7565d
feat(movie-routes): Add new providers (#633)
2004durgesh Oct 6, 2024
0522c2b
fix(manga | movies): Add missing mangaId in fetchChapterPages, new sf…
2004durgesh Dec 3, 2024
84ca3d5
feat(anix.sh) - Added anix.ts from consumet.ts (#650)
Shikiiii Jan 12, 2025
933c49c
fix+feat(anix.sh): Add type variable to recent-episodes, watch & serv…
Shikiiii Jan 29, 2025
4b4e7f4
fix(anix): mismatched type (#661)
winnerx0 Jan 29, 2025
a34dafd
Delete bun.lockb (#668)
xciphertv Feb 22, 2025
1653348
feat(animekai + multimovies): Add Animekai and Multimovies providers …
2004durgesh Feb 27, 2025
1d42ccd
fix(animekai): add recent-episodes endpoint (#670)
Shikiiii Mar 15, 2025
67a5a56
feat(anilist): Enhance episode source fetching with dub/sub support (…
2004durgesh Mar 15, 2025
90c8498
fix(meta/anilist): Change the default provider to Zoro from Gogo (#674)
Shikiiii Mar 28, 2025
a99a293
refactor(zoro.ts): update base url (#704)
RedMXXtreme Nov 16, 2025
acd6d82
feat(himovies): Add Himovies provider (#689)
2004durgesh Nov 16, 2025
58927de
update provider routes
eatmynerds Nov 24, 2025
df28eb1
Merge pull request #1 from zuhaz/nerds-branch
zuhaz Nov 24, 2025
49c2e49
Merge pull request #709 from zuhaz/clean-and-fix-stuff
zuhaz Nov 24, 2025
647a3cf
refactor: routes & utils
eatmynerds Nov 25, 2025
68adf7c
refactor: remove gogoanime
eatmynerds Nov 25, 2025
2d43c0a
refactor: update animepahe
eatmynerds Nov 25, 2025
60eb8fe
refactor: add ecosystem configuration files and update animesaturn ro…
riimuru Nov 25, 2025
f088a6c
feat: add Raspberry Pi deployment workflow (#710)
riimuru Nov 25, 2025
69f1652
refactor: update cwd and interpreter paths to use process.env.HOME
riimuru Nov 25, 2025
a1625a1
fix: remove sudo from pm2 commands for consistent HOME path
riimuru Nov 25, 2025
619697c
fix: update NODE_ENV to 'DEMO' for preview environment
riimuru Nov 25, 2025
ff5b345
[skip ci] fix: remove --frozen-lockfile option from yarn install for …
riimuru Nov 25, 2025
38216f9
[skip ci] fix: update API URL in demo page to use the correct endpoint
riimuru Nov 25, 2025
7c1e9a2
feat: add /favorites endpoint to fetch favorite anime/manga with auth…
riimuru Nov 25, 2025
40e298c
feat: add countryOfOrigin query parameter to advanced search endpoint
riimuru Nov 25, 2025
8759852
Remove NODE_ENV from ecosystem config
riimuru Nov 26, 2025
6b87eb9
fix: add yarn upgrade step to ensure dependencies are up to date
riimuru Nov 26, 2025
694b048
feat: add /chapters/:id endpoint to fetch chapter list with optional …
riimuru Nov 26, 2025
cc3b12d
refactor: update deployment workflow to use a github runner
riimuru Nov 28, 2025
29a2e30
[skip ci] improve deployment workflow
riimuru Nov 28, 2025
60eeb49
Merge pull request #711 from 2004durgesh/main
2004durgesh Dec 6, 2025
5455f99
Revert "Merge pull request #711 from 2004durgesh/main" (#714)
zuhaz Dec 6, 2025
64d142d
feat(mangakakalot): improve route documentation and error messages (#…
Botsailer Dec 27, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
PORT=Port number of the server. (optional)
PROXY=Proxies for requests (optional) (e.g. ["https://proxy1.com", "https://proxy2.com"])
REDIS_HOST=Redis host (optional)
REDIS_PORT=Redis port (optional)
REDIS_TTL=Redis cache timeout (seconds) (optional)
REDIS_PASSWORD=Redis password (optional)
TMDB_KEY=TMDB access token auth (optional)
NODE_ENV=Environment (optional) (DEMO or PROD)
4 changes: 3 additions & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@ updates:
open-pull-requests-limit: 3
allow:
- dependency-type: 'production'
ignore:
- dependency-name: "axios"
- package-ecosystem: github-actions
directory: '/'
schedule:
interval: daily
open-pull-requests-limit: 2
open-pull-requests-limit: 2
2 changes: 2 additions & 0 deletions .github/scripts/install-dependencies.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/bash
echo "Code BeforeInstall event script ran."
2 changes: 2 additions & 0 deletions .github/scripts/start-server.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/bash
echo "Code ApplicationStart event script ran."
2 changes: 2 additions & 0 deletions .github/scripts/validate-service.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/bash
echo "Code ValidateService event script ran."
6 changes: 3 additions & 3 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
Expand All @@ -56,7 +56,7 @@ jobs:
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v2
uses: github/codeql-action/autobuild@v3

# ℹ️ Command-line programs to run using the OS shell.
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
Expand All @@ -69,4 +69,4 @@ jobs:
# ./location_of_script_within_repo/buildscript.sh

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
uses: github/codeql-action/analyze@v3
80 changes: 80 additions & 0 deletions .github/workflows/deploy-pi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
name: Deploy to Pi (Production)

on:
workflow_run:
workflows: ["Node.js CI"]
types:
- completed
branches: [master, main]
workflow_dispatch:

permissions:
contents: read
actions: read

jobs:
deploy:
runs-on: [self-hosted, production-deploy, api-consumet-only]
if: ${{ github.event.workflow_run.conclusion == 'success' || github.event_name == 'workflow_dispatch' }}
env:
ACTIONS_RUNNER_DEBUG: false
ACTIONS_STEP_DEBUG: false

steps:
- name: Validate workflow execution
run: |
if [[ "${{ github.repository }}" != "consumet/api.consumet.org" ]]; then
echo "ERROR: Unauthorized repository: ${{ github.repository }}"
exit 1
fi
if [[ "${{ github.ref }}" != "refs/heads/main" ]] && [[ "${{ github.ref }}" != "refs/heads/master" ]] && [[ "${{ github.event_name }}" != "workflow_dispatch" ]]; then
echo "ERROR: Unauthorized branch: ${{ github.ref }}"
exit 1
fi
echo "Workflow validation passed"

- name: Mask sensitive paths
run: |
echo "::add-mask::$HOME"
echo "::add-mask::$USER"
echo "::add-mask::$(pwd)"
echo "::add-mask::$(dirname $HOME)"
echo "::add-mask::${GITHUB_WORKSPACE}"
# Mask runner directory if it exists
if [ -d "$HOME/actions-runner" ]; then
echo "::add-mask::$HOME/actions-runner"
fi

- name: Checkout code
uses: actions/checkout@v3
with:
clean: false
fetch-depth: 1

- name: Use Node.js 20.x
uses: actions/setup-node@v4.0.2
with:
node-version: "20.x"

- name: Install dependencies
run: |
yarn install --silent 2>&1 | grep -v "^warning" || true
yarn upgrade --silent 2>&1 | grep -v "^warning" || true

- name: Build API
run: yarn build --silent 2>&1 | tail -5 || true

- name: Restart PM2 process
run: |
if pm2 describe consumet-api > /dev/null 2>&1; then
pm2 restart consumet-api --silent
else
pm2 start ecosystem.config.js --silent
pm2 save --silent
fi
echo "PM2 process restarted successfully"

- name: Check PM2 status
run: |
pm2 status 2>&1 | grep -E "(id|name|status|cpu|memory)" | head -3
echo "Deployment completed"
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Docker CI
name: Docker Build

on:
push:
Expand All @@ -18,7 +18,7 @@ jobs:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v3
uses: docker/build-push-action@v4
with:
push: true
tags: ${{ secrets.DOCKERHUB_TAGS }}
27 changes: 27 additions & 0 deletions .github/workflows/nodejs-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Node.js CI

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [ "18.x" ]

steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4.0.2
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies & build
run: |
npm install
npx tsc
7 changes: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,9 @@ node_modules/
yarn-error.log
.env
src/scripts
.vscode
.vscode
yarn.lock
test.ts
dist
package-lock.json
yarn.lock
1 change: 0 additions & 1 deletion .npmrc

This file was deleted.

9 changes: 9 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
node_modules
*.js
*.md
*.json
*.lock
*.yml
*.yaml
Dockerfile
Dockerfile.*
10 changes: 10 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
language: node_js
node_js:
- "12.22.12"
- 13
- 14
- 15
- 16
- 17
script:
- npm run lint
10 changes: 7 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:16 as builder
FROM node:20 as builder

LABEL version="1.0.0"
LABEL description="Consumet API (fastify) Docker Image"
Expand All @@ -15,12 +15,16 @@ RUN mkdir -p /home/nodejs/app/node_modules && chown -R nodejs:nodejs /home/nodej
WORKDIR /home/nodejs/app

# set default node env
ARG NODE_ENV=development
ARG NODE_ENV=PROD
ARG PORT=3000

# ARG NODE_ENV=production
# to be able to run tests (for example in CI), do not set production as environment
ENV NODE_ENV=${NODE_ENV}
ENV PORT=${PORT}
ENV REDIS_HOST=${REDIS_HOST}
ENV REDIS_PORT=${REDIS_PORT}
ENV REDIS_PASSWORD=${REDIS_PASSWORD}

ENV NPM_CONFIG_LOGLEVEL=warn

Expand Down Expand Up @@ -51,4 +55,4 @@ HEALTHCHECK --interval=30s --timeout=10s --start-period=5s CMD npm run healthche
# ENTRYPOINT [ "node" ]
CMD [ "npm", "start" ]

# end.
# end.
2 changes: 1 addition & 1 deletion Dockerfile.alpine
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:16.16-alpine as builder
FROM node:20.8-alpine as builder

LABEL version="1.0.0"
LABEL description="Consumet API (fastify) Docker Image"
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile.distroless
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:14 as builder
FROM node:20 as builder

LABEL version="1.0.0"
LABEL description="Consumet API (fastify) Docker Image"
Expand All @@ -21,7 +21,7 @@ COPY . .


# release layer (the only one in the final image)
FROM gcr.io/distroless/nodejs:14 AS release
FROM gcr.io/distroless/nodejs:18 AS release
COPY --from=builder /app /app
WORKDIR /app

Expand Down
Loading