{"id":21421922,"url":"https://github.com/rlancer/emve","last_synced_at":"2026-05-17T21:07:21.835Z","repository":{"id":49772586,"uuid":"375113922","full_name":"rlancer/emve","owner":"rlancer","description":"Emve.me is a virtual video jukebox! Use your TV as the player and get a group of friends to queue up videos using their phone","archived":false,"fork":false,"pushed_at":"2021-06-09T23:51:51.000Z","size":616,"stargazers_count":0,"open_issues_count":1,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-23T06:45:10.945Z","etag":null,"topics":["jukebox","music","youtube"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rlancer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-06-08T18:54:58.000Z","updated_at":"2021-06-09T23:51:54.000Z","dependencies_parsed_at":"2022-08-02T14:45:30.061Z","dependency_job_id":null,"html_url":"https://github.com/rlancer/emve","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rlancer%2Femve","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rlancer%2Femve/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rlancer%2Femve/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rlancer%2Femve/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rlancer","download_url":"https://codeload.github.com/rlancer/emve/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243926072,"owners_count":20369910,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["jukebox","music","youtube"],"created_at":"2024-11-22T20:40:46.288Z","updated_at":"2026-05-17T21:07:16.804Z","avatar_url":"https://github.com/rlancer.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"emve.me\n---\n\u003e [Emve.me](https://emve.me)  is a personal project of [Robert Lancer](https://github.com/rlancer), developed for just for fun!\n\u003e It uses my [gapi-to-graphql](https://github.com/rlancer/gapi-to-graphql) library which converts Google's Data API's to GraphQL \n\n[Emve.me](https://emve.me) is a virtual video jukebox! Use your TV as the player and get a group of friends to queue up videos using their phone.\n\n### Player\n\u003cimg style=\"padding-right:8px;max-width: 650px\" alt='emve client' src='https://user-images.githubusercontent.com/1339007/121413584-d2acff00-c933-11eb-8307-b14fc2b55c40.png' /\u003e\n\n### Remote\n\n![Remote](https://user-images.githubusercontent.com/1339007/121435957-bddd6500-c94d-11eb-97cd-0b67f7dd6073.png)\n\n## Running locally\n\n* Generate an OAuth client ID and secret for Google Login by following [this guide](https://developers.google.com/identity/sign-in/web/sign-in)\n* Generate a Google API Key by following [this guide](https://developers.google.com/youtube/registering_an_application)\n\nCreate a `.env` file by based on the `.env.example` files under the`emve-client` / `emve-server` directories\n\n```bash\ngit clone git@github.com:emve-me/emve.git\ndocker-compose up\n```\n\nVisit localhost:3035 to see it in action \n\n## Infrastructure\n\n* Resources\n    * Google Cloud Run  \n    * CloudSQL\n    * Google Cloud Pub/Sub\n\n* GitHub Actions - CI / CD\n  * On pushes to master\n    * Builds and pushes to Google Container Registry \n    * Deploys new revision to Google Cloud Run\n    \n## Stack\n   * Universal\n       * Typescript\n           * Type gen from GraphQL\n   * Frontend\n       * NextJS\n           * SSR\n       * Authentication\n           * Google Login, JWT stored in Cookie\n           * Redirs based on cookie, a value of SSR\n           * JWT token send in header to API requests\n           * [Cookie handling library](https://www.npmjs.com/package/vanilla-cookies)\n       * React\n       * Apollo\n           * Splits API transport into websockets and HTTP requests\n           * For subscriptions, did not like their suggested implementation so used lower level workaround\n       * UX\n           * Responsive\n           * Kept flows a simple as possible\n               * Streamline creating a party to one click\n           * Empty states\n           * Remote, dead simple, default to showing your parties status or a very familiar search bar to find a song\n       \n   * Backend\n       * [gapi-to-graphql](https://github.com/rlancer/gapi-to-graphql)\n       * Postgres\n           * Knex for query building\n               * No ORM\n               * No GraphQL / DB in one, ex: graph.cool\n           * Migra* diffing for migrations (have not needed to implement)\n       * Apollo Server\n   * Security\n       * Access to channels are inherently insecure to prioritize convenience, the following precautions have been taken to mitigate this:\n           * Channel IDs are in a custom base 26 encoded alphabet (the alphabet but scrambled) to avoid users being able to guess channel IDs of an ongoing sessions\n           * Channels ID start at 26^4 to minimize guessability\n\n\n## TODO\n\n- Optimistic UI / update cache from mutations, relying on subscription data for channel sate now\n- Global style variables\n- Pretty errors from gql\n- Paging\n\n## Wish list\n\n- Live Queries, would cut down on complexity \n- Typescript friendlier database library with typegen from schema, a few systems like that out there\n\n## Roadmap\n\n- Talk to someone at YouTube to see if this is kosher, maybe for YTRed subscribers\n- Restore lost player sessions\n    - If your player closes and you reender, it should know you have a session going on and ask you to continue it\n- Export a playlist of your party to YouTube / Spotifiy\n- Playback parties\n- Shout box\n- Up voting\n- Native apps\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frlancer%2Femve","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frlancer%2Femve","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frlancer%2Femve/lists"}