nuxt-hub / core

Build full-stack applications with Nuxt on CloudFlare, with zero configuration.
https://hub.nuxt.com
Apache License 2.0
802 stars 35 forks source link

PartyKit integration #181

Open RihanArfan opened 1 week ago

RihanArfan commented 1 week ago

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.

With v4 directory structure, I imagine this looking like:

app/
server/
  - parties/
    - index.ts

Related but not the same as #50

Atinux commented 1 week ago

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.