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

@kyro-cms/astro

v0.12.72

Published

Astro 5+ integration, Content Layer loaders, Actions, Middleware, Dev Toolbar widget, and Zero-JS components for Kyro CMS

Readme

@kyro-cms/astro

Astro 5+ & 7+ integration, Content Layer loaders, Actions, Middleware, Dev Toolbar widget, and Zero-JS components for Kyro CMS.

npm version License: MIT


Features

  • Astro Integration (kyro()): One-line setup for Kyro CMS backend, API endpoints, and Astro Dev Toolbar.
  • Astro Dev Toolbar App (kyroDevToolbarIntegration()): Built-in developer widget in Astro's toolbar for quick access to Kyro Admin, API status, and content management.
  • Content Layer Loader (kyroLoader): Native Astro 5+ Content Layer loader for streaming collections directly into Astro's getCollection().
  • Server Actions & Middleware: Type-safe Astro server actions (kyroAction) and auth middleware (kyroAuthMiddleware).
  • Zero-JS Astro Components: High-performance SSR components (<KyroImage />, <KyroRichText />, <KyroServerIsland />) with zero client-side JavaScript overhead.

Installation

pnpm add @kyro-cms/astro @kyro-cms/core

Quick Start

1. Add Integration to astro.config.mjs

import { defineConfig } from 'astro/config';
import react from '@astrojs/react';
import node from '@astrojs/node';
import kyro from '@kyro-cms/astro';
import { kyroAdmin } from '@kyro-cms/admin/integration';

export default defineConfig({
  output: 'server',
  adapter: node({ mode: 'standalone' }),
  integrations: [
    react(),
    kyro(), // Includes Kyro CMS API
    kyroAdmin(),
  ],
});

Features & Usage

🛠️ Astro Dev Toolbar Widget

The Dev Toolbar app provides a quick-access panel right inside Astro's toolbar during astro dev.

import { kyroDevToolbarIntegration } from '@kyro-cms/astro';

// Added explicitly as an optional integration:
integrations: [
  kyro(),
  kyroDevToolbarIntegration(),
]
  • Open Admin: One-click shortcut to /admin.
  • API Status: Quick link to /api health and endpoints.
  • Toggle shortcut: Press Shift + Option + D (Mac) or Shift + Alt + D (Windows) in your browser to toggle.

📦 Content Layer Loader (kyroLoader)

Use Kyro CMS content seamlessly with Astro 5+ Content Collections (src/content/config.ts):

import { defineCollection } from 'astro:content';
import { kyroLoader } from '@kyro-cms/astro';

export const collections = {
  posts: defineCollection({
    loader: kyroLoader({
      collection: 'posts',
      depth: 2,
    }),
  }),
};

Query in your .astro pages:

---
import { getCollection } from 'astro:content';

const posts = await getCollection('posts');
---

{posts.map((post) => (
  <article>
    <h2>{post.data.title}</h2>
  </article>
))}

🖼️ Zero-JS UI Components

<KyroImage />

Optimized responsive image renderer for Kyro Media assets:

---
import { KyroImage } from '@kyro-cms/astro/components';
---

<KyroImage 
  src={post.data.featuredImage} 
  alt={post.data.title}
  width={800}
  height={600}
  class="rounded-xl shadow-md"
/>

<KyroRichText />

Zero-JS HTML renderer for Kyro Slate / TipTap Lexical RichText JSON structures:

---
import { KyroRichText } from '@kyro-cms/astro/components';
---

<KyroRichText content={post.data.content} />

<KyroServerIsland />

Render dynamic Kyro content asynchronously with Astro Server Islands fallback:

---
import { KyroServerIsland } from '@kyro-cms/astro/components';
---

<KyroServerIsland collection="comments" id={post.id}>
  <div slot="fallback">Loading comments...</div>
</KyroServerIsland>

License

MIT