{"id":13457260,"url":"https://github.com/baptadn/photoshot","last_synced_at":"2025-03-27T06:01:57.075Z","repository":{"id":64521519,"uuid":"574612724","full_name":"baptadn/photoshot","owner":"baptadn","description":"An open-source AI avatar generator web app - https://photoshot.app","archived":false,"fork":false,"pushed_at":"2024-12-07T18:48:24.000Z","size":37501,"stargazers_count":3704,"open_issues_count":11,"forks_count":451,"subscribers_count":25,"default_branch":"main","last_synced_at":"2025-03-20T04:39:28.506Z","etag":null,"topics":["ai","dreambooth","nextjs","reactjs","stable-diffusion","typescript"],"latest_commit_sha":null,"homepage":"https://photoshot.app","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/baptadn.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":"2022-12-05T17:35:38.000Z","updated_at":"2025-03-19T00:06:17.000Z","dependencies_parsed_at":"2023-02-17T21:00:38.739Z","dependency_job_id":"50fadf41-8126-405a-a344-385ffcfae19e","html_url":"https://github.com/baptadn/photoshot","commit_stats":null,"previous_names":["shinework/photoshot"],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baptadn%2Fphotoshot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baptadn%2Fphotoshot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baptadn%2Fphotoshot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baptadn%2Fphotoshot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/baptadn","download_url":"https://codeload.github.com/baptadn/photoshot/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245791941,"owners_count":20672670,"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":["ai","dreambooth","nextjs","reactjs","stable-diffusion","typescript"],"created_at":"2024-07-31T08:01:37.515Z","updated_at":"2025-03-27T06:01:57.043Z","avatar_url":"https://github.com/baptadn.png","language":"TypeScript","readme":"# Photoshot\n\n[![Twitter](https://img.shields.io/twitter/url/https/twitter.com/photoshot_ai.svg?style=social\u0026label=Follow%20%40photoshot_ai)](https://twitter.com/photoshot_ai)\n\n[![photobooth-ai.app](https://github.com/baptadn/photoshot/assets/1102595/3636614d-67f3-45a8-8c11-4b9271540725)](https://photobooth-ai.app/)\n\nAn open-source AI avatar generator web app\n\n[![Photoshot](https://photoshot.app/og-cover.jpg)\n](https://user-images.githubusercontent.com/1102595/206658000-d349ef06-e4f2-4626-9deb-6c8a246f7553.mp4)\n\nTry it out at [photoshot.app](https://photoshot.app)\n\n## Stack\n\n- ▲ [Next.js](https://nextjs.org/) for webapp\n- 🖼 [Chakra UI](https://chakra-ui.com/) for UI components\n- 📦 [Prisma](https://www.prisma.io/) for database\n- 🧠 [Replicate](https://replicate.com/), a platform for running machine learning models in the cloud\n- 💰 [Stripe](https://stripe.com/) for payments\n- 👩‍🎨 [Flux](https://blackforestlabs.ai/) an open-source text-to-image generation model\n\n## Getting Started\n\nInstall dependencies:\n\n```bash\nyarn install\n```\n\nYou can use Docker to run a local postgres database and maildev server (accessible at http://localhost:1080):\n\n```bash\ndocker-compose up -d\n```\n\nCreate .env.local:\n\n```bash\ncp .env.example .env.local\n```\n\nUpdate environment variable values:\n\n| Environment Variable                 | Explanation                                                                                                                                                            |\n| ------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| DATABASE_URL                         | The connection string for your PostgreSQL database. It will be `postgresql://photoshot:photoshot@localhost:5432/photoshot` if you are using the provided docket setup. |\n| NEXTAUTH_URL                         | The URL of your Next.js application, used for authentication purposes with NextAuth.js.                                                                                |\n| S3_UPLOAD_KEY                        | The access key for your AWS S3 bucket used for storing pictures.                                                                                                       |\n| S3_UPLOAD_SECRET                     | The secret key for your AWS S3 bucket used for storing pictures.                                                                                                       |\n| S3_UPLOAD_BUCKET                     | The name of your AWS S3 bucket used for storing pictures.                                                                                                              |\n| S3_UPLOAD_REGION                     | The AWS region where your S3 bucket is located.                                                                                                                        |\n| REPLICATE_API_TOKEN                  | The [API token](https://replicate.com/account) for Replicate.                                                                                                          |\n| REPLICATE_USERNAME                   | The username associated with your Replicate account.                                                                                                                   |\n| REPLICATE_MAX_TRAIN_STEPS            | The maximum number of training steps for the Dreambooth AI model. Defaults to `3000`.                                                                                  |\n| REPLICATE_NEGATIVE_PROMPT            | A prompt used for negative training examples in the Replicate AI model. Defualts to `cropped face, cover face, cover visage, mutated hands`                            |\n| REPLICATE_HD_VERSION_MODEL_ID        | The version of the model for upscaling the generated images. Such models can be browsed [here](https://replicate.com/collections/super-resolution)                     |\n| NEXT_PUBLIC_REPLICATE_INSTANCE_TOKEN | A unique identifier for the training data. It can be any string. For best results use an identifier containing three Unicode characters, without spaces e.g. `cjw`     |\n| SECRET                               | A random string used for NextAuth.js authentication.                                                                                                                   |\n| EMAIL_FROM                           | The email address from which emails will be sent.                                                                                                                      |\n| EMAIL_SERVER                         | The SMTP server URL used for sending emails. It will be `http://localhost:25` if you are using the provided docker setup,                                              |\n| STRIPE_SECRET_KEY                    | The API key for your Stripe account.                                                                                                                                   |\n| NEXT_PUBLIC_STRIPE_STUDIO_PRICE      | The price of a studio in cents (e.g., 1000 = $10).                                                                                                                     |\n| NEXT_PUBLIC_STUDIO_SHOT_AMOUNT       | The maximum number of shots allowed per studio.                                                                                                                        |\n| OPENAI_API_KEY                       | The API key for the OpenAI API, used for the prompt wizard feature.                                                                                                    |\n| OPENAI_API_SEED_PROMPT               | A seed prompt used for generating style prompts using the OpenAI API.                                                                                                  |\n\nPlease note that if you want to use the provided `docker-compose` setup you have to disable `TLS` in your `.env.local` by adding:\n\n```\nNODE_TLS_REJECT_UNAUTHORIZED = \"0\"\n```\n\nRun migrations\n\n```bash\nyarn prisma:migrate:dev\n```\n\nRun the development server:\n\n```bash\nnpm run dev\n# or\nyarn dev\n```\n\nOpen [http://localhost:3000](http://localhost:3000) with your browser to see the result.\n","funding_links":[],"categories":["TypeScript","ai"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbaptadn%2Fphotoshot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbaptadn%2Fphotoshot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbaptadn%2Fphotoshot/lists"}