NyaProxy  by Nya-Foundation

API proxy for load balancing, securing, and monitoring API interactions

created 3 months ago
682 stars

Top 50.8% on sourcepulse

GitHubView on GitHub
Project Summary

NyaProxy is a universal API proxy designed to manage, secure, and optimize access to various online services, particularly AI and image generation APIs. It targets developers and teams needing to efficiently utilize multiple API keys, offering load balancing, failover, rate limiting, and security enhancements. The primary benefit is increased reliability and cost-effectiveness in API integrations.

How It Works

NyaProxy acts as an intermediary, routing client requests to backend API providers. It employs sophisticated strategies like round-robin, least-request, and fastest-response for load balancing across multiple API keys. Failover mechanisms ensure continuous service by automatically switching to healthy keys if one fails. Advanced features include dynamic header substitution, request body transformation using JMESPath, and simulated streaming for improved user experience.

Quick Start & Requirements

Highlighted Details

  • Supports 5 load balancing strategies: Round Robin, Random, Least Request, Fastest Response, Weighted.
  • Features granular rate limiting per endpoint and key with smart queuing.
  • Enables dynamic header and JSON request body substitution using templating and JMESPath.
  • Provides a real-time metrics dashboard for monitoring API traffic and system health.

Maintenance & Community

Licensing & Compatibility

  • License: MIT License.
  • Compatibility: Permissive license suitable for commercial and closed-source applications.

Limitations & Caveats

The project is actively developed with a roadmap for Q1/Q2 2025 including documentation enhancements and a plugin system. Security notes emphasize setting a strong master API key for production environments to prevent unauthorized access to sensitive interfaces.

Health Check
Last commit

4 weeks ago

Responsiveness

Inactive

Pull Requests (30d)
2
Issues (30d)
0
Star History
506 stars in the last 90 days

Explore Similar Projects

Starred by Patrick von Platen Patrick von Platen(Core Contributor to Hugging Face Transformers and Diffusers) and Jeff Hammerbacher Jeff Hammerbacher(Cofounder of Cloudera).

client-python by mistralai

0%
628
Python SDK for Mistral AI platform
created 1 year ago
updated 1 week ago
Starred by Adam Wolff Adam Wolff(Claude Code Core; MTS at Anthropic), Samuel Colvin Samuel Colvin(Author of Pydantic, Pydantic Logfire, PydanticAI), and
3 more.

anthropic-sdk-python by anthropics

0.5%
2k
Python SDK for Anthropic's REST API
created 2 years ago
updated 9 hours ago
Feedback? Help us improve.