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

@sansavision/create-pulse

v0.4.6

Published

Scaffold a new Pulse application

Readme

@sansavision/create-pulse

The official scaffolding tool for creating Pulse applications.

create-pulse generates a battle-tested, TypeScript-ready React application pre-configured to connect to a Pulse Relay. It eliminates the boilerplate of setting up WebSocket/WebTransport connections and provides robust React hooks.

Usage

You can create a new Pulse project interactively by running:

npm create pulse@latest
# or
npx @sansavision/create-pulse
# or
bunx @sansavision/create-pulse

You can optionally specify the project name directly:

npx @sansavision/create-pulse my-pulse-app

Available Templates

When you run create-pulse, you'll be prompted to select a template.

1. Next.js + Auth (Full Demo) ⭐

A full-featured demo application showcasing the full capabilities of Pulse.

  • Better Auth with email/password, local SQLite + Drizzle ORM
  • Webhook auth — Pulse relay verifies tokens via your Next.js API
  • 5 comprehensive demos: Real-time Chat, Watch Together, Durable Queues (with offline simulation), Game State Sync, E2E Encrypted Chat
  • Multi-user testing with separate browser tabs/incognito windows
  • Built with Next.js 16, React 19, Tailwind CSS v4, TypeScript

2. Watch Together (React + TS)

A clean implementation of the "Watch Together" synchronized video player.

  • Features a custom usePulse hook for lifecycle management.
  • Handles syncing play, pause, and seek events across clients natively via the Pulse Relay.
  • Built with React, Vite, Tailwind CSS, and TypeScript.

3. All Features (React + TS)

A kitchen-sink boilerplate that integrates multiple features.

  • Perfect for exploring the SDK limits.
  • Contains stubs and route setups for Chat, Metrics, and Video sync.
  • Built with React, Vite, Tailwind CSS, and TypeScript.

4. Durable Queues (React + TS)

Demonstrates persistent message queues with publish/consume/ack workflows.

  • Supports multiple storage backends (Memory, WAL, Postgres, Redis).
  • Shows offline resilience and message recovery.
  • Built with React, Vite, Tailwind CSS, and TypeScript.

5. Vanilla JS (Basic)

A minimal setup with zero frameworks.

  • Raw WebSocket connection to the Pulse Relay.
  • Good for understanding the protocol at a low level.

Running Your Scaffolded App

After your app is generated:

  1. Navigate to the project directory:
    cd my-pulse-app
  2. Install dependencies:
    npm install
  3. Start the dev server:
    npm run dev

Note: The templates are configured by default to connect to a local Pulse Relay running at ws://localhost:4001. Start the server with pulse serve (or pulse dev for the full dev environment), or update your config to point to a production relay URL.

For the Next.js + Auth template, also start the relay with webhook auth:

npx @sansavision/pulse-cli serve --auth-mode webhook --auth-webhook http://localhost:3000/api/pulse/verify