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-golden

v1.4.10

Published

Create a new golden-template project from the latest GitHub repository (requires GITHUB_TOKEN)

Readme

create-golden

用于从 GitHub 仓库创建 golden-template 项目的命令行工具。

使用前准备

由于仓库是私有的,使用前需要 GitHub Personal Access Token。

方式一:交互式输入(推荐,最简单) 直接运行命令,脚本会提示你输入 token。首次输入后会自动保存到本地,后续使用无需重复输入。

方式二:环境变量(可选) 如果已设置环境变量 GITHUB_TOKEN,会优先使用环境变量,不会读取本地保存的 token。

# Windows (PowerShell)
$env:GITHUB_TOKEN="your_token_here"

# Windows (CMD)
set GITHUB_TOKEN=your_token_here

# Linux/Mac
export GITHUB_TOKEN=your_token_here

如何创建 Token:

  1. 访问 https://github.com/settings/tokens
  2. 点击 "Generate new token" -> "Generate new token (classic)"
  3. 输入 token 名称,选择 repo 权限
  4. 点击 "Generate token" 并复制 token

Token 存储位置:

  • Windows: C:\Users\你的用户名\.create-golden-token
  • Linux/Mac: ~/.create-golden-token

使用方法

初始化项目

# 在当前目录初始化项目
yarn create golden

# 或显式指定 init 命令
yarn create golden init

# 在指定目录初始化项目
yarn create golden init [project-name]

# 兼容旧用法(直接指定项目名)
yarn create golden [project-name]

如果不指定项目名称,会在当前目录初始化项目。

添加可选内容

# 添加 modal 组件(待实现)
yarn create golden modal

注意事项

  • 需要拥有 kuidream/golden-base-specs 仓库的访问权限
  • 首次使用需要提供有效的 GitHub Personal Access Token(交互式输入或环境变量)
  • Token 会自动保存到本地,后续使用无需重复输入
  • GitHub 已不支持密码认证,必须使用 Personal Access Token
  • 会自动排除 node_modulesdist 文件夹