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

@omysoul/cf-ws-do

v0.0.5

Published

sv add-on for @omysoul/cf-ws-do

Readme

sv community add-on: @omysoul/cf-ws-do

[!IMPORTANT] Svelte maintainers have not reviewed community add-ons for malicious code. Use at your discretion

This allows DOs and WebSockets to run in dev using a single worker with live reload (but not hot module). This is a DX game changer for developing collaborative apps on Cloudflare.

These can be nested in routes with a naming convention .do.ts or ws.ts. You can even name a file .do.svelte.ts this gives you rune based server side reactive state in your DO (just because you can does not mean you should). The WebSockets also pass through the server hooks so they can make use of auth etc.

cloudflare: imports also work.

Usage

First to create a project run:

npm create cloudflare@latest

Choose framework then sveltekit and npm as the package manager.

Then run:

npx sv add @omysoul/cf-ws-do
npm run cf-typegen
npm run dev

Say yes to install demo routes. Having demo route will help LLMs add the routes you want.

Try opening the demo routes:

http://localhost:8787/do-examples/counter
http://localhost:8787/do-examples/chat

I have found it pretty easy just to ask an LLM to build a chat room or wire up a text editor to Y.js.

Disclaimer

This is an early proof of concept. Use at your own risk. Used correctly hibernating DOs and WebSockets should be incredibly cheap even for vast numbers of users spread across many DOs. I think:

$7.50 per billion incoming DO WS requests
$0 for out going WS requests
(small charge for memory as long a DO hibernates correctly)

However there is a foot gun to be aware of. If a client receiving a message causes them to immediately resend a message in a infinite feedback loop then you could end up with an infinite bill. So worth adding some billing alarms and detecting unreasonably high numbers of incoming WS requests and circuit breaking.