Super simple Cloudflare Worker to generate SVG images from your posts on Bluesky and publish on your Github profile like this:
- Clone the repository:
git clone <repository-url>
cd bsky2svg-worker- Install the dependencies:
npm install- Replace username in
src/index.jswith your own username:
const USERNAME = 'your-username'; // change this to your username!- Change the project name in
wrangler.tomlto your own project name:
name = "bsky2svg-worker" // change this to your project name!- If you are logged in to Cloudflare via wrangler you can deploy the worker with:
npm run deployOtherwise, you can log in to Cloudflare with:
npx wrangler loginThen deploy the worker with:
npm run deploy- After deploying, you will get a URL for your worker. You can use this URL to access the worker with url
/render.svg. Like this:https://[YOUR_PROJECT_NAME].workers.dev/render.svg
That's it! You can now use the bsky2svg worker to generate SVG images from your posts on Bluesky.
This project is licensed under the MIT License. See the LICENSE file for details.
Contributions are welcome! If you have any suggestions or improvements, please open an issue or a pull request.
Help keep the nonsense rolling by becoming a sponsor otherwise Cloudflare will ruin my bills!