GithubHelp home page GithubHelp logo

partykit / sketch-waterhole Goto Github PK

View Code? Open in Web Editor NEW
23.0 2.0 3.0 767 KB

Shared YouTube player

Home Page: https://waterhole.genmon.partykit.dev

License: MIT License

JavaScript 1.77% CSS 0.23% TypeScript 98.00%

sketch-waterhole's Introduction

sketch-waterhole

Sometimes you just want to have a window open to a waterhole in the Namib Desert, watch the animals hang out, and chat with whoever else is there.

This is a single-serving website that presents this NamibiaCam YouTube live stream without any of the chrome and YouTube UI, and optional chat.

Come visit the waterhole!

Screenshot of the app showing the video stream and chat

Experimental!

This app was created during Matt's summer 2023 residency. The purpose is to experiment with multiplayer interactions, and simultaneously see what PartyKit can do. It's called a sketch because it's lightweight and quick, and because we learn something in making it.

What you'll find here

This micro-app is built with Remix and PartyKit meaning that it can be hosted entirely from PartyKit's servers. Check out the PartyKit x Remix starter template for how to do this.

Behind the scenes you'll see we're using react-player. This is a React component that wraps the YouTube player, and gives us a lot of control over how it behaves. So it's possible to share playback state and video URL between all clients, and make a shared jukebox -- a job for another time.

Development and deployment

There are two servers that need to be started for development:

  • The Remix development server
  • The PartyKit server

Both are started with one command:

npm run dev

Open up http://127.0.0.1:1999 to see the site.

Deployment

npm run deploy

If you don't already have a PartyKit account, you'll be prompted to create one during the deploy process.

sketch-waterhole's People

Contributors

genmon avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.