Skip to content

docs: refresh home stats for oxlint, vite, and vitest Issue: #1511#1512

Open
nozomee wants to merge 6 commits intovoidzero-dev:mainfrom
nozomee:main
Open

docs: refresh home stats for oxlint, vite, and vitest Issue: #1511#1512
nozomee wants to merge 6 commits intovoidzero-dev:mainfrom
nozomee:main

Conversation

@nozomee
Copy link
Copy Markdown

@nozomee nozomee commented May 4, 2026

Changes made

1. docs/.vitepress/theme/components/home/FeatureCheck.vue

  • ESLint rule count (Vite+ check section): 600+750+ (text before the ESLint code span).

2. docs/.vitepress/theme/components/home/ProductivityGrid.vue

“A trusted stack to standardize on” — Vite

  • Weekly npm downloads: 69m+115m+
  • GitHub stars: 78.7k80.4k

Vitest

  • Weekly npm downloads: 35m+57m+
  • GitHub stars: 16.1k16.5k

OXC (npm row uses oxlint package downloads)

  • Weekly npm downloads: 5m+5.3m+
  • GitHub stars: 19.8k21.0k

Files touched: 2
Net: 7 lines updated (string substitutions only; no logic or layout changes).

@netlify
Copy link
Copy Markdown

netlify Bot commented May 4, 2026

Deploy Preview for viteplus-preview ready!

Name Link
🔨 Latest commit 29b39bb
🔍 Latest deploy log https://app.netlify.com/projects/viteplus-preview/deploys/69fa12bd7468f30008522c3d
😎 Deploy Preview https://deploy-preview-1512--viteplus-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@nozomee nozomee changed the title docs: refresh home stats for oxlint, vite, and vitest #1511 docs: refresh home stats for oxlint, vite, and vitest Issue: #1511 May 4, 2026
@nozomee nozomee mentioned this pull request May 4, 2026
4 tasks
Copy link
Copy Markdown
Collaborator

@jong-kyung jong-kyung left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jong-kyung jong-kyung requested a review from mdong1909 May 4, 2026 06:35
@mdong1909
Copy link
Copy Markdown
Contributor

We want a way to automate the npm downloads & github stars. Otherwise the hard coded numbers will be outdated quickly. For example, vitest had 7% increase in downloads in the last week.

A potential way to do this is to have a fetch data script that is executed on a schedule via github actions. The data is stored as a json in this repo, which the home pages references

@nozomee
Copy link
Copy Markdown
Author

nozomee commented May 4, 2026

I’d like to take this on — I’m already actively working on it and will open a PR soon.

Right now the trusted-stack numbers on the homepage are hard-coded, which means they’ll drift quickly and require repeated manual edits over time (especially with npm download velocity changing week-to-week).

My planned implementation:

Add a lightweight fetch script that pulls:
Weekly npm downloads for Vite / Vitest / OXC
GitHub stars for their corresponding repos
Store that data in a committed JSON file inside the docs theme as the single source of truth
Replace hard-coded homepage values with JSON-driven values at build time
Add a scheduled GitHub Action (weekly + manual dispatch) that refreshes the JSON automatically and only commits when values actually change

Why this should help:

Keeps homepage metrics current automatically
Preserves the static-site model (no client-side API calls)
Avoids recurring hand-edits
Keeps changes transparent in git history
Contributors won’t need to do anything extra unless they specifically want an immediate local refresh
In the normal case, maintainers shouldn’t need to manually update stats either—the scheduled workflow handles it

Expected flow after merge:

Merge once
Workflow refreshes stats automatically on schedule
Homepage numbers stay fresh with near-zero maintenance
Manual command is only for immediate refreshes or branch-protection fallback

A few maintainer decisions may still be useful:

Whether github-actions[bot] should push JSON-only updates directly to main or use PRs
Preferred refresh cadence
Whether oxlint remains the best npm proxy for OXC

In short: automate the trusted-stack stats pipeline once, remove repetitive manual maintenance, and keep homepage credibility high with minimal long-term overhead. PR coming soon.

@nozomee
Copy link
Copy Markdown
Author

nozomee commented May 4, 2026

@jong-kyung @mdong1909 I’ve committed the changes to address these updates, Kindly review it once!

@jong-kyung
Copy link
Copy Markdown
Collaborator

@codex review

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 23b81b2815

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread docs/scripts/fetch-trusted-stack-stats.mjs Outdated
Comment thread docs/.vitepress/env.d.ts Outdated
Comment thread .github/workflows/update-trusted-stack-stats.yml Outdated
@jong-kyung jong-kyung self-assigned this May 4, 2026
@nozomee
Copy link
Copy Markdown
Author

nozomee commented May 4, 2026

@jong-kyung @mdong1909 I’ve committed the changes , Kindly review it once!

Comment thread .github/scripts/fetch-trusted-stack-stats.ts
Comment thread .github/workflows/update-trusted-stack-stats.yml
@nozomee
Copy link
Copy Markdown
Author

nozomee commented May 4, 2026

@jong-kyung @camc314 I’ve committed the changes , Kindly review it once!

@jong-kyung
Copy link
Copy Markdown
Collaborator

@codex review

@chatgpt-codex-connector
Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Breezy!

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could this script live under .github/scripts/?
It's CI-only and uses the same peter-evans/create-pull-request pattern as upgrade-deps.yml.

@jong-kyung
Copy link
Copy Markdown
Collaborator

@nozomee Could you take a look at the failing CI?

…ocs lockfile

- Relocate fetch script to .github/scripts and update references
- Fix docs deps (no catalog:), update docs pnpm-lock
- Adjust docs scripts tsconfig for node/dom types
@socket-security
Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addednpm/​typescript@​6.0.3100100909890

View full report

@nozomee
Copy link
Copy Markdown
Author

nozomee commented May 5, 2026

@jong-kyung I’ve committed the changes , Kindly review it once!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants