{"id":20518335,"url":"https://github.com/tricked-dev/image-api","last_synced_at":"2025-03-05T23:42:38.710Z","repository":{"id":207975316,"uuid":"720410131","full_name":"Tricked-dev/image-api","owner":"Tricked-dev","description":"Create a random image api for free!","archived":false,"fork":false,"pushed_at":"2023-11-18T22:56:09.000Z","size":7742,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-16T10:17:18.886Z","etag":null,"topics":["cloudflare-pages"],"latest_commit_sha":null,"homepage":"https://borzoi-1am.pages.dev/","language":"TypeScript","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/Tricked-dev.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},"funding":{"github":"Tricked-dev","ko_fi":"tricked"}},"created_at":"2023-11-18T12:00:52.000Z","updated_at":"2024-02-04T13:31:29.000Z","dependencies_parsed_at":"2025-01-16T09:53:34.637Z","dependency_job_id":"b99d62e9-e6f7-4102-a033-978e5e894274","html_url":"https://github.com/Tricked-dev/image-api","commit_stats":null,"previous_names":["tricked-dev/image-api"],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tricked-dev%2Fimage-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tricked-dev%2Fimage-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tricked-dev%2Fimage-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tricked-dev%2Fimage-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Tricked-dev","download_url":"https://codeload.github.com/Tricked-dev/image-api/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242123200,"owners_count":20075344,"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":["cloudflare-pages"],"created_at":"2024-11-15T21:40:13.680Z","updated_at":"2025-03-05T23:42:38.693Z","avatar_url":"https://github.com/Tricked-dev.png","language":"TypeScript","readme":"# Image API\n\nCreate a api for images with [Cloudflare pages](https://pages.cloudflare.com) and [Bun](https://bun.sh/).\n\nLive demo \u003chttps://borzoi-1am.pages.dev/\u003e\n\n## Getting started\n\nYou will need Bun installed and a Cloudflare account.\n\n1. Create a repo with this as a template and clone it locally\n1. Edit branding.json to add a description, title and possible change the format used png is used by default and gifs will stay gifs (png,webp,jpg) are all accepted formats\n1. Delete data.json and empty the images folder\n1. Drop images into the images folder\n1. (optional) Run `bun run src/build.ts` this will create a `data.json` file in which you can tag images and change the output name.\n1. Go to Cloudflare to the [pages tab](https://dash.cloudflare.com/?to=/:account/workers-and-pages) click create new application\n1. Click on Pages -\u003e Connect to git\n1. Select the created repo\n1. As command set `bun run build`\n1. Output folder is `./dist`\n1. And you're done!\n\n## Debugging\n\n### Something went wrong installing the \"sharp\" module\n\nI tried making a permanent fix but it didn't work so for now you can fix it by removing the node_modules and bun.lockb folders at the same time\n\n`rm -rf bun.lockb node_modules`\n\nAnd doing `bun i` again\n\n## Customizing\n\nYou can customize the look and stuff by editing the pug templates inside `src/ui`\n\n## Contributing\n\nFeel free to add new borzoi's for this kind of demo but also borzoi api!\n\nAny pull requests are welcome! even if its as small as fixing typos or as big as redesign!\n\n## License\n\nMIT\n","funding_links":["https://github.com/sponsors/Tricked-dev","https://ko-fi.com/tricked"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftricked-dev%2Fimage-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftricked-dev%2Fimage-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftricked-dev%2Fimage-api/lists"}