← All open source projects

Open source · AGPL-3.0 · Built and maintained by Alejandro Medina

Snapsbrew

Renders images and PDFs from reusable templates. It has a browser editor, a REST API, signed URLs for og:image tags, and an MCP server.

Snapsbrew screenshot
Started
2021
MCP tools
27
PHPUnit tests
1,600+
SDK languages (preview)
4

What it does

You design a template one time in the browser editor. Then you render it many times with new text, images, colors, or QR codes.

A render can come from the REST API, a signed URL, an embedded form, a spreadsheet import, or an AI agent over MCP. Headless Chrome, through Browserless, draws each image.

I started Snapsbrew in 2021. In November 2026 I opened the code under the AGPL-3.0.

  • Template editor

    Text, image, shape, SVG pattern, and QR code layers, with groups, custom fonts, and brand tokens. Each publish freezes a version of the template.

  • REST API

    Render one snap, a collection, or a batch of up to 100 items. Sync and async modes, webhooks, and idempotency keys. The repository has the OpenAPI spec and a Postman collection.

  • Signed URLs

    Put a signed image URL in an og:image tag. The first request renders the image. Later requests read the cache.

  • Forms and imports

    Share a form that renders a template from the values that a person types. Or upload a CSV or XLSX file and get one snap for each row.

  • MCP server

    An agent can list templates, write and edit them, preview a snap, render the final image, and export a creative package. It connects with an API token or with OAuth 2.0.

  • Teams and admin

    Companies with invitations, two-factor authentication, a usage log, an owner admin area, and six starter templates.

For AI agents

The MCP server has 27 tools. Guide tools give the agent the canvas sizes, the crop rules of each social platform, and design rules before it writes a template. Previews have a watermark. The server tells the agent to render the final image only after a person approves the preview.

Stack

  • Laravel 13
  • Vue 3
  • MySQL 8.4
  • Redis
  • Horizon
  • Browserless
  • Docker

Self-host it

The Docker stack has six containers: the web server, Horizon, the scheduler, MySQL 8.4, Redis, and Browserless.

git clone https://github.com/amedina068/snapsbrew.git
cd snapsbrew
cp .env.docker.example .env   # set APP_KEY, APP_URL, the passwords, and BROWSERLESS_TOKEN
docker compose up -d --build
docker compose logs web      # open the setup URL and create the owner

The full guide is in the documentation.

Repositories

The app uses the AGPL-3.0. The SDKs use the MIT License, so you can put them in closed source code. The docs use CC BY 4.0, and their code examples use the MIT License. The SDKs are not on npm, Packagist, PyPI, or RubyGems yet. Install them from GitHub.

  • App

    AGPL-3.0

    snapsbrew

    The Laravel app, the Vue editor, the REST API, the MCP server, and the Docker files.

  • Docs

    CC BY 4.0 · code: MIT

    snapsbrew-docs

    The documentation in Markdown. snapsbrew.com/docs shows these pages. A script compares the pages with the code.

  • SDK · TypeScript

    MIT

    snapsbrew-js

    One package for Node.js, Bun, Deno, and Cloudflare Workers. No runtime dependencies.

    npm install github:amedina068/snapsbrew-js
  • SDK · PHP

    MIT

    snapsbrew-php

    PHP 8.2 to 8.4, with a Laravel integration: a facade, Snapsbrew::fake(), and a Blade component.

    composer require snapsbrew/snapsbrew-php:dev-main

    Add the GitHub repository to the repositories key of composer.json first.

  • SDK · Python

    MIT

    snapsbrew-python

    Python 3.10 to 3.14. A sync client and an async client, with Django and FastAPI examples.

    pip install "git+https://github.com/amedina068/snapsbrew-python.git"
  • SDK · Ruby

    MIT

    snapsbrew-ruby

    Ruby 3.2 to 3.4, with a Rails integration. It uses the standard library only.

    gem "snapsbrew", github: "amedina068/snapsbrew-ruby"

I build and maintain Snapsbrew alone. Questions, bug reports, and pull requests go to GitHub issues.

Hiring?

I build and maintain Snapsbrew alone. I’m available now for a full-time remote role or contract work.