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 🙏

© 2025 – Pkg Stats / Ryan Hefner

leo-sdk-template

v1.1.5

Published

A template generator for creating TypeScript SDK projects

Downloads

30

Readme

Getting Started

Installation

Install the leo-sdk-template globally:

npm install -g leo-sdk-template

Quick Start

Create a new SDK project:

leo-sdk my-awesome-sdk

Follow the interactive prompts to configure your project, or use the --defaults flag for quick setup:

leo-sdk my-awesome-sdk --defaults

Command Options

  • --defaults - Use default values for all prompts
  • -v, --version - Print the installed leo-sdk version
  • --with-examples - Copy example assets when the template provides them (current templates omit these by default)
  • --with-ci - Copy GitHub Actions workflows when available in the template
  • --org <org> - Set organization name
  • --author <author> - Set author name
  • --template <type> - Choose between ts-lib (default) and react-lib

Project Structure

The generated project adapts to the selected template. Below are highlights for each option.

ts-lib

  • Minimal class-based SDK scaffold exposing a createClient helper for quick customization.
  • Includes build, prepare, and release scripts so you can publish immediately.
  • Uses plain TypeScript compilation for a fast, dependency-light workflow.

react-lib

  • Provides a tiny SdkSection component that demonstrates how to ship JSX from your SDK.
  • Ships with the same build/prepare/release scripts to streamline publishing.
  • Keeps dependencies lean by compiling JSX with TypeScript only.

Next Steps

  1. Navigate to your project:

    cd my-awesome-sdk
  2. Install dependencies:

    npm install
  3. Build the scaffold:

    npm run build
  4. Publish when ready:

    npm run release

Development Workflow

  • For ts-lib: extend src/index.ts with your SDK surface and adjust options as needed.
  • For react-lib: build out src/index.ts with additional components or hooks to expose to consumers.
  • Keep documentation and CI workflows aligned with your release process.

Customization

The template provides a solid foundation, but you can customize it:

  • Tune TypeScript options via tsconfig.json to target your consumers.
  • Layer in linting, testing, or documentation scripts as your SDK grows.
  • Add CI or examples by creating the expected folders before re-running the generator.