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

@hosaki/create-template-ts

v1.7.9

Published

Scaffold a modular TypeScript project for scripts and tooling

Readme

English · 繁體中文

create-template-ts

npm version npm downloads license node pnpm

快速建立模組化的 TypeScript 專案,適合腳本與工具開發。

使用方式

pnpm

pnpm create @hosaki/template-ts

npm

npx @hosaki/create-template-ts

依照提示選擇專案名稱與範本,CLI 會自動抓取最新的套件版本。

範本

| 範本 | 說明 | |------|------| | ts-script | TypeScript 腳本/工具專案,內含 neverthrow、ts-pattern、eslint、tsx、rolldown | | ts-library | TypeScript 函式庫專案,內含 tsdown、vitest、eslint、release-it | | hono | Hono API 伺服器,內含 Drizzle ORM(SQLite)、Scalar OpenAPI 文件、pino 日誌、neverthrow | | nuxt-content | Nuxt 4 內容網站,內含 @nuxt/content v3、i18n(en/zh-TW)、UnoCSS、OKLCH 色彩系統,元件以 TSX 語法撰寫 |

nuxt-content 啟動順序

dev 伺服器會讀取 git log 來填入內容的時間戳,因此執行 dev 之前必須先有 git repository 且至少存在一筆 commit。另外,Nuxt 會在第一次 dev 時生成型別檔案,在此之前執行 checklint 會失敗。

git init
git add -A && git commit -m "init"
pnpm install
pnpm dev   # 至少執行一次,check/lint 才能正常運作

開發

pnpm install
pnpm dev       # 監聽模式
pnpm build     # 用 rolldown 打包
pnpm check     # 型別檢查
pnpm lint      # eslint

更新紀錄

請見 CHANGELOG.md

授權

MIT © Bryan Chu