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-tsrpc-app

v2.0.0

Published

Quickly create TSRPC projects

Readme

create-tsrpc-app

English | 中文


English

Quickly create full-stack TSRPC projects with modern tooling.

✨ Features

  • 🚀 Modern Toolchain - Vite + TypeScript 5 + Vitest
  • ⚛️ Multiple Frameworks - React 19 / Vue 3.5 / Vanilla JS
  • 🎨 Tailwind CSS - Optional, enabled by default
  • 📡 Dual Protocol - HTTP / WebSocket
  • 🔗 Type Sharing - Share TypeScript types between frontend and backend

📦 Usage

npx create-tsrpc-app my-app

Or use presets to skip prompts:

# React full-stack
npx create-tsrpc-app my-app -p react

# Vue 3 full-stack
npx create-tsrpc-app my-app -p vue3

# Backend only
npx create-tsrpc-app my-app -p server

# WebSocket (long connection)
npx create-tsrpc-app my-app -p react-ws

🎯 Available Templates

| Template | Frontend | Backend | Notes | |----------|----------|---------|-------| | react | React 19 + Vite | TSRPC | Recommended | | vue3 | Vue 3.5 + Vite | TSRPC | | | browser | Vanilla JS + Vite | TSRPC | No framework | | server | - | TSRPC | Backend only |

Each template supports both HTTP (-p xxx) and WebSocket (-p xxx-ws).

🛠 Requirements

  • Node.js 18+
  • npm / yarn / pnpm / bun

📁 Project Structure

my-app/
├── backend/          # Backend
│   ├── src/
│   │   ├── api/      # API implementations
│   │   └── shared/   # Shared type definitions
│   └── test/         # Vitest tests
└── frontend/         # Frontend
    ├── src/
    │   └── shared/   # ← Symlink to backend/src/shared
    └── vite.config.ts

🤝 Contributing

We welcome new framework templates! See CONTRIBUTING.md to learn how to add support for Svelte, Solid.js, and more.

📄 License

MIT © k8w


中文

快速创建 TSRPC 全栈项目,使用现代化工具链。

✨ 特性

  • 🚀 现代工具链 - Vite + TypeScript 5 + Vitest
  • ⚛️ 多框架支持 - React 19 / Vue 3.5 / 原生 JS
  • 🎨 Tailwind CSS - 可选,默认开启
  • 📡 双协议支持 - HTTP 短连接 / WebSocket 长连接
  • 🔗 类型共享 - 前后端共享 TypeScript 类型定义

📦 使用方法

npx create-tsrpc-app my-app

使用预设跳过交互式配置:

# React 全栈项目
npx create-tsrpc-app my-app -p react

# Vue 3 全栈项目
npx create-tsrpc-app my-app -p vue3

# 仅后端
npx create-tsrpc-app my-app -p server

# WebSocket 长连接
npx create-tsrpc-app my-app -p react-ws

🎯 可用模板

| 模板 | 前端 | 后端 | 说明 | |------|------|------|------| | react | React 19 + Vite | TSRPC | 推荐 | | vue3 | Vue 3.5 + Vite | TSRPC | | | browser | 原生 JS + Vite | TSRPC | 无框架 | | server | - | TSRPC | 仅后端 |

每个模板都支持 HTTP(-p xxx)和 WebSocket(-p xxx-ws)两种协议。

🛠 环境要求

  • Node.js 18+
  • npm / yarn / pnpm / bun

📁 生成的项目结构

my-app/
├── backend/          # 后端
│   ├── src/
│   │   ├── api/      # API 实现
│   │   └── shared/   # 共享类型定义
│   └── test/         # Vitest 测试
└── frontend/         # 前端
    ├── src/
    │   └── shared/   # ← 符号链接到 backend/src/shared
    └── vite.config.ts

🤝 参与贡献

欢迎贡献新的框架模板!查看 CONTRIBUTING.md 了解如何添加 Svelte、Solid.js 等框架支持。

📄 开源协议

MIT © k8w