Monkeytype Readme transforms MonkeyType typing data into SVGs for your GitHub Readme.
Two way to generate MonkeyType Readme
Using GitHub Action from Marketplace (MonkeyType Readme Github Action)
-
Add a
monkeytype-readme.yml
file in your repository's.github/workflows/
path. -
Configure
monkeytype-readme.yml
with the following format:-
Username: Change
MONKEYTYPE_USERNAME
to your username in MonkeyType. -
Themes: Change
MONKEYTYPE_THEME_NAME
to your favorite theme in MonkeyType.
If theme name havespace
, please changespace
to_
.Example:
nord light
=>nord_light
-
Target Branch: Change
BRANCH_NAME
to the branch you want to put MonkeyType Readme.
-
name: generate monkeytype readme svg
on:
schedule:
- cron: "0 */6 * * *" # every 6 hours
workflow_dispatch:
jobs:
download-svg:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: "20.x"
- name: Generate Monkeytype Readme SVG
uses: monkeytype-hub/monkeytype-readme@v1.0.0
with:
username: MONKEYTYPE_USERNAME
themes: MONKEYTYPE_THEME_NAME
target-branch: BRANCH_NAME
github-token: ${{ secrets.GITHUB_TOKEN }}
-
Go to actions and run
generate monkeytype readme svg
workflow. -
Done! Now, navigate to your target branch and you'll find the MonkeyType README file. You can also integrate it into your GitHub README.
-
Add a
monkeytype-readme.yml
file in your repository's.github/workflows/
path. -
Configure
monkeytype-readme.yml
with the following format:Note: change YOUR_USERNAME to your MonkeyType username.
Note: This workflow will auto to update your MonkeyType Readme.
Change
THEMES
to your favorite theme in MonkeyType.
If theme name havespace
, please changespace
to_
.Example:
nord light
=>nord_light
name: generate monkeytype readme svg on: schedule: - cron: "0 */6 * * *" # every 6 hours workflow_dispatch: jobs: download-svg: runs-on: ubuntu-latest steps: - name: Checkout code uses: actions/checkout@v3 - name: Set up Node.js uses: actions/setup-node@v3 with: node-version: "20.x" - name: Download SVG run: | mkdir public curl -o public/monkeytype-readme.svg https://monkeytype-readme.zeabur.app/generate-svg/YOUR_USERNAME/THEMES curl -o public/monkeytype-readme-lb.svg https://monkeytype-readme.zeabur.app/generate-svg/YOUR_USERNAME/THEMES?lb=true curl -o public/monkeytype-readme-pb.svg https://monkeytype-readme.zeabur.app/generate-svg/YOUR_USERNAME/THEMES?pb=true curl -o public/monkeytype-readme-lb-pb.svg https://monkeytype-readme.zeabur.app/generate-svg/YOUR_USERNAME/THEMES?lbpb=true - name: push monkeytype-readme.svg to the monkeytype-readme branch uses: crazy-max/ghaction-github-pages@v4.0.0 with: target_branch: monkeytype-readme build_dir: public env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
-
Add SVGs to your GitHub Readme.
Note:
change YOUR_MONKEYTYPE_USERNAME to your MonkeyType username.
change YOUR_GITHUB_USERNAME to your Github username.
change YOUR_GITHUB_REPOSITORY to your repository name.
change SVG_NAME to the svg you want to use.original : monkeytype-readme.svg
original + leader boards : monkeytype-readme-lb.svg
original + personal bests : monkeytype-readme-pb.svg
original + leader boards + personal bests : monkeytype-readme-lbpb.svg<a href="https://monkeytype.com/profile/YOUR_MONKEYTYPE_USERNAME"> <img src="https://raw.githubusercontent.com/YOUR_GITHUB_USERNAME/YOUR_GITHUB_REPOSITORY/monkeytype-readme/SVG_NAME" alt="My Monkeytype profile" /> </a>
-
Go to actions and run
generate monkeytype readme svg
workflow. -
Done! Your MonkeyType Readme will show on your Readme.
To run MonkeyType Readme locally, follow these steps:
-
Clone this repository:
git clone https://github.com/monkeytype-hub/monkeytype-readme.git
-
Store the MonkeyType APE keys in
.env
:cp .env.example .env
-
Install the dependencies:
npm install
-
Run the application:
npm run dev
-
Finally, visit http://localhost:3000 in your web browser.