{"id":25823231,"url":"https://github.com/abidalwassie/holdmyimage","last_synced_at":"2025-07-13T19:06:55.154Z","repository":{"id":278649626,"uuid":"936265946","full_name":"AbidAlWassie/holdmyimage","owner":"AbidAlWassie","description":"Generate static placeholder images 🔥","archived":false,"fork":false,"pushed_at":"2025-02-23T17:51:58.000Z","size":1960,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-28T17:46:42.503Z","etag":null,"topics":["image-generator","nextjs","placeholder","placeholder-image","serverless"],"latest_commit_sha":null,"homepage":"https://holdmyimage.netlify.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/AbidAlWassie.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-20T19:51:38.000Z","updated_at":"2025-02-24T08:05:10.000Z","dependencies_parsed_at":"2025-02-20T23:37:06.666Z","dependency_job_id":null,"html_url":"https://github.com/AbidAlWassie/holdmyimage","commit_stats":null,"previous_names":["abidalwassie/holdmyimage"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/AbidAlWassie/holdmyimage","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AbidAlWassie%2Fholdmyimage","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AbidAlWassie%2Fholdmyimage/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AbidAlWassie%2Fholdmyimage/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AbidAlWassie%2Fholdmyimage/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AbidAlWassie","download_url":"https://codeload.github.com/AbidAlWassie/holdmyimage/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AbidAlWassie%2Fholdmyimage/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265191062,"owners_count":23725252,"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-generator","nextjs","placeholder","placeholder-image","serverless"],"created_at":"2025-02-28T11:50:36.791Z","updated_at":"2025-07-13T19:06:55.075Z","avatar_url":"https://github.com/AbidAlWassie.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 📸 holdmyimage\n\n[**holdmyimage**](https://holdmyimage.netlify.app) is a dynamic placeholder image generator that lets you create customizable placeholder images on-the-fly. Whether you need a quick placeholder for your project or a custom image with specific dimensions, colors, and text, **HoldMyImage** has got you covered! 🎨✨\n\n---\n\n## 🚀 Features\n\n- **Generate SVG or PNG placeholder images** 🖼️\n- **Customize image dimensions** 📏\n- **Set background and text colors using hex codes** 🎨\n- **Add custom text to the image** ✍️\n- **Choose custom fonts** 🔤\n- **Responsive design for easy use on various devices** 📱💻\n- **Copy image URL or download the generated image** 📋⬇️\n\n---\n\n## 🛠️ Getting Started\n\n### 1. Clone the Repository\n\nFirst, clone the repository and install the dependencies:\n\n```shellscript\ngit clone \u003cyour-repo-url\u003e\ncd \u003cyour-project-directory\u003e\nnpm install\n```\n\n### 2. Run the Development Server\n\nStart the development server with:\n\n```shellscript\nnpm run dev\n# or\nyarn dev\n# or\npnpm dev\n```\n\nOpen [http://localhost:3000](http://localhost:3000) in your browser to see the application. 🌐\n\n---\n\n## 🖌️ Usage\n\n1. **Open the application** in your browser.\n2. **Use the form** to customize your placeholder image:\n   - Set the dimensions (e.g., `200x200`).\n   - Choose background and text colors (in hex format).\n   - Enter the text you want to display.\n   - Select a font.\n3. **Click \"Generate Image\"** to create your placeholder.\n4. **Use the buttons** to:\n   - Open the image in a new tab.\n   - Download the image.\n   - Copy the image URL.\n\n---\n\n## 🌐 API\n\nThe project includes an API route that generates the images. You can use it directly:\n\n```plaintext\n/api/image/{width}x{height}/{backgroundColor}/{textColor}?text={text}\u0026font={font}\u0026pattern={pattern}\u0026patternDensity={default:120}\u0026gradient={color1},{color2}\u0026direction={horizontal | vertical | diagonal}\u0026format={svg}\n```\n\n### Parameters:\n\n- **`width` and `height`**: Image dimensions in pixels.\n- **`backgroundColor` and `textColor`**: Colors in hex format (without `#`).\n- **`text`**: The text to display (URL encoded).\n- **`font`**: The font to use (default is `Arial`).\n- **`format`**: `svg` (default) or `png`.\n- **`pattern`**: `none` | `waves` | `lines` | `grid` | `rectangles` | `triangles` | `trianglesOutline` | `dots` | `circles`.\n\n### Example:\n\n```plaintext\nhttps://holdmyimage.netlify.app/api/image/1280x720/1f788e/e7edee?text=Hello+World!\u0026font=Roboto\u0026pattern=waves\u0026patternDensity=120\u0026gradient=a733c7%2C1bb2c5\u0026direction=horizontal\u0026format=svg\n```\n\n---\n\n## 🎨 Customization\n\n- **Edit the main page** in `app/page.tsx` to modify the user interface.\n- **Image generation logic** is located in `app/api/image/[...params]/route.ts`.\n\n---\n\n## 📚 Learn More\n\nTo learn more about the technologies used in this project:\n\n- [**Next.js Documentation**](https://nextjs.org/docs) - Learn about Next.js features and API.\n- [**Sharp**](https://sharp.pixelplumbing.com/) - Used for image processing and PNG conversion.\n- [**Tailwind CSS**](https://tailwindcss.com/docs) - The CSS framework used for styling.\n\n---\n\n## 🚀 Deployment\n\nThis project is ready to be deployed on [**Vercel**](https://vercel.com). You can deploy it directly from your GitHub repository for continuous deployment.\n\n### Steps to Deploy:\n\n1. **Push your code** to a GitHub repository.\n2. **Go to [Vercel](https://vercel.com)** and sign up or log in.\n3. **Click \"New Project\"** and select your repository.\n4. **Follow the steps** to deploy your application.\n\nFor more details, check out the [**Next.js deployment documentation**](https://nextjs.org/docs/deployment).\n\n---\n\n## 🤝 Contributing\n\nContributions are welcome! 🙌 Please feel free to submit a **Pull Request**.\n\n---\n\n## 📜 License\n\nThis project is licensed under the [**MIT License**](https://choosealicense.com/licenses/mit/).\n\n---\n\n## 📦 Dependencies\n\n```json\n{\n  \"name\": \"holdmyimage\",\n  \"version\": \"0.8.1\",\n  \"private\": true,\n  \"scripts\": {\n    \"dev\": \"next dev\",\n    \"build\": \"next build\",\n    \"start\": \"next start\",\n    \"lint\": \"next lint\"\n  },\n  \"dependencies\": {\n    \"@radix-ui/react-dropdown-menu\": \"^2.1.6\",\n    \"@radix-ui/react-label\": \"^2.1.2\",\n    \"@radix-ui/react-select\": \"^2.1.6\",\n    \"@radix-ui/react-separator\": \"^1.1.2\",\n    \"@radix-ui/react-slot\": \"^1.1.2\",\n    \"@radix-ui/react-switch\": \"^1.1.3\",\n    \"@radix-ui/react-toast\": \"^1.2.6\",\n    \"class-variance-authority\": \"^0.7.1\",\n    \"clsx\": \"^2.1.1\",\n    \"lucide-react\": \"^0.475.0\",\n    \"next\": \"15.1.7\",\n    \"next-themes\": \"^0.4.4\",\n    \"react\": \"^19.0.0\",\n    \"react-dom\": \"^19.0.0\",\n    \"sharp\": \"^0.33.5\",\n    \"tailwind-merge\": \"^3.0.1\",\n    \"tailwindcss-animate\": \"^1.0.7\"\n  },\n  \"devDependencies\": {\n    \"@eslint/eslintrc\": \"^3\",\n    \"@types/node\": \"^20\",\n    \"@types/react\": \"^19\",\n    \"@types/react-dom\": \"^19\",\n    \"eslint\": \"^9\",\n    \"eslint-config-next\": \"15.1.7\",\n    \"postcss\": \"^8\",\n    \"tailwindcss\": \"^3.4.1\",\n    \"typescript\": \"^5\"\n  },\n  \"packageManager\": \"pnpm@10.3.0+sha512.ee592eda8815a8a293c206bb0917c4bb0ff274c50def7cbc17be05ec641fc2d1b02490ce660061356bd0d126a4d7eb2ec8830e6959fb8a447571c631d5a2442d\"\n}\n```\n\n---\n\nEnjoy creating your placeholder images with **HoldMyImage**! 🎉\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabidalwassie%2Fholdmyimage","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabidalwassie%2Fholdmyimage","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabidalwassie%2Fholdmyimage/lists"}