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

@yetistudio/astro-resilient

v1.0.1

Published

Generate resilient text and JSON builds from Astro static output.

Readme

@yeti/astro-resilient

Generate a resilient, text-first version of your Astro site automatically.

This integration builds a parallel lightweight representation of your website that can be consumed by:

  • CLI tools
  • Low-bandwidth clients
  • Mesh / IPFS networks
  • Future Yeti Grid infrastructure

✨ What it does

After a normal Astro build:

dist/        → normal HTML site
dist-light/  → text + JSON representation
ipfs-site/   → ready-to-upload IPFS artifact (optional)

Each page gets:

/about → HTML
/about.txt → readable text
/about.json → structured content

🚀 Installation

pnpm add -D @yeti/astro-resilient

⚙️ Usage

import { defineConfig } from "astro/config";
import resilient from "@yeti/astro-resilient";

export default defineConfig({
  integrations: [
    resilient({
      outDir: "dist-light",
      selector: "main",
      formats: ["txt", "json"],
      ipfs: true,
    }),
  ],
});

📦 Output Structure

dist/
dist-light/
  about.txt
  about.json

ipfs-site/
  manifest.json
  html/
  light/

🌐 IPFS Deployment

Upload:

ipfs add -r ipfs-site

Then serve based on headers:

| Accept Header | Served File | |------|--------| | text/html | /html/... | | text/plain | /light/...txt | | application/yeti-light+json | /light/...json |


🧠 Data Attributes

You can enrich the light version using HTML attributes.


Context

Adds explanatory text.

<div data-resilient-context="This requires a wallet">
  Send Token
</div>

Replace

Replace complex UI with text.

<div data-resilient-replace="Not available in light mode">
  <canvas>...</canvas>
</div>

Action

Expose structured actions (Web3, CLI, etc.)

<div
  data-resilient-action="ethereum:0x..."
  data-resilient-context="Review before signing"
>
  Send Token
</div>

📄 Text Output Example

Send Token [action:1]

Actions:
[action:1] Send Token — Review before signing

📄 JSON Output Example

{
  "title": "Example",
  "text": "Send Token",
  "actions": [
    {
      "id": 1,
      "label": "Send Token",
      "uri": "ethereum:0x...",
      "context": "Review before signing"
    }
  ]
}

🧭 Design Philosophy

HTML → UI
TXT  → readable fallback
JSON → machine interface

This allows the same content to work across:

  • Browsers
  • CLI tools
  • Low-bandwidth environments
  • Decentralized networks

🔥 Future Ideas

  • CLI browser (yeti read <url>)
  • Action execution (wallet deep links)
  • Mesh / radio transmission
  • Offline-first content distribution

🧩 Why this matters

Modern web apps are heavy and fragile.

This provides:

  • Resilience
  • Accessibility
  • Portability
  • Decentralization readiness

🧑‍💻 License

MIT