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

shirones-test

v0.1.4

Published

An expressive, anime-inspired blog theme built on Material 3 Expressive, Astro 7, and Svelte 5

Readme

Shirone

An expressive, anime-inspired Astro blog theme built on Material 3 Expressive, Astro 7 and Svelte 5 — installable as a single npm package.

Quick start

No Astro starter and no manual installs — init works from a completely empty folder. It scaffolds the configuration, example content and static assets, writes a package.json, and installs astro, the theme and its peer dependencies for you. The package requires Node.js 22.12 or newer.

mkdir my-blog
cd my-blog
npx shirones init   # scaffolds everything and installs the dependencies
pnpm dev

Nothing else is required — routes, layouts, components, styles and the markdown pipeline all come from the package. init uses the pnpm version recorded when this package was published and writes a pnpm project. If you use npm or yarn, you may migrate the generated project yourself; init does not configure those package managers.

About that ERR_PNPM_IGNORED_BUILDS

pnpm 10+ refuses to run a dependency's install script until you approve it, and the theme needs two: sharp (Astro's image optimisation) and esbuild (loading your TypeScript config). init writes the approval into pnpm-workspace.yaml before it installs, so the plain npx shirones init flow never hits it. You only see ERR_PNPM_IGNORED_BUILDS if you pnpm add shirones-test yourself before running init — in that case run npx shirones init (which repairs the approval) followed by pnpm install. npm and yarn ignore the pnpm approval file, but init still only defines pnpm's initialization behavior; migrating to another package manager is manual.

Project layout

my-blog/
├── astro.config.mjs        # the only Astro config
├── src/
│   ├── content.config.ts   # one line: defineCollections()
│   ├── components/         # drop a file here to override a theme component
│   └── layouts/            # …same for layouts
├── shirones/
│   ├── config/             # typed site configuration
│   │   └── data/           # friends, projects, skills, timeline, …
│   └── content/            # posts, moments, about
├── public/                 # favicons and static assets
└── package.json

Configuration

Every module under shirones/config/ shadows the theme's default of the same name and keeps full TypeScript types:

// shirones/config/siteConfig.ts
import type { SiteConfig } from "@/types/config";

export const siteConfig: SiteConfig = {
  site: "https://example.com/",
  title: "My Blog",
  themeColor: { hue: 315, fixed: false, style: "tonalSpot", spec: "2025" },
  // …
};

Delete a file to fall back to the theme default.

Overriding components

Mirror the theme's structure inside your own src/components/:

src/components/atoms/blog/PostCard.astro   ← replaces the theme's PostCard
src/layouts/Layout.astro                   ← replaces the theme's Layout

Or wire it explicitly in astro.config.mjs:

shirones({
  components: {
    "atoms/blog/PostCard": "./src/components/MyPostCard.astro",
  },
})

See manifest.json inside the package for the inventory of overridable components, layouts and config modules. It is an inventory, not a promise that every component is loaded by the default routes: some are feature-gated, library-only or integration-only.

Updating and checking for drift

Re-running init on an existing project is report-only by default and never overwrites your files. Use --update for safe additions or --force for a backed-up template replacement:

npx shirones init            # report drift (missing files, stale files, changed fields) — changes nothing
npx shirones init --update   # restore missing files and refresh the scaffold (config, root files, public assets)
npx shirones init --force    # replace the template trees after backing up the previous copy
npx shirones info            # detailed status: Node, package manager, paths, content, inventory and drift

Every CLI command begins with the package-manager contract and a link to the project repository. info is read-only: it reports the installed package, Node compatibility, package/upstream provenance, project dependency/pinning, content counts, theme inventory and actionable drift details.

The theme only adds what is missing during an update; anything you wrote is kept. --force is different by design: it replaces the template trees under shirones/ and public/, then replaces the project-level scaffold files. Before anything is replaced, the previous files and directories are moved to .shirones-backup/, so you can recover custom posts, config, assets or root files from that directory.

Anime live providers in package mode

The default anime source is local and does not make network requests. The optional development-time Bangumi and Bilibili providers are included in the published package, so source.kind: "snapshot" with fetchOnDev: true keeps working after installation from npm. Provider requests run from the user project root; Bilibili's local cover mode writes downloaded covers under the user project's public/ directory.

Importing from the package

Only import from the documented entry points (shirones, shirones/collections, shirones/types/*). Deep shirones/src/... paths are internal implementation detail and may move between releases; mirror the theme's structure in your own src/ tree instead.

Options

shirones({
  paths: { root: "shirones" },     // content/config directory
  components: {},                  // explicit override map
  fonts: { subset: true },         // build-time font subsetting
  pagefind: true,                  // search index after build
  bundledIntegrations: true,       // svelte / mdx / sitemap / swup / …
  injectRoutes: true,
  excludeRoutes: [],               // e.g. ["/anime", "/devices"]
})

License

MIT