remotion-dev/github-unwrapped-2022
소개
지난 1년간의 코딩을 돌아보세요 #GitHubUnwrapped
웹 및 앱 개발측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 0
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
Original

Try it out live: GitHubUnwrapped.com
A platform that generates a year in review video for each GitHub user. Built with Next.JS, Remotion and AWS Lambda.
Make your own
Want to make your own year in review for your users?
- Developers: Feel free to fork use this repository as a template! Note the legal disclaimers at the bottom of this README.
- Non-developers: Write to [email protected] for a free consultation in Fall 2023!
Setup
Run
npm ito install dependencies.Rename
.env.exampleto.envSet up your AWS account according to the Remotion Lambda Setup guide. We use multiple accounts for load-balancing:
- Use
AWS_KEY_1instead ofREMOTION_AWS_ACCESS_KEY_IDandAWS_SECRET_1instead ofREMOTION_AWS_SECRET_ACCESS_KEY. - You can use
AWS_KEY_2andAWS_SECRET_2to load-balance between two accounts, or paste the same credentials as before to use the same account. - In
src/set-env-for-key.ts, we rotate the environment variables.
- Use
Deploy the functions into your AWS account(s):
npx ts-node deploy.tsNote that some AWS regions are disabled by default. If you get an error, enable them or limit yourself to only default ones.
For caching the videos and GitHub API responses, set up a MongoDB (We use a free MongoDB Atlas Cloud instance) to save the videos. Set the connection string as
MONGO_URL.For fetching data from GitHub, create a personal access token in your user settings (no need to grant any scopes, the GraphQL API needs to be authenticated to get public information) and set it as
GITHUB_TOKEN_1. Adding more tokensGITHUB_TOKEN_2etc. will rotate the personal access tokens.Optionally, provide
DISCORD_CHANNELandDISCORD_TOKENvalues to send monitoring logs to Discord.
You now have all environment variables.
Run the web app:
npm run dev
Edit the template in the Remotion preview:
npm run preview
To deploy, connect your repository to Vercel.
Don't forget to also set the environment variables there too.
Scaling strategy
To allow thousands of people to render their video at the same time, we applied multiple strategies for scaling:
- Caching the video whenever possible. Before each render, a MongoDB database lock is created to avoid multiple renders for the same GitHub user to be accidentally created.
- Renders are distributed across an array of AWS regions and accounts to avoid hitting the concurrency limit.
Credits
We thank GitHub for their support in realization and promotion of this project.
Music copyright disclaimer
The music was licensed for GitHubUnwrapped.com specifically. If you create a derivative project, you may not use it.
License
The code in this repository: Licensed under MIT.
The Remotion framework (a dependency of this project): Companies need to obtain a paid license. Read the terms here.
관련 프로젝트 살펴보기
불러오는 중…