{"id":24785509,"url":"https://github.com/atyrode/gitemplate","last_synced_at":"2025-10-12T09:31:05.676Z","repository":{"id":274544426,"uuid":"922298282","full_name":"atyrode/gitemplate","owner":"atyrode","description":"FastAPI template made for AI","archived":false,"fork":false,"pushed_at":"2025-01-26T21:58:21.000Z","size":755,"stargazers_count":26,"open_issues_count":4,"forks_count":2,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-01-28T00:05:11.057Z","etag":null,"topics":["ai","fastapi","jinja2","llm","microservice","saas","tailwindcss","template","webapp"],"latest_commit_sha":null,"homepage":"http://gitemplate.com","language":"Python","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/atyrode.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-01-25T20:41:18.000Z","updated_at":"2025-01-27T08:17:46.000Z","dependencies_parsed_at":"2025-01-28T00:05:14.487Z","dependency_job_id":"6eb249d2-dd3b-4f37-bfee-ae116c12ec4a","html_url":"https://github.com/atyrode/gitemplate","commit_stats":null,"previous_names":["atyrode/gitemplate"],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atyrode%2Fgitemplate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atyrode%2Fgitemplate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atyrode%2Fgitemplate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atyrode%2Fgitemplate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/atyrode","download_url":"https://codeload.github.com/atyrode/gitemplate/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":236192326,"owners_count":19110002,"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","fastapi","jinja2","llm","microservice","saas","tailwindcss","template","webapp"],"created_at":"2025-01-29T14:18:46.166Z","updated_at":"2025-10-12T09:31:00.362Z","avatar_url":"https://github.com/atyrode.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Gitemplate\n\n[![Image](./docs/frontpage.png \"Gitemplate main page\")](https://gitemplate.com)\n[![License](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)\n[![Python](https://img.shields.io/badge/python-3.10+-blue.svg)](https://www.python.org/downloads/)\n[![FastAPI](https://img.shields.io/badge/FastAPI-0.109.0-009688.svg)](https://fastapi.tiangolo.com)\n[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)\n\nA production-ready FastAPI template specifically designed for building AI/LLM-powered web applications.\n\n- 🤖 Optimized for LLM integration and AI workflows\n- 🚀 FastAPI for high-performance API development\n- 🎨 Jinja2 templating engine\n- 💅 TailwindCSS for utility-first styling\n- ⚡️ Deploy your app in just an hour\n\nHere are some projects based on this template: [gitingest.com](http://gitingest.com) and [gitdiagram.com](http://gitdiagram.com).\n\nWe'd love to see what you build! Share your projects in our [Discussions](https://github.com/atyrode/gitemplate/discussions) section and become part of our growing ecosystem.\n\n## TL;DR\n\nYou may copy and paste the following code block to get started:\n\n```bash\ngit clone https://github.com/atyrode/gitemplate.git \u0026\u0026 cd gitemplate\npython -m venv venv \u0026\u0026 source venv/bin/activate  # Windows: `venv\\Scripts\\activate`\npip install rich\npython template.py -i\ncd src \u0026\u0026 python -m uvicorn server.main:app --reload\n```\n\nYou can now start developping in the `src/your_package_name/main.py` file. This is the entrypoint of your service.\n\n## ✨ Features\n\n- **Production-Ready Structure**: Organized project layout following best practices\n- **Modern Stack**:\n  - FastAPI for high-performance APIs\n  - Jinja2 templating engine for the front-end\n  - TailwindCSS for modern styling\n- **Security**:\n  - Built-in rate limiting\n  - Trusted host middleware\n  - Security headers configuration\n  - CORS configuration\n  - Environment variables management\n- **Deployment Ready**:\n  - Docker support with multi-stage builds\n  - GitHub Actions workflows for:\n    - CI/CD pipeline\n    - PyPI publishing\n    - Docker image building\n  - Health check endpoints\n  - Production-grade logging\n- **Developer Experience**:\n  - Pre-configured development tools:\n    - Black for code formatting\n    - isort for import sorting\n    - pylint for code analysis\n    - mypy for type checking\n    - pytest for testing\n  - Pre-commit hooks for code quality\n  - Type hints and comprehensive docstrings\n  - Hot reload during development\n- **Template System**:\n  - Easy customization through `template.py`\n  - Flexible project structure\n  - Configurable dependencies\n\n## 🚀 Quick Start\n\n1. Use this template by clicking \"Use this template\" on GitHub or clone it:\n\n```bash\ngit clone https://github.com/atyrode/gitemplate.git\ncd gitemplate\n```\n\n2. Create and activate a virtual environment:\n\n```bash\npython -m venv venv\nsource venv/bin/activate  # On Windows: `venv\\Scripts\\activate`\npip install rich # For better logging\n```\n\n3. Set up your project details in `template.py`:\n\n```python\nauthor: \"Your Name\"\npackage_name: \"your_package\"\nproject_name: \"Your Project\"\n...\n```\n\n4. Apply the template:\n\n```bash\npython template.py\n```\n\n5. Run the development server:\n\n```bash\ncd src\npython -m uvicorn server.main:app --reload --host 0.0.0.0 --port 8000\n```\n\nVisit `http://localhost:8000` to see your application running!\nYou can now start developping in the `src/your_package_name/main.py` file. This is the entrypoint of your service.\n\n## 💻 Development\n\n### Running Tests\n\n```bash\npytest\n```\n\n### Code Formatting\n\nThe project uses pre-commit hooks to maintain code quality:\n\n```bash\n# Format code\nblack .\n\n# Sort imports\nisort .\n\n# Lint code\npylint src/\n\n# Run pre-commit hooks\npre-commit run --all-files\n\n# Or install pre-commit hooks to run automatically\npre-commit install\n```\n\n### Docker Support\n\nBuild and run using Docker:\n\n```bash\ndocker build -t your-app-name .\ndocker run -p 8000:8000 your-app-name\n```\n\n## 🤝 Contributing\n\nContributions are welcome! Please read our [Contributing Guidelines](CONTRIBUTING.md) for details on how to submit pull requests, report issues, and contribute to the project. In its current state, the file is templated, but it should give\nyou a good starting point.\n\n## 📄 License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n## Palette\n\nThe colors used for this project are the following:\nhttps://coolors.co/4a8394-62aec5-88c0d5-add2e4-ffffff-f678a7-ee5c8d-e64072-d91c55\n\n## 🙏 Acknowledgments\n\n- [FastAPI](https://fastapi.tiangolo.com/) for the amazing web framework\n- [Jinja2](https://jinja.palletsprojects.com/) for templating\n- [TailwindCSS](https://tailwindcss.com/) for styling\n- [Gitingest](https://gitingest.com/) for the inspiration\n\n## ⭐ Project Growth\n\n[![Star History Chart](https://api.star-history.com/svg?repos=atyrode/gitemplate\u0026type=Date)](https://star-history.com/#atyrode/gitemplate\u0026Date)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fatyrode%2Fgitemplate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fatyrode%2Fgitemplate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fatyrode%2Fgitemplate/lists"}