[PR #3796] [CLOSED] github stars #21912

Closed
opened 2026-04-15 20:41:40 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/3796
Author: @dagmawibabi
Created: 8/5/2025
Status: Closed

Base: mainHead: stars


📝 Commits (10+)

  • 79dd662 github stars
  • c6ff303 github stars
  • c3dd65b fix commit issues
  • a2c591c fix format issue
  • d8ae6a9 try catch
  • eddca85 kformatter returns string
  • d8a7630 fix(telemetry): remove node imports for compatibility and add telemetry notice (#3942)
  • 0318881 chore: release v1.3.6-beta.1
  • 30600b0 chore(telemetry): ensure telemetry consent notice displays correctly (#3944)
  • e9bfe6f Merge branch 'better-auth:canary' into stars

📊 Changes

14 files changed (+274 additions, -71 deletions)

View changed files

📝 docs/app/community/_components/header.tsx (+1 -19)
📝 docs/app/community/_components/stats.tsx (+115 -30)
📝 docs/app/community/page.tsx (+9 -7)
📝 docs/content/docs/reference/telemetry.mdx (+19 -2)
📝 docs/lib/utils.ts (+2 -1)
📝 packages/better-auth/package.json (+3 -3)
📝 packages/better-auth/src/telemetry/detectors/detect-system-info.ts (+1 -2)
📝 packages/better-auth/src/telemetry/index.ts (+104 -1)
📝 packages/better-auth/src/types/options.ts (+12 -0)
📝 packages/better-auth/src/utils/package-json.ts (+4 -2)
📝 packages/cli/package.json (+1 -1)
📝 packages/expo/package.json (+1 -1)
📝 packages/sso/package.json (+1 -1)
📝 packages/stripe/package.json (+1 -1)

📄 Description

image

This pull request updates the community page to improve how social links and project stats are displayed. Social links for Reddit and Twitter (𝕏) have been moved from the header to a new, more prominent section in the stats area, and a new stat for GitHub stars has been added. The code for fetching GitHub stars has also been simplified.

Community page layout and stats improvements:

  • Moved Twitter and GitHub links out of the CommunityHeader and into a new, dedicated social section within the Stats component, and added a new Reddit link with custom styling and icon. [1] [2]
  • Added a new stat card for GitHub stars alongside NPM downloads, including logic to fetch the star count from the GitHub API and display it. [1] [2] [3] [4]
  • Simplified the GitHub stars fetching logic by removing unnecessary error handling and formatting, returning the raw number instead. [1] [2]

Minor UI adjustments:

  • Adjusted the header section height for better layout balance.

Summary by cubic

Updated the community page to add a GitHub stars stat, move social links (Reddit, Twitter) into a new section, and simplify the GitHub stars fetching logic.

  • UI Improvements
    • Added a GitHub stars card next to NPM downloads.
    • Moved Reddit and Twitter links from the header to a dedicated social section.
    • Adjusted header height for better layout.
  • Refactors
    • Simplified code for fetching and displaying GitHub stars.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/better-auth/better-auth/pull/3796 **Author:** [@dagmawibabi](https://github.com/dagmawibabi) **Created:** 8/5/2025 **Status:** ❌ Closed **Base:** `main` ← **Head:** `stars` --- ### 📝 Commits (10+) - [`79dd662`](https://github.com/better-auth/better-auth/commit/79dd6623079283f58775d0615b39013dabb42242) github stars - [`c6ff303`](https://github.com/better-auth/better-auth/commit/c6ff303db07fc5337e00ee1b6a4594dab12e5674) github stars - [`c3dd65b`](https://github.com/better-auth/better-auth/commit/c3dd65ba519a76bbc774bbf5c319d5f99699bb43) fix commit issues - [`a2c591c`](https://github.com/better-auth/better-auth/commit/a2c591caeb00452ece3b5c833456f83a75101de5) fix format issue - [`d8ae6a9`](https://github.com/better-auth/better-auth/commit/d8ae6a981be4e6c73c50979df2a24f92b77c4578) try catch - [`eddca85`](https://github.com/better-auth/better-auth/commit/eddca85598285887bebaaac44a46ada0564ed21d) kformatter returns string - [`d8a7630`](https://github.com/better-auth/better-auth/commit/d8a7630ae2da5b9c06e99cc1916c1335e65a93bd) fix(telemetry): remove node imports for compatibility and add telemetry notice (#3942) - [`0318881`](https://github.com/better-auth/better-auth/commit/031888178d56f80bb8655ec693e04a4609c0e302) chore: release v1.3.6-beta.1 - [`30600b0`](https://github.com/better-auth/better-auth/commit/30600b02b9a618ec59fb129b5b744e2309d940bb) chore(telemetry): ensure telemetry consent notice displays correctly (#3944) - [`e9bfe6f`](https://github.com/better-auth/better-auth/commit/e9bfe6f5fef8a10fcc061cbe1aef785793870601) Merge branch 'better-auth:canary' into stars ### 📊 Changes **14 files changed** (+274 additions, -71 deletions) <details> <summary>View changed files</summary> 📝 `docs/app/community/_components/header.tsx` (+1 -19) 📝 `docs/app/community/_components/stats.tsx` (+115 -30) 📝 `docs/app/community/page.tsx` (+9 -7) 📝 `docs/content/docs/reference/telemetry.mdx` (+19 -2) 📝 `docs/lib/utils.ts` (+2 -1) 📝 `packages/better-auth/package.json` (+3 -3) 📝 `packages/better-auth/src/telemetry/detectors/detect-system-info.ts` (+1 -2) 📝 `packages/better-auth/src/telemetry/index.ts` (+104 -1) 📝 `packages/better-auth/src/types/options.ts` (+12 -0) 📝 `packages/better-auth/src/utils/package-json.ts` (+4 -2) 📝 `packages/cli/package.json` (+1 -1) 📝 `packages/expo/package.json` (+1 -1) 📝 `packages/sso/package.json` (+1 -1) 📝 `packages/stripe/package.json` (+1 -1) </details> ### 📄 Description <img width="1919" height="1199" alt="image" src="https://github.com/user-attachments/assets/782958b8-94fe-43ae-85f9-914459d2c6c0" /> --- This pull request updates the community page to improve how social links and project stats are displayed. Social links for Reddit and Twitter (𝕏) have been moved from the header to a new, more prominent section in the stats area, and a new stat for GitHub stars has been added. The code for fetching GitHub stars has also been simplified. **Community page layout and stats improvements:** - Moved Twitter and GitHub links out of the `CommunityHeader` and into a new, dedicated social section within the `Stats` component, and added a new Reddit link with custom styling and icon. [[1]](diffhunk://#diff-1abf8d4e4ddbce1c6433e9bed68ab84319f5abef04c8aaff5d8db23f3c893470L7-L30) [[2]](diffhunk://#diff-6a4945609afcb5b554ab03ee524686807d465a3b73d38bfee5d9a08812809c51L52-R141) - Added a new stat card for GitHub stars alongside NPM downloads, including logic to fetch the star count from the GitHub API and display it. [[1]](diffhunk://#diff-6a4945609afcb5b554ab03ee524686807d465a3b73d38bfee5d9a08812809c51L93-R215) [[2]](diffhunk://#diff-c2f56d142ca675539ba4244ba67e3775673639c8b47a19981adcf7eccbb3bfbeL22) [[3]](diffhunk://#diff-c2f56d142ca675539ba4244ba67e3775673639c8b47a19981adcf7eccbb3bfbeL31-R37) [[4]](diffhunk://#diff-c2f56d142ca675539ba4244ba67e3775673639c8b47a19981adcf7eccbb3bfbeL81-R76) - Simplified the GitHub stars fetching logic by removing unnecessary error handling and formatting, returning the raw number instead. [[1]](diffhunk://#diff-c2f56d142ca675539ba4244ba67e3775673639c8b47a19981adcf7eccbb3bfbeL22) [[2]](diffhunk://#diff-c2f56d142ca675539ba4244ba67e3775673639c8b47a19981adcf7eccbb3bfbeL31-R37) **Minor UI adjustments:** - Adjusted the header section height for better layout balance. <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Updated the community page to add a GitHub stars stat, move social links (Reddit, Twitter) into a new section, and simplify the GitHub stars fetching logic. - **UI Improvements** - Added a GitHub stars card next to NPM downloads. - Moved Reddit and Twitter links from the header to a dedicated social section. - Adjusted header height for better layout. - **Refactors** - Simplified code for fetching and displaying GitHub stars. <!-- End of auto-generated description by cubic. --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-15 20:41:40 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#21912