All Projects โ†’ heiseonline โ†’ Embetty

heiseonline / Embetty

Licence: mit
๐Ÿ™ Embetty displays remote content like tweets or YouTube videos without compromising your privacy.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Embetty

Userbase
Create secure and private web apps using only static JavaScript, HTML, and CSS.
Stars: โœญ 2,029 (+167.33%)
Mutual labels:  privacy, frontend
Shariff
๐Ÿ‘ฎ Shariff enables website users to share their favorite content without compromising their privacy.
Stars: โœญ 1,333 (+75.63%)
Mutual labels:  privacy, frontend
Kvision
Object oriented web framework for Kotlin/JS
Stars: โœญ 658 (-13.31%)
Mutual labels:  frontend
Webclient
The mega.nz web client
Stars: โœญ 723 (-4.74%)
Mutual labels:  privacy
Repractise
RePractise
Stars: โœญ 695 (-8.43%)
Mutual labels:  frontend
Shreddit
Remove your comment history on Reddit as deleting an account does not do so.
Stars: โœญ 669 (-11.86%)
Mutual labels:  privacy
Opmsg
opmsg message encryption
Stars: โœญ 704 (-7.25%)
Mutual labels:  privacy
Gdpr Checklist
The GDPR Checklist
Stars: โœญ 655 (-13.7%)
Mutual labels:  privacy
Mern Course Bootcamp
Complete Free Coding Bootcamp with the MERN Stack
Stars: โœญ 730 (-3.82%)
Mutual labels:  frontend
Iview
A high quality UI Toolkit built on Vue.js 2.0
Stars: โœญ 23,930 (+3052.83%)
Mutual labels:  frontend
Frontend Case Studies
๐Ÿ’ผ A curated list of technical talks and articles about real world enterprise frontend development
Stars: โœญ 6,290 (+728.72%)
Mutual labels:  frontend
Duckduckgo Privacy Extension
DuckDuckGo Privacy Essentials browser extension for Firefox, Chrome.
Stars: โœญ 692 (-8.83%)
Mutual labels:  privacy
Regtweaks
Registry Tweaks for Windows.
Stars: โœญ 675 (-11.07%)
Mutual labels:  privacy
Debotnet
๐Ÿ”ฅ๐Ÿš€ Debotnet is a tiny portable tool for controlling Windows 10's many privacy-related settings and keep your personal data private.
Stars: โœญ 707 (-6.85%)
Mutual labels:  privacy
Hippy
Hippy is designed for Web developer to easily build cross-platform and high-performance awesome apps. ๐Ÿ‘
Stars: โœญ 6,234 (+721.34%)
Mutual labels:  frontend
Hblock
Improve your security and privacy by blocking ads, tracking and malware domains.
Stars: โœญ 724 (-4.61%)
Mutual labels:  privacy
Social Amnesia
Forget the past. Social Amnesia makes sure your social media accounts only show your posts from recent history, not from "that phase" 5 years ago.
Stars: โœญ 656 (-13.57%)
Mutual labels:  privacy
Aws Boilerplate
Opinionated full stack web app's boilerplate, ready to be deployed to AWS platform.
Stars: โœญ 682 (-10.14%)
Mutual labels:  frontend
Awesome Security Gists
A collection of various GitHub gists for hackers, pentesters and security researchers
Stars: โœญ 701 (-7.64%)
Mutual labels:  privacy
Frontend
Kottans frontend course ๐ŸŽ“
Stars: โœญ 749 (-1.32%)
Mutual labels:  frontend

embetty ยท Build Status Dependency Status JavaScript Style Guide

Embetty displays remote content like tweets or videos without compromising your privacy.

Embetty

See it in action on our demo pages.

Quick Start

  1. Setup your embetty-server.
  2. Include the embetty lib into your HTML document.
  3. Insert an embed by using a custom tag (see embeds section below).

Example:

<!DOCTYPE html>
<html lang="en">
<head>
  <meta data-embetty-server="/path/to/embetty-server">
  <script async src="embetty.js"></script>
</head>
<body>
  <embetty-tweet status="1166685910030790662"></embetty-tweet>
</body>
</html>

Documentation

Configure the Embetty server

Embetty needs a server component that you need to run on your infrastructure. Configure the server URL for embetty using a <meta data-embetty-server> tag:

<head>
  <meta data-embetty-server="/path/to/embetty-server">
</head>

Including embetty.js

There are three options.

  1. Download an Embetty archive from the releases page. Make embetty.js available on your site.
  2. Use Embetty in your npm project: yarn add @heise/embetty or npm install @heise/embetty --save. Then import embetty into your main script (i.e. import '@heise/embetty').
  3. Clone this repository and build ./dist/embetty.js:
    $ git clone https://github.com/heiseonline/embetty
    $ cd embetty
    $ yarn
    $ yarn build
    

Supported embed types

Currently, tweets and various video platforms are supported.

Tweet

Use the status attribute to embed a tweet with its tweet ID. Example:

<embetty-tweet status="950371792874557440"></embetty-tweet>

Use the include-thread attribute to include the thread above the tweet (i.e. the conversation so far, for context). Example:

<embetty-tweet status="950371792874557440" include-thread></embetty-tweet>

Video

Use the type attribute with a value of facebook, vimeo or youtube. Set the video-id attribute to the video ID.

<embetty-video type="facebook" video-id="10156049485672318"></embetty-video>

Use the poster-image attribute with an URL. This overwrites the preview image of the video.

<embetty-video type="facebook" video-id="10156049485672318" poster-image="www.test.com/image.jpg"></embetty-video>

For videos of type vimeo or youtube, it's also possible to set a start-at attribute with a value of time in seconds to start the video at a specific timecode.

<embetty-video type="youtube" start-at="96" video-id="3L4fHrIJ3A4"></embetty-video>
<embetty-video type="vimeo" start-at="96" video-id="223099532"></embetty-video>

Events

Embetty triggers the following events:

Name Description
initialized The Embetty embed will enter the viewport after this has been triggered.
activated The Embetty video embed has been replaced with an iframe containing the original video player. The content of the iframe may still be loading.

Example code:

document.querySelector('embetty-tweet').addEventListener('initialized', function(e) { ... })

Testing

  1. Clone this repository.
  2. yarn
  3. export the TWITTER_ tokens mentioned in https://github.com/heiseonline/embetty-server
  4. yarn test

Caveats

The Embetty server component does not proxy video data. This means that the tracking protection becomes ineffective after the play button has been clicked.

License

Embetty is MIT licensed.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].