Node.JS Server and JavaScript/HTML Client for synchronizing online media
Go to file
Calvin Montgomery 6043647cb7 Skip full user auth for most page renders
Previously, the user's session cookie was being checked against the
database for all non-static requests.  However, this is not really
needed and wastes resources (and is slow).

For most page views (e.g. index, channel page), just parsing the value
of the cookie is sufficient:

  * The cookies are already HMAC signed, so tampering with them ought to
    be for all reasonable purposes, impossible.
  * Assuming the worst case, all a nefarious user could manage to do is
    change the text of the "Welcome, {user}" and cause a (non-functional)
    ACP link to appear clientside, both of which are already possible by
    using the Inspect Element tool.

For authenticated pages (currently, the ACP, and anything under
/account/), the full database check is still performed (for now).
2017-08-01 21:40:26 -07:00
conf/example Begin prometheus integration 2017-07-16 22:35:33 -07:00
docs Allow channel path to be customizable 2017-06-16 20:09:36 -07:00
gdrive-userscript Fix Google Drive URL 2016-10-20 19:07:03 -07:00
integration_test Copy utils from cytube-common and remove dep 2017-07-19 20:47:02 -07:00
player Fix rtmp again because chrome is picky about mime types 2017-07-23 17:55:25 -07:00
src Skip full user auth for most page renders 2017-08-01 21:40:26 -07:00
templates Minor cleanup of no longer used things 2017-07-26 20:32:51 -07:00
test Refactor socket.io controller 2017-08-01 19:29:11 -07:00
www Refactor socket.io controller 2017-08-01 19:29:11 -07:00
.gitignore Add camo example config 2017-05-29 10:24:49 -07:00
.travis.yml Upgrade babel preset for node 6, add async transform 2017-06-20 23:16:33 -07:00
build-player.js Rename Hitbox -> Smashcast 2017-05-20 16:50:00 -07:00
config.template.yaml Deprecate legacy vimeo-oauth lookup 2017-07-22 11:14:29 -07:00
index.js Add a simple listener for SIGUSR2 to reload SSL certs 2017-05-14 04:20:58 -07:00
ISSUE_TEMPLATE.md Create ISSUE_TEMPLATE.md 2016-02-17 19:38:47 -08:00
LICENSE 2016 -> 2017 2017-01-05 23:05:09 -08:00
NEWS.md Deprecate legacy vimeo-oauth lookup 2017-07-22 11:14:29 -07:00
package.json Skip full user auth for most page renders 2017-08-01 21:40:26 -07:00
postinstall.sh Instead, add env var for overriding user input 2017-03-21 20:27:29 -07:00
README.md Update README.md 2015-08-16 13:31:34 -07:00
run.sh Refactor out server init to index.js 2013-10-11 15:48:01 -05:00
servcmd.sh.js Add tab completion entry for reloading cert 2017-05-14 04:10:18 -07:00

Read before submitting an issue: https://github.com/calzoneman/sync/wiki/Reporting-an-Issue

calzoneman/sync

About

CyTube is a web application providing media synchronization, chat, and more for an arbitrary number of channels. I began developing this as a hobby project, and when synchtube.com announced their closure, I began polishing it and readying it for the public.

I am hosting a CyTube server at http://cytu.be

The serverside is written in JavaScript and runs on Node.JS. It makes use of a MySQL database to store user registrations, cached media metadata, and data about each channel.

The clientside is written in JavaScript and makes use of Socket.IO and jQuery as well as the APIs for various media providers. The web interface uses Bootstrap for layout and styling.

Features

  • Standalone web/socket.io server
  • Optional SSL support for socket.io and the account API
  • Synchronized playback from the following sources:
    • YouTube (individual videos + playlists)
    • Google Docs videos
    • Vimeo
    • Dailymotion
    • Soundcloud
    • Raw video/audio files (via video.js)
  • Embedding of the following sources:
    • livestream.com
    • twitch.tv
    • justin.tv
    • ustream.tv
    • RTMP streams
    • Custom <iframe> and <object> embeds
  • Channel customization
    • HTML Message of the Day
    • CSS
    • JavaScript
    • Permissions
      • Tiered ranks (Site admin > Channel admin > Moderator > Leader > Member > Guest > Anonymous)
    • Chat filters (based on regular expressions)
    • Lock/unlock playlist to allow additions by non-moderators (configurable with permissions)
    • Searchable library of videos
  • Integrated YouTube search
  • Save/load playlists per user account
  • Polls
  • Voteskip (can be disabled by a channel moderator)
  • Auto-AFK status (can be configured per-channel)
  • Leader
    • Grants control of playback to a user (can pause/seek)
    • Can also be used to grant temporary mod-like powers to a user
    • Not necessary for synchronization as the server has an internal timer
  • Channel state saves/loads on restart
  • Account management
    • Password change
    • Password reset (via email)
    • Profile avatar and text
  • Moderation
    • Mute users
    • Kick users
    • Ban users by name
    • Ban users by IP address (and by /24 range)
  • Administration
    • Log viewer
    • Global bans
    • Search registered channels and users
    • Currently loaded channels
    • Stats (usercount, channelcount, RAM usage)

Installing

Installation instructions are available here: https://github.com/calzoneman/sync/wiki/CyTube-3.0-Installation-Guide

Feedback

Please open a GitHub Issue.

License

Licensed under MIT. See LICENSE for the full license text.