Coder Social home page Coder Social logo

effective-enigma's Introduction

Effective Enigma

Effective Enigma is a project built atop of Effect-TS library and Cloudflare's Worker API to provide a simple, yet powerful, way to stream video and audio from your computer to your browser. It also has built-in support for authentication and encryption for users who wish to use it. You can check the API Reference below.

API Reference

Public API

Create user

  POST /v1/user
Parameter Type Description
name string Required. Name of the user to create
surname string Required. Lastname of the user to create
password string Required. Password of the user
email string Required. Email of the user

Login user

  POST /v1/login
Parameter Type Description
password string Required. Password of the user
email string Required. Email of the user

Private API (Authentication required bearer token)

Create live stream

  POST /v1/create.stream
Parameter Type Description
name string Required. Live stream name

Delete live stream

  DELETE /v1/delete.stream
Parameter Type Description
id string Required. Live stream id

Create live stream

  POST /v1/create.stream

Update live stream from url

  POST /v1/upload.copy
Parameter Type Description
url string Required. Live stream video url
meta object Required. Object that contains how the name will be saved
meta.name string Required. Name of the video

Update live stream from file

  POST /v1/upload.file
Parameter Type Description
file form-data Required. Video file to be uploaded

Get user

  GET /v1/user/${email}

Environment Variables

To run this project, you will need to add the following environment variables to your shell:

CF_ACCOUNT_ID

CF_API_TOKEN

Roadmap

  • Migrate from Cloudflare Workers to Node

  • Delete frontend piece from this project

  • Add postgres database

  • Write tests

  • Add versioning to router library

Run Locally

Clone the project

  git clone https://github.com/samgj18/effective-enigma.git

Go to the project directory

  cd effective-enigma

Install dependencies

  yarn

Start the server

  yarn dev

Authors

Issues

There is an open issue to migrate from the internal Cloudflare stub for the state to fully embrace Supabse Postgrest. For that reason this won't work on production unless a paid version of Cloudflare Workers is acquired. However, it works as expected on the dev env.

effective-enigma's People

Contributors

sagoez avatar

Stargazers

Corentin Leruth avatar Michael Arnaldi avatar

Watchers

 avatar

effective-enigma's Issues

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.