{"repo":"Fl1yd/Quotes","free":true,"listed":false,"github":"https://github.com/Fl1yd/Quotes","clone":"git clone https://github.com/Fl1yd/Quotes.git","description":"✨ Service for generating quote images using Jinja2 templates","language":"Python","stars":16,"topics":["fastapi","imgkit","jinja2","quotes","telegram","template","python","poetry"],"license":"MIT","category":"chat-messaging","readme_excerpt":"Quotes API : Quote Image Generator What is this? Quotes API is a FastAPI-based service that allows users to generate visually appealing quote images resembling Telegram messages Installing Before installing Quotes API, ensure you have Poetry installed. You can install Poetry by following the Poetry installation guide Once Poetry is installed, clone the repository and install dependencies: git clone https://github.com/Fl1yd/Quotes cd Quotes poetry install Rendering is done with headless Chromium via Playwright . After installing the Python dependencies, install the Chromium browser and its system libraries: poetry run playwright install --with-deps chromium Note: --with-deps uses apt and needs root, so it is meant for Debian/Ubuntu hosts. On other systems install the Chromium dependencies manually and run poetry run playwright install chromium Docker The image bundles Chromium and all its dependencies, so no host setup is required: docker build -t quotes-api . docker run --rm -p 1337:1337 quotes-api Usage To use Quotes API, start the FastAPI application: poetry run python3 -m app On startup the app launches a single Chromium instance and keeps it warm for the whole process lifetime, so each request only renders a lightweight page. The application will start on the port specified in the config.toml file (default is 1337). You can then access the API documentation at http://localhost:1337/docs API Endpoints Quotes API provides the following endpoint for generating quote images: ","default_branch":null,"files":null,"tree":[],"storefront":"/r/Fl1yd","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Fl1yd/Quotes/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}