Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shadowshahriar/ogimage-with-browsersync-puppeteer
Generating Open Graph Images for multiple files using Puppeteer and Browsersync.
https://github.com/shadowshahriar/ogimage-with-browsersync-puppeteer
browser-sync github-actions js nodejs opengraph-images puppeteer
Last synced: about 1 month ago
JSON representation
Generating Open Graph Images for multiple files using Puppeteer and Browsersync.
- Host: GitHub
- URL: https://github.com/shadowshahriar/ogimage-with-browsersync-puppeteer
- Owner: ShadowShahriar
- License: mit
- Created: 2023-04-17T01:31:58.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-15T19:28:12.000Z (about 2 months ago)
- Last Synced: 2024-11-15T20:26:14.364Z (about 2 months ago)
- Topics: browser-sync, github-actions, js, nodejs, opengraph-images, puppeteer
- Language: JavaScript
- Homepage:
- Size: 6.88 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
- License: LICENSE
Awesome Lists containing this project
README
# ogimage-with-browsersync-puppeteer
> This repository demonstrates a basic approach to generating Open Graph Images from multiple files using [Puppeteer](https://pptr.dev/) and [Browsersync](https://browsersync.io/). It also shows how we can automate this task using GitHub Actions.
Generated Images from [src/posts](./src/posts) are stored in [assets/opengraph](./assets/opengraph). The server port, file path, and other settings can be customized by editing the [index.config.js](./index.config.js) file.
# Demo
Install NPM dependencies by entering,
```bash
npm install
```Then run the following command,
```bash
node index.js
```It should generate Open Graph Images in the [opengraph](./assets/opengraph) folder.