core icon indicating copy to clipboard operation
core copied to clipboard

PartyKit integration

Open RihanArfan opened this issue 1 year ago • 1 comments

PartyKit is a library for making real-time applications with websockets easily and it builds on top of Durable Objects. It already has a file-system based routing (and is easy to use with Nuxt).

As PartyKit got bought out by Cloudflare, @threepointone now works there. It's 100% free besides Workers usage/plan now (although some docs not updated to reflect that).

While it's easy to integrate PartyKit with Nuxt manually, it'd be amazing if it's supported first-hand to automatically deploy it via NuxtHub automatically.

  • https://docs.partykit.io/guides/deploy-to-cloudflare/ - guide to use with own Cloudflare account, which I'd love NuxtHub to automate
  • https://github.com/danielroe/roe.dev/tree/main/partykit (public example as my 2 prior uses aren't OSS)

With v4 directory structure, I imagine this looking like:

app/
server/
  - parties/
    - index.ts

Related but not the same as #50

RihanArfan avatar Jun 20 '24 17:06 RihanArfan

I love this idea and I have been talking also to @threepointone and I know he is working on something new for it.

I think we could have directly a partykit directory and when deploying, if this directory exists, we deploy it under the hood.

atinux avatar Jun 24 '24 14:06 atinux

When crossws is in Nitro and DO are supported in NuxtHub, it'll be very similar to PartyKit and all directly within NuxtHub

RihanArfan avatar Oct 27 '24 16:10 RihanArfan

Great idea. Thank you. Well I think it would be good to mention in the documentation how this free tier thing works

productdevbook avatar Jan 23 '25 17:01 productdevbook

Closing now that NuxtHub supports realtime using Nitro WebSocket and crossws https://hub.nuxt.com/changelog/workers#real-time

RihanArfan avatar Apr 15 '25 01:04 RihanArfan