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

create-selrux

v0.0.14

Published

Scaffold a Selrux convention-based React app (minimal or full shell)

Readme

create-selrux

用模板创建 Selrux / @vlian/app 约定式 React 应用,用法对齐 pnpm create umi --template …。

用法

pnpm create selrux@latest my-app --template minimal
pnpm create selrux@latest my-app --template shell

| 模板 | 依赖 | Registry | | --- | --- | --- | | minimal | @vlian/app + peers | 仅公网 | | shell | 只额外声明 @selrux/shell;默认写私服 http://www.lixw.site:18081/repository/npm-hosted/,可用 --registry 覆盖 | Nexus |

请先确保 @vlian/app 已发布到 npmjs。shell 模板还需本机对 Nexus 有认证。

模板

| ID | 说明 | | --- | --- | | minimal(别名 basic / simple) | 精简页:仅首页,精简默认布局 | | shell(别名 full / admin) | 完整壳:shell: true + 布局示例 |

常用选项

-t, --template <id>     模板
--pm <pnpm|npm|yarn>    包管理器(默认 pnpm)
--name <pkg>            package.json name
--selrux-version <ver>  @vlian/app 与 @selrux/* 版本(默认 app 0.0.13 / shell 0.0.8)
--registry <url>        shell 私服(默认 http://www.lixw.site:18081/repository/npm-hosted/)
--workspace             依赖使用 workspace:*(本 monorepo 内联调)
--no-install            只生成文件
--force                 允许写入非空目录

发布脚手架后如何测

pnpm create selrux@latest /tmp/demo-minimal --template minimal --no-install
pnpm create selrux@latest /tmp/demo-shell --template shell --no-install

本地调试

node packages/create-selrux/bin/create-selrux.mjs /tmp/demo --template minimal --no-install
pnpm --filter create-selrux test

发版顺序见 publish-shell-nexus.md:shell → @vlian/app → create-selrux。

文档

正式文档:http://www.lixw.site:18175/