{"id":33760390,"url":"https://github.com/nofendian17/iflow-adapter","last_synced_at":"2026-04-22T04:01:53.293Z","repository":{"id":327011790,"uuid":"1104281630","full_name":"nofendian17/iflow-adapter","owner":"nofendian17","description":null,"archived":false,"fork":false,"pushed_at":"2025-12-03T04:09:07.000Z","size":48214,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-12-03T18:07:09.346Z","etag":null,"topics":["api-key","free-ai-api","n8n","openai","vibec"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nofendian17.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-11-26T02:11:34.000Z","updated_at":"2025-12-03T04:09:11.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/nofendian17/iflow-adapter","commit_stats":null,"previous_names":["nofendian17/iflow-adapter"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/nofendian17/iflow-adapter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nofendian17%2Fiflow-adapter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nofendian17%2Fiflow-adapter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nofendian17%2Fiflow-adapter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nofendian17%2Fiflow-adapter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nofendian17","download_url":"https://codeload.github.com/nofendian17/iflow-adapter/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nofendian17%2Fiflow-adapter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32120402,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-22T00:31:26.853Z","status":"online","status_checked_at":"2026-04-22T02:00:05.693Z","response_time":58,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["api-key","free-ai-api","n8n","openai","vibec"],"created_at":"2025-12-05T10:02:01.011Z","updated_at":"2026-04-22T04:01:53.288Z","avatar_url":"https://github.com/nofendian17.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# iFlow OpenAI Adapter\n\nA high-performance, production-ready middleware service that provides a seamless **OpenAI-compatible interface** for accessing iFlow's advanced AI models. This adapter enables developers to leverage iFlow's powerful language models—including DeepSeek V3, Qwen3 series, Kimi K2, GLM-4.6, and TStars-2.0—without modifying their existing OpenAI integration code.\n\nBuilt with **Go**, following **Clean Architecture** principles, and designed for scalability and reliability.\n\n## � Documentation\n\n-   [**Configuration Guide**](docs/CONFIGURATION.md): Environment variables and settings.\n-   [**Deployment Guide**](docs/DEPLOYMENT.md): Docker and manual deployment instructions.\n-   [**API Reference**](docs/API.md): Endpoints, Authentication, and Permissions.\n-   [**Cookie Login Guide**](docs/COOKIE_LOGIN.md): How to use cookie-based authentication.\n-   [**Development Guide**](docs/DEVELOPMENT.md): Setup for contributors.\n\n## �🚀 Features\n\n-   **OpenAI Compatibility**: Full support for `/v1/chat/completions`, `/v1/models`, and `/v1/completions`.\n-   **Smart Load Balancing**: Built-in strategies (Round Robin, Random) with health monitoring.\n-   **High Availability**: Circuit breaker pattern, automatic failover, and account exclusion based on error thresholds.\n-   **Security**:\n    -   **Authentication**: JWT-based auth, API Key management, and OAuth2 integration.\n    -   **Rate Limiting**: Token bucket algorithm per IP/Path.\n-   **User Management**:\n    -   **Web Dashboards**: Separate Admin and User dashboards.\n    -   **Self-Service**: User registration, login, and API key generation.\n-   **Performance**:\n    -   **Streaming**: Real-time Server-Sent Events (SSE).\n    -   **Caching**: Redis integration for high-speed data access.\n-   **Infrastructure**:\n    -   **Multi-DB Support**: PostgreSQL (recommended) and MySQL.\n    -   **Docker Ready**: Optimized Docker images (Alpine/Distroless).\n\n## 🛠️ Tech Stack\n\n-   **Language**: Go (Golang) 1.24+\n-   **Framework**: Gin Web Framework\n-   **Databases**: PostgreSQL, MySQL\n-   **Cache**: Redis\n-   **Configuration**: Viper\n-   **Containerization**: Docker, Docker Compose\n\n## 🏁 Quick Start\n\n### 1. Clone the Repository\n\n```bash\ngit clone https://github.com/nofendian17/iflow-adapter.git\ncd iflow-adapter\n```\n\n### 2. Start with Docker\n\n```bash\ncp .env.example .env\n# Edit .env with your settings (see Configuration Guide)\ndocker-compose up -d\n```\n\n### 3. Initialize Data\n\n```bash\n\n\n# Create Admin User\ndocker-compose exec iflowadapter /iflowadapter seed admin --email admin@example.com --password secure_password\n```\n\n### 4. Access\n\n-   **Admin Dashboard**: `http://localhost:8080/admin/login`\n-   **API Endpoint**: `http://localhost:8080/v1/chat/completions`\n\n## 🤝 Contributing\n\nContributions are welcome! Please see the [Development Guide](docs/DEVELOPMENT.md) for details.\n\n## 📄 License\n\n[MIT License](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnofendian17%2Fiflow-adapter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnofendian17%2Fiflow-adapter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnofendian17%2Fiflow-adapter/lists"}