{"id":25236775,"url":"https://github.com/fl1yd/quotes","last_synced_at":"2026-04-30T15:32:29.092Z","repository":{"id":276932286,"uuid":"930769454","full_name":"Fl1yd/Quotes","owner":"Fl1yd","description":"✨ Service for generating quote images using Jinja2 templates","archived":false,"fork":false,"pushed_at":"2025-02-11T07:39:40.000Z","size":63,"stargazers_count":7,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-05T18:13:23.948Z","etag":null,"topics":["fastapi","imgkit","jinja2","poetry","python","quotes","telegram","template"],"latest_commit_sha":null,"homepage":"https://quotes.readthedocs.io/en/latest/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Fl1yd.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-02-11T07:18:24.000Z","updated_at":"2025-02-17T15:07:54.000Z","dependencies_parsed_at":"2025-02-11T08:49:36.592Z","dependency_job_id":null,"html_url":"https://github.com/Fl1yd/Quotes","commit_stats":null,"previous_names":["fl1yd/quotes"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fl1yd%2FQuotes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fl1yd%2FQuotes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fl1yd%2FQuotes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fl1yd%2FQuotes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Fl1yd","download_url":"https://codeload.github.com/Fl1yd/Quotes/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247378141,"owners_count":20929297,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["fastapi","imgkit","jinja2","poetry","python","quotes","telegram","template"],"created_at":"2025-02-11T15:31:50.237Z","updated_at":"2026-04-30T15:32:29.043Z","avatar_url":"https://github.com/Fl1yd.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n    \u003cimg src=\"docs/source/_static/logo_light.svg\"\u003e\n    \u003cbr\u003e\n    \u003cb\u003eQuotes API\u003c/b\u003e: Quote Image Generator\n\u003c/p\u003e\n\n\n\u003ch1\u003eWhat is this?\u003c/h1\u003e\n\nQuotes API is a FastAPI-based service that allows users to generate visually appealing quote images resembling Telegram messages\n\n\n\u003ch1\u003eInstalling\u003c/h1\u003e\n\n\u003e Before installing Quotes API, ensure you have \u003ccode\u003ePoetry\u003c/code\u003e installed. You can install Poetry by following the [Poetry installation guide](https://python-poetry.org/docs/#installation)\n\nOnce Poetry is installed, clone the repository and install dependencies:\n\n\u003cpre lang=\"bash\"\u003e\ngit clone https://github.com/Fl1yd/Quotes\ncd Quotes\npoetry install\n\u003c/pre\u003e\n\nAdditionally, ensure \u003ccode\u003ewkhtmltopdf\u003c/code\u003e version 0.12.5 is installed on your system:\n\nDownload the appropriate package for your distribution from the wkhtmltopdf releases page\n\nInstall it using your package manager. For example, on Ubuntu:\n\n\u003cpre lang=\"bash\"\u003e\nsudo apt-get install -y wkhtmltopdf=0.12.5\n\u003c/pre\u003e\n\n\u003e Note: If the specific version is not available in your package manager, you may need to download the binary directly and follow the installation instructions provided in the release notes\n\n\n\u003ch1\u003eUsage\u003c/h1\u003e\n\nTo use Quotes API, start the FastAPI application:\n\n\u003cpre lang=\"bash\"\u003e\npoetry run python3 -m app\n\u003c/pre\u003e\n\nThe application will start on the port specified in the \u003ccode\u003econfig.toml\u003c/code\u003e file (default is 1337). You can then access the API documentation at `http://localhost:1337/docs`\n\n\n\u003ch1\u003eAPI Endpoints\u003c/h1\u003e\n\nQuotes API provides the following endpoint for generating quote images:\n\n- **Generate quote image:**\n    Use the \u003ccode\u003ePOST /generate\u003c/code\u003e endpoint to generate a quote image. You need to provide a `Messages` object with the required data\n\n\u003cpre lang=\"json\"\u003e\n{\n    \"messages\": [\n        {\n            \"text\": \"This is a quote\",\n            \"author\": {\n                \"id\": 1,\n                \"name\": \"Author Name\"\n            }\n        }\n    ],\n    \"quote_color\": \"#000000\",\n    \"text_color\": \"white\"\n}\n\u003c/pre\u003e\n\n\n\u003ch1\u003eConfiguration\u003c/h1\u003e\n\nCustomize your application settings by updating the \u003ccode\u003econfig.toml\u003c/code\u003e file:\n\n\u003cpre lang=\"toml\"\u003e\n[settings]\n    [settings.quote]\n    quality = 85\n    text_color = \"white\"\n    background_color = \"#162330\"\n\n    [settings.logging]\n    level = \"INFO\"\n\n    [settings.server]\n    port = 1337\n\u003c/pre\u003e\n\n\n\u003ch1\u003eLicense\u003c/h1\u003e\nQuotes API is licensed under the MIT License\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffl1yd%2Fquotes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffl1yd%2Fquotes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffl1yd%2Fquotes/lists"}