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

astro-theme-stalux

v1.0.0

Published

Stalux - 一款高效、美观、灵活的 Astro 博客主题

Readme

🌟 Stalux - 高效、美观、灵活的 Astro 博客主题

Stalux 是一款基于 Astro 框架开发的静态博客主题,专为内容创作者设计,追求高性能、美观直观的用户界面与灵活的配置系统。主题名称"Stalux"中的"Sta"代表静态(Static),"lux"代表奢华(Luxury)的外观体验。

📦 主题结构

Stalux 主题采用清晰的项目结构,便于管理和定制:

├── public/              # 静态资源 (图片、字体等)
├── src/
│   ├── _config.ts       # 自定义配置文件
│   ├── components/      # UI组件
│   ├── content/         # 内容集合 (博客文章、关于页面)
│   │   ├── posts/       # 博客文章
│   │   └── about/       # 关于页面
│   ├── consts.ts        # 默认配置常量
│   ├── layouts/         # 页面布局组件
│   ├── pages/           # 页面定义
│   ├── styles/          # 全局样式
│   ├── types.ts         # TypeScript类型定义
│   └── utils/           # 工具函数
├── astro.config.mjs     # Astro 配置
└── tsconfig.json        # TypeScript 配置

简单,但不简陋;美观,但不浮华。

Stalux 是一款基于 Astro 框架开发的静态博客主题,专为内容创作者设计,追求高性能、美观直观的用户界面与灵活的配置系统。主题名称"Stalux"中的"Sta"代表静态(Static),"lux"代表奢华(Luxury)的外观体验

~~其实是我瞎编的~~

✨ 特性

  • 🚀 极致性能 - 基于 Astro 构建,100/100 Lighthouse 性能评分
  • 🎨 美观直观 - 精心设计的界面,提供清晰的阅读体验
  • ⚙️ 灵活配置 - 丰富的自定义选项,通过 _config.ts 轻松配置
  • 📱 响应式设计 - 在各种设备上提供出色体验
  • 🌓 暗色模式 - 内置浅色/深色主题切换功能
  • 💬 评论系统 - 集成 Waline 评论系统,轻量且功能丰富
  • 🔍 SEO优化 - 内置多种SEO优化技术,提高搜索引擎可见性
  • 📰 RSS 支持 - 自动生成 RSS 订阅源
  • 🗺️ 站点地图 - 自动生成站点地图,提升 SEO
  • 📝 Markdown & MDX - 支持丰富的 Markdown 和 MDX 内容创作

🚀 开始使用

安装依赖

用其他包管理器也可以,比如说yarn,pnpm,bun...

npm install

开发服务器

npm dev

启动后访问 http://localhost:4321 查看您的站点。

构建项目

npm build

生成的静态文件将位于 ./dist/ 目录。

预览构建结果

npm preview

📝 内容创作

Stalux 支持通过 Markdown 和 MDX 创建内容,文件放置在 src/content/ 目录下:

  • 博客文章: 在 src/content/posts/ 中创建 .md.mdx 文件
  • 关于页面: 在 src/content/about/ 中创建 .md.mdx 文件

Frontmatter 配置

每个 Markdown 文件需要在顶部添加 frontmatter 配置:

---
title: 文章标题
tags:
    - 标签1
    - 标签2
categories:
    - 分类
date: 2025-5-10T10:00:00+08:00
---

文章内容...

⚙️ 主题配置

Stalux 提供了灵活的配置系统,通过修改 src/_config.ts 文件进行自定义:

  1. useConfig 设置为 true 以启用自定义配置
  2. 修改 siteConfig 对象中的各项配置
// src/_config.ts
export const useConfig: boolean = true;

export const siteConfig: SiteConfig = {
  // 站点基本信息
  title: '我的博客',
  siteName: '我的博客',
  author: '作者名',
  description: '博客描述...',
  
  // 其他配置...
}

详细配置项可参考主题文档中的配置指南。

🌐 部署

Stalux 主题生成的是纯静态网站,可以轻松部署到:

🧞 常用命令

所有命令在项目根目录下运行:

| 命令 | 功能 | | :----------------------- | :----------------------------------------------- | | npm install | 安装依赖 | | npm dev | 启动本地开发服务器,地址为 localhost:4321 | | npm build | 构建生产站点到 ./dist/ 目录 | | npm preview | 在部署前本地预览构建结果 | | npm astro ... | 运行CLI命令,如 astro add, astro check |

🙏 致谢

Stalux 主题基于 Astro 框架开发,同时受到多个优秀开源项目的启发。特别感谢:

  • Astro - 提供了强大的静态站点生成框架
  • Waline - 提供了轻量级评论系统
  • 所有为此项目贡献代码和想法的贡献者

📄 许可证

Stalux 主题基于 MIT 许可证开源,您可以自由地使用、修改和分发。


开始使用 Stalux 创建您的博客,展示您的创意与知识吧!如有问题或建议,欢迎通过 GitHub 提交 Issue 或 Pull Request。