npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@astroscope/eslint-plugin

v0.1.0

Published

Additional ESLint rules for Astro projects. Plays well with eslint-plugin-astro.

Downloads

550

Readme

@astroscope/eslint-plugin

Note: This package is in active development. APIs may change between versions.

Additional ESLint rules for Astro projects. Plays well with eslint-plugin-astro.

Installation

npm install -D @astroscope/eslint-plugin

Setup

// eslint.config.js
import astroscope from '@astroscope/eslint-plugin';

export default [
  // ... other configs (eslint-plugin-astro, typescript-eslint, etc.)
  ...astroscope.configs.recommended,
];

Rules

| Rule | Severity | Fixable | Type-aware | Description | | --------------------------------- | -------- | ------- | ---------- | ------------------------------------------------------------------------------- | | @astroscope/no-excess-jsx-props | error | | yes | flag excess properties passed to hydrated React islands (client:* elements) | | @astroscope/no-html-comments | error | yes | | disallow HTML comments in .astro templates — they render into the output HTML |

Rule Details

no-excess-jsx-props

Every property passed to a hydrated (client:*) component is serialized into the page HTML. Spreading a server object wider than the declared prop type ships those extras — DB rows, session tokens, internal IDs — to every visitor.

---
const user = { name: 'x', email: 'y', passwordHash: 'secret' };
---

<!-- flagged: 'passwordHash' -->
<UserCard client:load {...user} />

<!-- clean -->
<UserCard client:load name={user.name} email={user.email} />

Also catches excess fields inside nested objects and array elements:

---
// <ArticleList> declares only { title; excerpt } on each element
const articles = [
  { id: 'a1', title: 'Hello', excerpt: '…', body: '…', authorEmail: '[email protected]' },
];
---

<!-- flagged: 'articles[].authorEmail', 'articles[].body', 'articles[].id' -->
<ArticleList client:load articles={articles} />

no-html-comments

HTML comments (<!-- -->) in .astro templates render into the served HTML and are visible to clients. JSX-style comments ({/* */}) are stripped at compile time and never reach the browser.

<!-- flagged --><!-- debug: session={session} --><!-- clean -->{/* debug: session={session} */}

Autofix rewrites <!-- x -->{/* x */}. Declines to autofix when the comment body contains */ (would terminate the JSX comment early).

Compatibility

  • ESLint 9 and 10
  • Works alongside eslint-plugin-astro (order-independent), or standalone

License

MIT