Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/maximilianschmitt/og

Node.js service to automatically generate social media preview images for blog posts
https://github.com/maximilianschmitt/og

Last synced: 3 months ago
JSON representation

Node.js service to automatically generate social media preview images for blog posts

Awesome Lists containing this project

README

        

# og

Hosted at https://og.maximilianschmitt.me

Read the blog post: https://maximilianschmitt.me/posts/generate-social-media-preview-images/

## Usage

In JavaScript:

```js
const encodedText = encodeURIComponent(ogImageText);
const ogImageURL = `https://og.maximilianschmitt.me/${encodedText}.png`;
```

In HTML:

```html

```

![](https://og.maximilianschmitt.me/Hello%20world.png)