Skip to content

Commit 9927be9

Browse files
authored
Merge pull request #17 from omsimos/dev
fix broken streak stats API
2 parents 5400caf + 4575acf commit 9927be9

5 files changed

Lines changed: 20 additions & 24 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ This website makes it easier for you to generate beautiful stats for your GitHub
99
## APIs Used
1010

1111
- [anuraghazra/github-readme-stats](https://github.com/anuraghazra/github-readme-stats)
12-
- [DenverCoder1/github-readme-streak-stats](https://github.com/DenverCoder1/github-readme-streak-stats)
12+
- [DenverCoder1/github-readme-streak-stats](https://streak-stats.demolab.com)
1313

1414
## How to Use
1515

@@ -22,7 +22,7 @@ This website makes it easier for you to generate beautiful stats for your GitHub
2222
## Stats Available
2323

2424
<img width=400 src='https://github-readme-stats.vercel.app/api?username=joshxfi&theme=vue-dark&show_icons=true&hide_border=true&count_private=true' />
25-
<img width=400 src='https://github-readme-streak-stats.herokuapp.com/?user=joshxfi&theme=vue-dark&hide_border=true' />
25+
<img width=400 src='https://streak-stats.demolab.com?user=joshxfi&theme=vue-dark&hide_border=true' />
2626
<img width=400 src='https://github-readme-stats.vercel.app/api/top-langs/?username=joshxfi&theme=vue-dark&show_icons=true&hide_border=true&layout=compact' />
2727

2828
## License

bun.lockb

2.46 KB
Binary file not shown.

next.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const nextConfig = {
99
},
1010
{
1111
protocol: "https",
12-
hostname: "github-readme-streak-stats.herokuapp.com",
12+
hostname: "streak-stats.demolab.com",
1313
},
1414
],
1515
},

package.json

Lines changed: 16 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -12,45 +12,41 @@
1212
"dependencies": {
1313
"@hookform/resolvers": "^3.10.0",
1414
"@radix-ui/react-avatar": "^1.1.2",
15-
"@radix-ui/react-dialog": "^1.1.4",
16-
"@radix-ui/react-dropdown-menu": "^2.1.4",
17-
"@radix-ui/react-hover-card": "^1.1.4",
15+
"@radix-ui/react-dialog": "^1.1.5",
16+
"@radix-ui/react-dropdown-menu": "^2.1.5",
17+
"@radix-ui/react-hover-card": "^1.1.5",
1818
"@radix-ui/react-label": "^2.1.1",
19-
"@radix-ui/react-popover": "^1.1.4",
19+
"@radix-ui/react-popover": "^1.1.5",
2020
"@radix-ui/react-slot": "^1.1.1",
2121
"@radix-ui/react-switch": "^1.1.2",
2222
"@radix-ui/react-tabs": "^1.1.2",
23-
"@radix-ui/react-tooltip": "^1.1.6",
23+
"@radix-ui/react-tooltip": "^1.1.7",
2424
"class-variance-authority": "^0.7.1",
2525
"clsx": "^2.1.1",
2626
"cmdk": "^1.0.4",
2727
"geist": "^1.3.1",
2828
"lucide-react": "^0.441.0",
29-
"next": "15.1.4",
29+
"next": "15.1.6",
3030
"next-themes": "^0.3.0",
3131
"nextjs-toploader": "^1.6.12",
32-
"posthog-js": "^1.205.0",
33-
"react": "19.0.0",
34-
"react-dom": "19.0.0",
32+
"posthog-js": "^1.210.2",
33+
"react": "^19.0.0",
34+
"react-dom": "^19.0.0",
3535
"react-hook-form": "^7.54.2",
36-
"sonner": "^1.7.1",
36+
"sonner": "^1.7.2",
3737
"tailwind-merge": "^2.6.0",
3838
"tailwindcss-animate": "^1.0.7",
3939
"vaul": "^0.9.9",
4040
"zod": "^3.24.1"
4141
},
4242
"devDependencies": {
43-
"@types/node": "^20.17.12",
44-
"@types/react": "19.0.3",
45-
"@types/react-dom": "19.0.2",
43+
"@types/node": "^20.17.16",
44+
"@types/react": "^19.0.0",
45+
"@types/react-dom": "^19.0.0",
4646
"eslint": "^8.57.1",
47-
"eslint-config-next": "15.1.4",
48-
"postcss": "^8.4.49",
47+
"eslint-config-next": "15.1.6",
48+
"postcss": "^8.5.1",
4949
"tailwindcss": "^3.4.17",
50-
"typescript": "^5.7.2"
51-
},
52-
"overrides": {
53-
"@types/react": "19.0.3",
54-
"@types/react-dom": "19.0.2"
50+
"typescript": "^5.7.3"
5551
}
5652
}

src/hooks/use-github-stats.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export const useGithubStats = (data: Stats) => {
1313
return useMemo(() => {
1414
const stats = `https://github-readme-stats.vercel.app/api?username=${username}&theme=${theme}&show_icons=true&hide_border=${hideBorder}&count_private=${countPrivate}`;
1515
const topLanguages = `https://github-readme-stats.vercel.app/api/top-langs/?username=${username}&theme=${theme}&show_icons=true&hide_border=${hideBorder}&layout=compact`;
16-
const streak = `https://github-readme-streak-stats.herokuapp.com/?user=${username}&theme=${theme}&hide_border=${hideBorder}`;
16+
const streak = `https://streak-stats.demolab.com?user=${username}&theme=${theme}&hide_border=${hideBorder}`;
1717

1818
return { stats, topLanguages, streak };
1919
}, [username, theme, hideBorder, countPrivate]);

0 commit comments

Comments
 (0)