Giter Club home page Giter Club logo

embedder's Introduction

Embedder ๐Ÿ–ผ๏ธ

A media host specialized in producing visually appealing embeds for services like Discord. Enjoy limitless file sizes and no compression.

Embedder Demo

๐Ÿš€ Upcoming Features

  • ๐Ÿ“Š MariaDB/SQL support (currently uses SQLite)
  • ๐Ÿ”— Redundancy & Sync: Enhance reliability and enable synchronization across nodes.

๐ŸŒ Potential Features

  • ๐Ÿ›ฐ๏ธ IPFS Integration

๐Ÿ”ง How to Run

Using Source

$ export EBPASS=changeme
$ export EBPORT=3000
$ export EBAPI_KEY=changeme # For ShareX support

$ npm install
$ npm start

Note: Default username is admin with the password being whatever EBPASS is set to.

ShareX Support

Enabled at /upload. Requires authentication with key. expire key specifies duration in days.

{
  "Version": "14.1.0",
  "Name": "embedder",
  "DestinationType": "ImageUploader, FileUploader",
  "RequestMethod": "POST",
  "RequestURL": "http://localhost:3000/sharex",
  "Headers": {
    "key": "changeme"
  },
  "Body": "MultipartFormData",
  "Arguments": {
    "fileupload": null,
    "expire": null
  },
  "FileFormName": "fileupload",
  "URL": null,
  "ThumbnailURL": null,
  "DeletionURL": null,
  "ErrorMessage": null
}

Configuration

This project uses environmental variables to configure functions.

EBPASS configures the password for the admin account.

EBAPI_KEY configures the key for API uploading support typically used for ShareX.

EBPORT configures the port the server runs on.

EB_FFMPEG_PATH and EB_FFPROBE_PATH configures the path to the ffmpeg and ffprobe binaries respectively. If not set, it uses installed binaries set in the PATH. If none are detected, it will default to preinstalled binaries from the node-ffmpeg-installer package.

EB_RANDOMIZE_NAMES configures whether or not to randomize file names. If set to true, file names will be randomized. If not set or set to false, it will be false.

Using Docker

docker run -d -p "3000:3000" -e EBPORT=3000 -e EBPASS=changeme -e EBAPI_KEY=changeme ghcr.io/waveringana/embedder:1.11

Docker Compose

version: "3.3"
services:
  embedder:
    ports:
      - "3000:3000"
    environment:
      - EBPORT=3000
      - EBPASS=changeme
      - EBAPI_KEY=changeme
    volumes:
      - ./db:/var/db
      - ./uploads:/uploads
    image: ghcr.io/waveringana/embedder:1.11

๐Ÿ“œ License

Distributed under The Unlicense.

embedder's People

Contributors

waveringana 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

embedder's Issues

404 for files with uppercase extensions

For example, uploading an image with the extension ".jpg" works but the same file with ".JPG" does the following:

  • Causes the index page to display a broken image
  • 404 error page when linking to the image

I was able to reproduce the issue using jpg and mp4. I didn't try the other supported formats.

Gifs doesn't get displayed correctly in embedder.

Does previewing gif inside the embedder web console not working as intended?

image

When clicking the gif the copied item would be http://localhost:3000/uploads/720p-rdr2-rockstar.gif instead of http://localhost:3000/uploads/rdr2-rockstar.gif (which would be the correct one as it is displayed correctly in all platform I tried)

guest account support

I'm not too sure on implementing this. Admin can setup an account for a guest to upload files, guest will be able to see only their own files, but admin can see guest files

expirery

default should be 2 weeks
option to never expire

Look into ipfs support

High chance that it'll be out of scope due to added complexity. Project goal is to be as simple as possible

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.