Skip to content
The hosted PartyKit platform is shutting down. Deploys stop on 16 October and the platform shuts down on 23 October 2026. Read the migration guide โ†’

Add PartyKit to existing project

Follow this quick guide to add PartyKit to your existing app, and deploy it in just a few minutes.

Note that to run PartyKit, you need to have Node v. 17 or higher installed.

Add PartyKit to an existing app

Add PartyKit to your existing project using the following command in the projectโ€™s root directory:

Terminal window
npx partykit@latest init

This command installed two packages (partykit and partysocket) and added the party directory with a server template.

Run a dev server

Run the following command in your terminal in your projectโ€™s directory to start the dev server:

Terminal window
npx partykit dev

Develop your server

Add desired behavior to your server, and connect it to the UI.

Deploy your app

Lastly, deploy your PartyKit server:

Terminal window
npx partykit deploy

To read more about deploying PartyKit server, check our deployment guide.

Enjoy ๐ŸŽˆ

Welcome to the party, pal!


Questions? Ideas? Weโ€™d love to hear from you ๐ŸŽˆ Reach out to us on Discord or Twitter!