workers-chat-demo VS deno

Compare workers-chat-demo vs deno and see what are their differences.

SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
surveyjs.io
featured
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
workers-chat-demo deno
6 448
800 92,975
2.8% 0.2%
4.2 9.9
about 2 months ago 1 day ago
JavaScript Rust
BSD 3-clause "New" or "Revised" License MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

workers-chat-demo

Posts with mentions or reviews of workers-chat-demo. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-09-02.
  • asyncio + multiprocessing. Issues with pickling complex python objects.
    2 projects | /r/learnpython | 2 Sep 2022
    This idea was also sparked from cloudflares chat room example using something on their platform the call durable objects. But instead of offloading each chat room to a durable object I wanted to try to offload it to a process.
  • When Serverless really shines (and when to avoid it)
    1 project | /r/programming | 2 Jun 2022
    If you want to see a code example of a stateful serverless worker, this durable object chat demo is kinda neat: https://github.com/cloudflare/workers-chat-demo
  • Ask HN: What's a global, low throughput, low latency message bus
    1 project | news.ycombinator.com | 24 Apr 2022
    If you wanted something where you could get pretty far without spending any money, Cloudflare Workers + Durable Objects would be an interesting path. You would have to implement some of the functionality yourself, but there are some examples.

    Like this example chat app: https://github.com/cloudflare/workers-chat-demo/blob/master/... It supports private chat rooms, which is somewhat analogous to a pub sub topic.

  • OAuth with Cloudflare Workers on a Statically Generated Site
    7 projects | news.ycombinator.com | 15 Nov 2021
  • Cloudflare’s Pace of Innovation
    2 projects | news.ycombinator.com | 21 Oct 2021
    Durable Objects[0] let you store data on the edge and provide a lot more than a key/value store. This is a primitive you could build arbitrary databases on top of.

    The edge chat demo[1] is a working, scalable real-time chat service hosted entirely on the edge using Workers + Durable Objects, even featuring per-user cross-room rate limiting. As written, it can support millions of chat rooms and users, and it's about 500 lines of code.[2]

    The benefit here is that it's much easier to build scalable distributed systems on Workers and Durable Objects than on other platforms. The fact that they run on the edge as close to end users as possible is just a bonus.

    [0] https://blog.cloudflare.com/introducing-workers-durable-obje...

    [1] https://edge-chat-demo.cloudflareworkers.com/

    [2] https://github.com/cloudflare/workers-chat-demo/blob/master/...

    (Disclosure: I'm the tech lead for Cloudflare Workers.)

  • DoS Attacks against my Online Game
    3 projects | news.ycombinator.com | 27 Sep 2021
    Have you looked into using a serverless pub/sub model, like Cloudflare's Workers KV? The example they give is a simple IRC-like distributed chatroom (https://github.com/cloudflare/workers-chat-demo), but theoretically it may work for games too.

    Player state can be stored in a decentralized key-value store that Cloudflare manages. They absorb all the DDoS and handle replication between edge nodes. You don't see any of that. https://www.cloudflare.com/products/workers-kv/

    Or maybe it was their Durable Objects product... I forget how that's different from Workers KV: https://developers.cloudflare.com/workers/learning/using-dur...

    Then each game client uses a worker to access that KV, and Cloudflare will route that worker to its nearest edge node and retrieve the state from there (which was previously replicated a moment ago, internal to Cloudflare's infrastructure).

    https://workers.cloudflare.com/

    I don't know if this would result in acceptable latency, but it could help with DDOS at least.

deno

Posts with mentions or reviews of deno. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-04-02.
  • Bun - The One Tool for All Your JavaScript/Typescript Project's Needs?
    4 projects | dev.to | 2 Apr 2024
    NodeJS is the dominant Javascript server runtime environment for Javascript and Typescript (sort of) projects. But over the years, we have seen several attempts to build alternative runtime environments such as Deno and Bun, today’s subject, among others.
  • Bun 1.1
    17 projects | news.ycombinator.com | 1 Apr 2024
    https://github.com/denoland/deno/issues is the ideal place -- we try to triage all incoming issues, the more specific the repro the easier it is to address but we will take a look at everything that comes in.
  • I have created a small anti-depression script
    4 projects | dev.to | 5 Mar 2024
    Install Node.js (or Bun, or Deno, or whatever JS runtime you prefer) if it's not there
  • How QUIC is displacing TCP for speed
    1 project | news.ycombinator.com | 9 Feb 2024
    QUIC is very exciting, after seeing what it can do for performance in Cloudflare network and Cloudflare workers, I can't wait to finally see it in Deno[0] 1.41.

    [0] https://github.com/denoland/deno/pull/21942#issuecomment-192...

  • Unison Cloud
    7 projects | news.ycombinator.com | 7 Feb 2024
    So as an end user it's kind of like https://deno.com/ where you buy into a runtime + comes prepacked with DBs (k/v stores), scheduling, and deploy stuff?

    > by storing Unison code in a database, keyed by the hash of that code, we gain a perfect incremental compilation cache which is shared among all developers of a project. This is an absolutely WILD feature, but it's fantastic and hard to go back once you've experienced it. I am basically never waiting around for my code to compile - once code has been parsed and typechecked once, by anyone, it's not touched again until it's changed.

    Interesting. Whats it like upgrading and managing dependencies in that code? I'd assume it gets more complex when it's not just the Union system but 3rd party plugins (stuff interacting with the OS or other libs).

  • Deno in 2023
    8 projects | news.ycombinator.com | 5 Feb 2024
    ~90MB+ at this stage and do now allow compression without erroring out. Deploying ala Golang is not feasible at that level but could well be down the line if this dev branch is picked up again!

    The exe output grew from from ~50MB to plus ~90MB from 2021 to 2024: https://github.com/denoland/deno/discussions/9811 which mean Deno is worse than Node.js's pkg solution by a decent margin.

  • Mini site for recommending songs using Svelte & Deno
    2 projects | dev.to | 3 Feb 2024
    Behind the scenes is a simple Sveltekit-powered server function to fetch a Spotify client token then find a user's recommendation playlist and its track information. A Deno edge function to performs this data fetch and renders server-side Svelte.
  • Supercharge your app with user extensions using Deno JavaScript runtime
    4 projects | dev.to | 24 Jan 2024
    If your application is written in JavaScript, integrating it with JavaScript extensions is a no-brainer. However, Secutils.dev is entirely written in Rust. How would I even begin? Fortunately, I recently came across an excellent blog post series explaining how to implement your JavaScript runtime in a Rust application with Deno:
  • Deno, the next-generation JavaScript runtime
    1 project | news.ycombinator.com | 11 Jan 2024
  • Oxlint – written in Rust – 50-100 Times Faster than ESLint
    13 projects | news.ycombinator.com | 15 Dec 2023

What are some alternatives?

When comparing workers-chat-demo and deno you can also consider the following projects:

miniflare - 🔥 Fully-local simulator for Cloudflare Workers. For the latest version, see https://github.com/cloudflare/workers-sdk/tree/main/packages/miniflare.

ASP.NET Core - ASP.NET Core is a cross-platform .NET framework for building modern cloud-based web applications on Windows, Mac, or Linux.

quilkin - Quilkin is a non-transparent UDP proxy specifically designed for use with large scale multiplayer dedicated game server deployments, to ensure security, access control, telemetry data, metrics and more.

typescript-language-server - TypeScript & JavaScript Language Server

krustlet - Kubernetes Rust Kubelet

pnpm - Fast, disk space efficient package manager

Sprocket

esbuild - An extremely fast bundler for the web

e2core - Server for sandboxed third-party plugins, powered by WebAssembly

bun - Incredibly fast JavaScript runtime, bundler, test runner, and package manager – all in one

wrangler-legacy - 🤠 Home to Wrangler v1 (deprecated)

Koa - Expressive middleware for node.js using ES2017 async functions