Skip to content

Fixes star history - #3152

Open
Mubelotix wants to merge 1 commit into
npmx-dev:mainfrom
Mubelotix:patch-1
Open

Fixes star history#3152
Mubelotix wants to merge 1 commit into
npmx-dev:mainfrom
Mubelotix:patch-1

Conversation

@Mubelotix

Copy link
Copy Markdown

This new provider requires no token

🔗 Linked issue

Fixes #3042

🧭 Context

📚 Description

This new provider requires no token
@vercel

vercel Bot commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
npmx.dev Ready Ready Preview Aug 6, 2026 6:10pm
2 Skipped Deployments
Project Deployment Actions Updated (UTC)
docs.npmx.dev Ignored Ignored Preview Aug 6, 2026 6:10pm
npmx-lunaria Ignored Ignored Aug 6, 2026 6:10pm

Request Review

@gameroman gameroman added the needs discussion An idea that needs more discussion to understand the scope and impact. label Aug 6, 2026

@gameroman gameroman left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

How does it work?

@coderabbitai

coderabbitai Bot commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

📝 Walkthrough

Summary by CodeRabbit

  • Documentation
    • Updated the Star History embed links in the README.
    • Removed the embedded access token from the documentation.

Walkthrough

The README Star History embed now uses star-history.dera.page provider and chart URLs for light and dark themes. The previous sealed-token URLs were removed.

Changes

Star History embed

Layer / File(s) Summary
Update Star History links
README.md
The Star History provider and chart URLs now use star-history.dera.page endpoints for light and dark themes. Sealed-token URLs were removed.

Possibly related PRs

Suggested reviewers: danielroe

🚥 Pre-merge checks | ✅ 4
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly identifies the Star History fix described in the changeset.
Description check ✅ Passed The description explains that the new Star History provider does not require a token and links the relevant issue.
Linked Issues check ✅ Passed The changes update the README Star History embed and replace the token-based provider as required by issue [#3042].
Out of Scope Changes check ✅ Passed The changes are limited to updating the Star History embed in README.md and contain no unrelated work.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@README.md`:
- Around line 201-205: Update the CSP image-source allowlist in the security
headers configuration to permit https://star-history.dera.page, and update the
security headers test to assert this origin is allowed. Remove
https://api.star-history.com only if no remaining page uses it.
🪄 Autofix

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 540760b2-5edb-4b00-be33-6ed0df94fbf3

📥 Commits

Reviewing files that changed from the base of the PR and between 769afd0 and 6200893.

📒 Files selected for processing (1)
  • README.md

Comment thread README.md
Comment on lines +201 to +205
<a href="https://star-history.dera.page/#npmx-dev/npmx.dev&type=date&legend=top-left">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/chart?repos=npmx-dev/npmx.dev&type=date&theme=dark&legend=top-left&sealed_token=1RI8ZdgQL3NncQeMm3sTwgYPL_7_ELdIGe5yiswir2iZipZwBtsYd4Y6zkO2fZLUP3wRcDN38GLKA4B1b3JE3pxEg7x_w8uOivwT3rL8Jcr-866HKSRMpjqmEwPavKp57ZdTyo04KHRbKthXVe360AJhcjmbXWxKVO9EDFh995ssNIH32hNArVB4MwAm" />
<source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/chart?repos=npmx-dev/npmx.dev&type=date&legend=top-left&sealed_token=1RI8ZdgQL3NncQeMm3sTwgYPL_7_ELdIGe5yiswir2iZipZwBtsYd4Y6zkO2fZLUP3wRcDN38GLKA4B1b3JE3pxEg7x_w8uOivwT3rL8Jcr-866HKSRMpjqmEwPavKp57ZdTyo04KHRbKthXVe360AJhcjmbXWxKVO9EDFh995ssNIH32hNArVB4MwAm" />
<img alt="Star History Chart" src="https://api.star-history.com/chart?repos=npmx-dev/npmx.dev&type=date&legend=top-left&sealed_token=1RI8ZdgQL3NncQeMm3sTwgYPL_7_ELdIGe5yiswir2iZipZwBtsYd4Y6zkO2fZLUP3wRcDN38GLKA4B1b3JE3pxEg7x_w8uOivwT3rL8Jcr-866HKSRMpjqmEwPavKp57ZdTyo04KHRbKthXVe360AJhcjmbXWxKVO9EDFh995ssNIH32hNArVB4MwAm" />
<source media="(prefers-color-scheme: dark)" srcset="https://star-history.dera.page/svg?repos=npmx-dev/npmx.dev&type=date&theme=dark&legend=top-left" />
<source media="(prefers-color-scheme: light)" srcset="https://star-history.dera.page/svg?repos=npmx-dev/npmx.dev&type=date&legend=top-left" />
<img alt="Star History Chart" src="https://star-history.dera.page/svg?repos=npmx-dev/npmx.dev&type=date&legend=top-left" />

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🎯 Functional Correctness | 🟠 Major | ⚡ Quick win

Allow the new image origin in the page CSP before merging.

The <picture> sources and fallback <img> now request https://star-history.dera.page. modules/security-headers.ts:36-47 only lists https://api.star-history.com in img-src, so the rendered page can block the new chart images.

Add the new origin to the CSP allowlist. Update test/e2e/security-headers.spec.ts:3-22 to assert the new origin. Retain the legacy origin only if another page still uses it.

Suggested follow-up
 const cspOnlyImgOrigins = [
   'https://api.star-history.com',
+  'https://star-history.dera.page',
 ]

-expect(cspContent).toContain('https://api.star-history.com')
+expect(cspContent).toContain('https://star-history.dera.page')
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@README.md` around lines 201 - 205, Update the CSP image-source allowlist in
the security headers configuration to permit https://star-history.dera.page, and
update the security headers test to assert this origin is allowed. Remove
https://api.star-history.com only if no remaining page uses it.

@codecov

codecov Bot commented Aug 6, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ All tests successful. No failed tests found.

📢 Thoughts on this report? Let us know!

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

Labels

needs discussion An idea that needs more discussion to understand the scope and impact.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update Star History chart in README

2 participants