This is the repository for the FNFestival.co website, where you can view the daily and generally available jam tracks for the Fortnite Festival mode.
The list of all available jam tracks can be found on the public Fortnite Content API at this link.
However, in order to retrieve the daily jam tracks, authentication is required. To do this, we use the fnbr.js
library and then query the event flags that contain the daily jam tracks.
Using a GitHub workflow, we then run the script to update the jam tracks every day at midnight (0:00 UTC). We use a Cloudflare Worker to trigger the workflow because GitHub Action cronjobs are too delayed.
To retrieve the daily jam tracks, authentication with the Fortnite client/Epic Games is required. Follow these steps:
- Run
npm run auth
to start the authentication process. - You will be asked for an authorization code. Obtain it from this link.
- After logging in, you will receive a JSON response containing the authorization code.
- Enter the authorization code when prompted.
- A
deviceAuth.json
file will be created, containing theaccountId
,deviceId
, andsecret
. - Set these values as environment variables for the GitHub Action.
This process allows the script to connect to the Epic Games/Fortnite endpoints and request the events for Fortnite, including the daily jam tracks.
- Fortnite & Epic Games Unofficial API Documentation
- Fortnite.gg for some inspiration
This project was created rather quickly and there are many things that could be improved or added.
If you feel like it, you can help us out by making a pull request.