core
core copied to clipboard
PartyKit integration
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
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.
When crossws is in Nitro and DO are supported in NuxtHub, it'll be very similar to PartyKit and all directly within NuxtHub
Great idea. Thank you. Well I think it would be good to mention in the documentation how this free tier thing works
Closing now that NuxtHub supports realtime using Nitro WebSocket and crossws https://hub.nuxt.com/changelog/workers#real-time