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

@jet-w/astro-blog

v0.2.10

Published

A modern Astro blog theme with Vue and Tailwind CSS support

Readme

@jet-w/astro-blog

A modern, feature-rich Astro blog theme with Vue and Tailwind CSS support. Provides a complete blogging solution with multi-language support, rich markdown capabilities, and interactive components.

Official Website: https://jet-w.github.io/jet-w.astro-blog/

Features

  • Multi-Language Support (i18n) - Built-in internationalization with configurable locales
  • Blog System - Posts, tags, categories, archives, and pagination
  • Search - Full-text search powered by Fuse.js
  • RSS Feed - Automatic RSS feed generation
  • Dark Mode - Theme switching support
  • Rich Markdown - Code highlighting, math equations (KaTeX), Mermaid diagrams, custom containers
  • Interactive Components - Slides, ECharts, video embeds (YouTube, Bilibili)
  • Responsive Design - Mobile-friendly layouts with Tailwind CSS

Installation

npm install @jet-w/astro-blog

Peer Dependencies

Make sure you have these packages installed:

npm install astro @astrojs/mdx @astrojs/rss @astrojs/tailwind @astrojs/vue tailwindcss vue

Quick Start

1. Configure Astro

Add the integration to your astro.config.mjs:

import { defineConfig } from 'astro/config';
import { astroBlog } from '@jet-w/astro-blog';

export default defineConfig({
  integrations: [astroBlog()],
});

2. Set Up Content Collections

Create src/content/config.ts:

import { defineCollection, z } from 'astro:content';

const posts = defineCollection({
  type: 'content',
  schema: z.object({
    title: z.string(),
    description: z.string().optional(),
    date: z.date(),
    tags: z.array(z.string()).optional(),
    categories: z.array(z.string()).optional(),
    draft: z.boolean().optional(),
  }),
});

export const collections = { posts };

3. Create Your First Post

Create a markdown file in src/content/posts/:

---
title: Hello World
date: 2024-01-01
tags: [hello, first-post]
---

Welcome to my blog!

Configuration

Site Configuration

Create src/config/site.ts:

import { defineSiteConfig } from '@jet-w/astro-blog/config';

export default defineSiteConfig({
  title: 'My Blog',
  description: 'A blog about...',
  author: 'Your Name',
  lang: 'en',
});

i18n Configuration

Create src/config/i18n.ts:

import { defineI18nConfig } from '@jet-w/astro-blog/config';

export default defineI18nConfig({
  defaultLocale: 'en',
  locales: ['en', 'zh-cn'],
  translations: {
    en: {
      'nav.home': 'Home',
      'nav.blog': 'Blog',
      // ...
    },
    'zh-cn': {
      'nav.home': '首页',
      'nav.blog': '博客',
      // ...
    },
  },
});

Sidebar Configuration

Create src/config/sidebar.ts:

import { defineSidebarConfig } from '@jet-w/astro-blog/config';

export default defineSidebarConfig({
  // Manual configuration
  items: [
    { label: 'Getting Started', link: '/docs/getting-started' },
    { label: 'Guide', items: [...] },
  ],
  // Or use auto-scan
  autoScan: {
    directory: 'docs',
  },
});

Layouts

The theme provides several layouts:

  • BaseLayout - Standard page layout
  • PageLayout - Blog post layout with sidebar
  • AboutLayout - Profile/about page layout
  • SlidesLayout - Presentation slides layout
---
import { PageLayout } from '@jet-w/astro-blog/layouts';
---

<PageLayout title="My Page">
  <p>Page content here</p>
</PageLayout>

Components

Import components as needed:

---
import { SearchBox, ThemeToggle, LanguageSwitcher } from '@jet-w/astro-blog/components';
---

<SearchBox />
<ThemeToggle />
<LanguageSwitcher />

Available Components

  • UI: SearchBox, ThemeToggle, LanguageSwitcher, MobileMenu, Pagination
  • Blog: NavigationTabs, RelatedPosts, TagList
  • Media: Video, YouTube, Bilibili, Slides
  • About: TagCard, SocialLinks, Timeline

Markdown Extensions

Custom Containers

:::tip
This is a tip
:::

:::warning
This is a warning
:::

:::danger
This is dangerous
:::

:::details Summary
Hidden content here
:::

Math Equations

Inline: $E = mc^2$

Block:
$$
\int_0^\infty e^{-x^2} dx = \frac{\sqrt{\pi}}{2}
$$

Mermaid Diagrams

```mermaid
graph TD
    A[Start] --> B{Decision}
    B -->|Yes| C[OK]
    B -->|No| D[Cancel]
```

Tabs

:::tabs
@tab JavaScript
console.log('Hello');

@tab Python
print('Hello')
:::

Project Structure

src/
├── components/     # Vue and Astro components
├── config/         # Configuration files
├── layouts/        # Layout templates
├── pages/          # Route pages
├── plugins/        # Markdown/MDX plugins
├── styles/         # Global styles
├── types/          # TypeScript definitions
└── utils/          # Utility functions

License

Apache 2.0

Author

Haiyue

Links