{"id":16265914,"url":"https://github.com/zernonia/supabase-cdn-transformation","last_synced_at":"2025-04-08T14:38:35.094Z","repository":{"id":112541455,"uuid":"405164938","full_name":"zernonia/supabase-cdn-transformation","owner":"zernonia","description":null,"archived":false,"fork":false,"pushed_at":"2021-09-11T03:06:26.000Z","size":17,"stargazers_count":14,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-14T10:56:32.856Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"supabase-cdn-transformation.vercel.app","language":"HTML","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/zernonia.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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":{"custom":["https://www.buymeacoffee.com/zernonia"]}},"created_at":"2021-09-10T17:41:11.000Z","updated_at":"2022-10-19T14:47:27.000Z","dependencies_parsed_at":"2023-05-15T22:30:12.041Z","dependency_job_id":null,"html_url":"https://github.com/zernonia/supabase-cdn-transformation","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zernonia%2Fsupabase-cdn-transformation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zernonia%2Fsupabase-cdn-transformation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zernonia%2Fsupabase-cdn-transformation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zernonia%2Fsupabase-cdn-transformation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zernonia","download_url":"https://codeload.github.com/zernonia/supabase-cdn-transformation/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247862836,"owners_count":21008772,"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":[],"created_at":"2024-10-10T17:21:06.765Z","updated_at":"2025-04-08T14:38:35.076Z","avatar_url":"https://github.com/zernonia.png","language":"HTML","funding_links":["https://www.buymeacoffee.com/zernonia"],"categories":[],"sub_categories":[],"readme":"\u003c!-- PROJECT LOGO --\u003e\n\u003cbr /\u003e\n\u003cp align=\"center\"\u003e\n  \u003ch3 align=\"center\"\u003eSupabase Storage CDN \u0026 Transformation (Alternative Unofficial)\u003c/h3\u003e\n\n  \u003cp align=\"center\"\u003e\n    Secured \u0026 Simple \u003cstrong\u003e\u003ca href=\"https://supabase.io/\"\u003eSupabase\u003c/a\u003e Storage CDN \u0026 Transformation (Self-hosted).\u003c/strong\u003e\n    \u003cbr /\u003e\n    \u003cbr /\u003e\n    \u003ca href=\"https://blog.zernonia.com/supabase-storage-cdn-and-transformation-with-serverless-function-unofficial\"\u003eView Tutorial\u003c/a\u003e\n    ·\n    \u003ca href=\"https://github.com/zernonia/supabase-cdn-transformation/issues\"\u003eReport Bug\u003c/a\u003e\n    ·\n    \u003ca href=\"https://github.com/zernonia/supabase-cdn-transformation/issues\"\u003eRequest Feature\u003c/a\u003e\n  \u003c/p\u003e\n\n  \u003cp align=\"center\"\u003e\n    \u003ca href=\"https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fzernonia%2Fsupabase-cdn-transformation\u0026env=SUPABASE_URL\u0026project-name=supabase-cdn-transformation\u0026repo-name=supabase-cdn-transformation\u0026demo-title=Supabase%20CDN%20Transformation\u0026demo-description=Temporary%20Altnernative%20for%20Supabase%20Storage%20CDN%20%26%20Transformation\u0026demo-url=https%3A%2F%2Fsupabase-cdn-transformation.vercel.app%2F\u0026demo-image=https%3A%2F%2Fcdn.hashnode.com%2Fres%2Fhashnode%2Fimage%2Fupload%2Fv1631296527320%2FTH24GsjXyv.png%3Fw%3D1600%26h%3D840%26fit%3Dcrop%26crop%3Dentropy%26auto%3Dcompress\"\u003e\u003cimg src=\"https://vercel.com/button\" alt=\"Deploy with Vercel\"/\u003e\u003c/a\u003e\n  \u003c/p\u003e\n\u003c/p\u003e\n\n![Supabase CDN \u0026 Transformation](https://cdn.hashnode.com/res/hashnode/image/upload/v1631296527320/TH24GsjXyv.png?w=1600\u0026h=840\u0026fit=crop\u0026crop=entropy\u0026auto=compress)\n\n## 🚀 Features\n\n- ☁ CDN\n- 🤚 Image Transformation (width, height, quality)\n- 🚀 1-Click Deploy!\n- 🔒 Hosted on your own Vercel instance\n- 👀 No Sensitive info required\n\n## 📇 Inspiration/Showcase\n\nI had a website called [Made With Supabase](https://www.madewithsupabase.com/), which showcase projects that made with Supabase. A problem occurs to me where the images load super-duper slow. Hence, I started to look into this issue.\n\nIt turns out that some of the images has around 5MB 🤯, which is too high quality, and wasting data quota as well for all my visitors!\n\nThen, I found out that [Supabase Storage](https://supabase.io/storage)'s CDN and Transformation still Working in Progress. I don't want to wait any longer, and thus, I've created this simple **Serverless CDN and Image Transformation** service for everyone! 🎇✨🎉.\n\n### 🔨 Built With\n\n- [Vercel](https://vercel.com/)\n\n## 🐾 Instructions\n\n1. Click [![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fzernonia%2Fsupabase-cdn-transformation\u0026env=SUPABASE_URL\u0026project-name=supabase-cdn-transformation\u0026repo-name=supabase-cdn-transformation\u0026demo-title=Supabase%20CDN%20Transformation\u0026demo-description=Temporary%20Altnernative%20for%20Supabase%20Storage%20CDN%20%26%20Transformation\u0026demo-url=https%3A%2F%2Fsupabase-cdn-transformation.vercel.app%2F\u0026demo-image=https%3A%2F%2Fcdn.hashnode.com%2Fres%2Fhashnode%2Fimage%2Fupload%2Fv1631296527320%2FTH24GsjXyv.png%3Fw%3D1600%26h%3D840%26fit%3Dcrop%26crop%3Dentropy%26auto%3Dcompress)\n2. Create a new Git repo.\n3. Create a team? You can `skip` it.\n4. Key in `SUPABASE_URL` (only support 1 project at once) in the Environment Variables.\n5. Wait for deployment\n6. Congratulations! Your serverless function is up and running! Enjoy !!! 🎉\n7. 🌟 this repo, 🐤 this project, ☕ buy me a coffee?\n8. Learn more from this [Blog post](https://blog.zernonia.com/supabase-storage-cdn-and-transformation-with-serverless-function-unofficial).\n\n## How to use\n\nHere are some of the parameter to pass along the new image's url.\n\n```sh\nw: width          (number of pixel)    // optional\nh: height         (number of pixel)    // optional\nf: file_name      (eg: avatar.png)\nb: bucket_name    (eg: static)\nq: quality        (0 to 100)           // optional\n\n```\n\n1. Click `Deploy` button above and follow the instruction above.\n2. Wrap all the images url in your project's `\u003cimg\u003e` with the following code. \u003cbr\u003e\n   `https://{ url-for-the-serverless-function-you-just-deployed }/api/resize?...`\n3. Pass the parameter into the url as query string. (eg:) \u003cbr\u003e\n   `https://.../api/resize?f=avatar.png\u0026b=static\u0026w=1200`\n4. Insert the link into `\u003cimg src=\"here\" \u003e` and you are done!\n\n\u003c!--\n## ➕ Contributing\n\nContributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are **greatly appreciated**.\n\n1. Fork the Project\n2. Create your Feature Branch (`git checkout -b feature/AmazingFeature`)\n3. Commit your Changes (`git commit -m 'Add some AmazingFeature'`)\n4. Push to the Branch (`git push origin feature/AmazingFeature`)\n5. Open a Pull Request --\u003e\n\n\u003c!-- ## 🙏 Acknowledgement\n\n1. Fundamental for this Visualization ([Generate database types from OpenAPI specification](https://supabase.io/docs/reference/javascript/generating-types#generate-database-types-from-openapi-specification))\n2. Guide to Construct Dynamic SVG Connector ([Connecting Table using SVG](https://codepen.io/alojzije/pen/ndfrI))\n3. [Icones - icon gallery](https://icones.js.org/) --\u003e\n\n\u003c!-- ## 📈 Analytics\n\nI'm using [Umami Analytics](https://umami.is/docs/about) because I'm interested in the distributions of user who uses Supabase and this tool.\n\n[This](https://umami-zernonia.vercel.app/share/yzSUulXQ/Supabase%20Schema) is the public URL for the analytics. Enjoy! --\u003e\n\n## 📜 License\n\nNot Associated with Supabase.\n\nDistributed under the MIT License. See `LICENSE` for more information.\n\n# 📧 Contact\n\nTwitter - [@zernonia](https://twitter.com/zernonia)\n\nAlso, if you like my work, please buy me a coffee ☕😳\n\n\u003ca href=\"https://www.buymeacoffee.com/zernonia\" target=\"_blank\"\u003e\n    \u003cimg src=\"https://www.buymeacoffee.com/assets/img/custom_images/yellow_img.png\" alt=\"Logo\" \u003e\n  \u003c/a\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzernonia%2Fsupabase-cdn-transformation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzernonia%2Fsupabase-cdn-transformation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzernonia%2Fsupabase-cdn-transformation/lists"}