Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

CTNicholas/liveblocks-live-piano-next-js

Open more actions menu

Repository files navigation

This repo shows how to build a live piano with Liveblocks and Next.js.

Live piano screenshot

There are 10 different instruments to choose from. To play the piano, tap/click the keys on the screen or use your computer's keyboard.

Live piano keyboard mapping

Getting started

Run examples locally

  • Install all dependencies with npm install

  • Create an account on liveblocks.io

  • Copy your secret key from the dashboard

  • Create a file named .env.local and add your Liveblocks secret as environment variable LIVEBLOCKS_SECRET_KEY=sk_test_yourkey

Run examples on CodeSandbox

  • Open this repository on CodeSandbox with this link

  • Create an account on liveblocks.io

  • Copy your secret key from the dashboard

  • Create secret named LIVEBLOCKS_SECRET_KEY with the secret key you just copied. You need to create an account on CodeSandbox to add an environment variable.

  • Refresh your browser and you should be good to go!

More

On my blog, ctnicholas.dev, I wrote an interactive article about using Liveblocks to add live cursors to your website.

About

Multiplayer live piano built with Next.js & Liveblocks.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  
Morty Proxy This is a proxified and sanitized view of the page, visit original site.