Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
@embetty/server
Advanced tools
[Embetty](https://github.com/heiseonline/embetty) displays remote content like tweets or YouTube videos without compromising your privacy. `embetty-server` acts as a proxy and provides the necessary data.
Readme
Embetty displays remote content like tweets or YouTube videos without compromising your privacy. embetty-server
acts as a proxy and provides the necessary data.
Embetty server can be run in two different ways:
It's necessary to configure a reverse proxy to make Embetty server reachable either way.
The docker image exposes the server on port 8080
and can be configured using environment variables.
$ docker run \
-p 8080:8080 \
--name embetty \
--rm \
-e VALID_ORIGINS=https://example.com \
-e TWITTER_ACCESS_TOKEN_KEY=... \
-e TWITTER_ACCESS_TOKEN_SECRET=... \
-e TWITTER_CONSUMER_KEY=... \
-e TWITTER_CONSUMER_SECRET=... \
heiseonline/embetty-server:latest
This requires Node.js version 8 or later.
yarn global add @embetty/server
. This makes the embetty
command available on the server.embetty start
. The command embetty start --help
prints a list of all supported options.Embetty server can be configured using the following environment variables:
Variable | Required | Description |
---|---|---|
URL_BASE | no | The base URL of the Embetty server instance, e.g. https://my-server.com/path/to/embetty . |
DEBUG | no | This variable controls the output of log messages. You may set it to embetty.* to log all Embetty messages to STDOUT . |
EMBETTY_CACHE | no | Connection string of a cache adapter. Currently Redis (example: redis:// ) and LRU (example: lru:// ) are supported. |
PORT | no | This variable can be used to specify the port on which Embetty Server listens. Default: 3000 |
TWITTER_ACCESS_TOKEN_KEY | [1] | Twitter Access Token |
TWITTER_ACCESS_TOKEN_SECRET | [1] | Twitter Access Token Secret |
TWITTER_CONSUMER_KEY | [1] | Twitter consumer Key (API Key) |
TWITTER_CONSUMER_SECRET | [1] | Twitter consumer Secret (API Secret) |
VALID_ORIGINS | yes | Contains a comma-separated list of allowed origins. Examples: https://example.com , https://a.example.com,https://b.example.com or * . |
To display tweets with Embetty, the Twitter environment variables listed above need to be defined. Both tokens, the key and the secret can be obtained by creating a Twitter app.
The setup can be tested by sending a request to the running server. If everything was set up correctly, JSON data and the HTTP status code 200
are returned.
$ curl -i http://localhost:8080/version
$ curl -i http://localhost:8080/tweet/985882036777955328
$ curl -i http://localhost:8080/video/youtube/m6UOo2YGbIE-poster-image
Embetty server supports Google AMP ⚡️ out of the box via <amp-iframe>
:
Tweet:
<amp-iframe
width="200"
height="100"
sandbox="allow-scripts allow-same-origin"
layout="responsive"
resizable
frameborder="0"
src="https://your-site.com/path/to/embetty-server/tweet/1004988454978179072.amp"
>
<div overflow tabindex="0" role="button" aria-label=""></div>
</amp-iframe>
Vimeo:
<amp-iframe
width="200"
height="100"
sandbox="allow-scripts allow-same-origin"
layout="responsive"
resizable
frameborder="0"
src="https://your-site.com/path/to/embetty-server/video/vimeo/1084537.amp"
>
<div overflow tabindex="0" role="button" aria-label=""></div>
</amp-iframe>
YouTube:
<amp-iframe
width="200"
height="100"
sandbox="allow-scripts allow-same-origin"
layout="responsive"
resizable
frameborder="0"
src="https://your-site.com/path/to/embetty-server/video/youtube/m6UOo2YGbIE.amp"
>
<div overflow tabindex="0" role="button" aria-label=""></div>
</amp-iframe>
Facebook:
<amp-iframe
width="200"
height="100"
sandbox="allow-scripts allow-same-origin"
layout="responsive"
resizable
frameborder="0"
src="https://your-site.com/path/to/embetty-server/video/facebook/10156049485672318.amp"
>
<div overflow tabindex="0" role="button" aria-label=""></div>
</amp-iframe>
See Contributing.
Embetty server is MIT licensed.
FAQs
[Embetty](https://github.com/heiseonline/embetty) displays remote content like tweets or YouTube videos without compromising your privacy. `embetty-server` acts as a proxy and provides the necessary data.
The npm package @embetty/server receives a total of 0 weekly downloads. As such, @embetty/server popularity was classified as not popular.
We found that @embetty/server demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.