{"id":13457248,"url":"https://github.com/adevinwild/micro-scale","last_synced_at":"2025-10-26T05:30:50.335Z","repository":{"id":200004755,"uuid":"701702935","full_name":"adevinwild/micro-scale","owner":"adevinwild","description":"Use this open-source image upscaling web app template for your Next.js project. Powered by Replicate AI.","archived":false,"fork":false,"pushed_at":"2024-03-21T19:30:06.000Z","size":2642,"stargazers_count":145,"open_issues_count":0,"forks_count":10,"subscribers_count":1,"default_branch":"develop","last_synced_at":"2024-09-28T10:42:47.107Z","etag":null,"topics":["image-upscaler","image-upscaling","nextjs14","open-source","replicate-api","shadcn-ui","stripe","supabase"],"latest_commit_sha":null,"homepage":"https://uscale.imadil.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/adevinwild.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2023-10-07T10:11:37.000Z","updated_at":"2024-09-27T21:41:37.000Z","dependencies_parsed_at":"2023-10-21T20:46:04.193Z","dependency_job_id":"6f6611aa-51dd-4b90-b358-06b3ab45942d","html_url":"https://github.com/adevinwild/micro-scale","commit_stats":null,"previous_names":["adevinwild/micro-scale"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adevinwild%2Fmicro-scale","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adevinwild%2Fmicro-scale/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adevinwild%2Fmicro-scale/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adevinwild%2Fmicro-scale/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adevinwild","download_url":"https://codeload.github.com/adevinwild/micro-scale/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219863860,"owners_count":16555943,"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":["image-upscaler","image-upscaling","nextjs14","open-source","replicate-api","shadcn-ui","stripe","supabase"],"created_at":"2024-07-31T08:01:37.110Z","updated_at":"2025-10-26T05:30:49.914Z","avatar_url":"https://github.com/adevinwild.png","language":"TypeScript","funding_links":[],"categories":["TypeScript","Boilerplates \u0026 Starters","AI"],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n    \u003cimg src=\"./.r/gh-logo.png\" width=\"320px\" \u003e\n\u003c/p\u003e\n\n\u003ch1 align=\"center\"\u003e\n    μScale\n\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n    µ(micro)Scale is a web app that allows you to upscale any images up to 2x its resolution with AI.\n\u003c/p\u003e\n\n## Introduction and features\n\nWhat started out as a hackathon project (The FullStack Network Hackathon #1) eventually evolved into a template that other developers could use to expand on this foundation with the following features integrated in this new version:\n\n- +Next.js 14\n- +shadcn/ui\n- +sonner\n- +Supabase (Storage, Auth and Database)\n- +Stripe and Stripe Checkout\n- +Replicate AI\n\nThe app is built with Next.js and Tailwind CSS, and uses Supabase for storage, authentication and database. The app also uses Stripe for payments so the users can buy credits to have access to the upscale feature that is built around Replicate AI.\n\n## Try the app\n\nYou can try the app [here](https://uscale.imadil.dev/)\n\n## Getting Started\n\nBefore starting, you'll need to configure the environment variables with the various keys required.\nOnce you've set up your environment variables, you'll need to configure your database with the schema provided below.\n\n\u003e Note for Stripe webhook:\n\u003e When configuring your webhook to know if the payment was successful, the URL for the webhook is as follows: `http://localhost:3000/api/stripe`\n\n## Database Schema\n\n### Tables\n\n1. **credits**\n\n   - `amount`: (number | null) - The amount of credits.\n   - `created_at`: (string) - The creation date of the credit record.\n   - `id`: (number) - The unique identifier of the credit record.\n   - `user_id`: (string | null) - The identifier of the user associated with the credit record.\n\n2. **predictions**\n   - `created_at`: (string) - The creation date of the prediction record.\n   - `id`: (number) - The unique identifier of the prediction record.\n   - `input_url`: (string | null) - The input URL for the prediction.\n   - `output_url`: (string | null) - The output URL for the prediction.\n   - `status`: (number | null) - The status of the prediction.\n   - `user_id`: (string | null) - The identifier of the user associated with the prediction record.\n\n### Relationships\n\n1. **public_credits_user_id_fkey**: A foreign key relationship from the `user_id` column in the `credits` table to the `id` column in the `users` table.\n2. **public_predictions_user_id_fkey**: A foreign key relationship from the `user_id` column in the `predictions` table to the `id` column in the `users` table.\n\nPlease ensure that your database is set up with this schema before running the application.\n\n## Local Development\n\nYou can now start the development server by running:\n\n```bash\nyarn dev\n```\n\nWhen your server has started, you'll NEED to run a [ngrok tunnel](https://ngrok.com) to expose your localhost to the internet. This is necessary for the AI predictions runned by Replicate that will trigger the different webhooks in the app.\n\n```bash\nngrok http 3000\n```\n\nFinally, I have commented out the Replicate AI integration in the app, so you'll need to uncomment the code in the `src/app/api/upload` file to enable the AI predictions.\n\nYou are all set! You can now access your app and try it out.\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n## Useful Links\n\n- [Next.js](https://nextjs.org/)\n- [Tailwind CSS](https://tailwindcss.com/)\n- [Supabase](https://supabase.com/)\n- [Stripe](https://stripe.com/)\n- [Replicate AI](https://replicate.com/)\n- [The FullStack Network](https://thefullstack.network/)\n- [ngrok](https://ngrok.com/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadevinwild%2Fmicro-scale","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadevinwild%2Fmicro-scale","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadevinwild%2Fmicro-scale/lists"}