{"id":24532561,"url":"https://github.com/eja/proxemb","last_synced_at":"2026-02-24T11:32:11.571Z","repository":{"id":273057968,"uuid":"918584485","full_name":"eja/proxemb","owner":"eja","description":"a lightweight embedding proxy server with caching","archived":false,"fork":false,"pushed_at":"2025-01-19T17:00:34.000Z","size":27,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-11T05:04:06.985Z","etag":null,"topics":["embeddings","openai","proxy","sqlite"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/eja.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2025-01-18T10:16:00.000Z","updated_at":"2025-02-01T15:51:05.000Z","dependencies_parsed_at":null,"dependency_job_id":"b7927bf3-136e-4d14-9a8d-dd77f1c6f0b0","html_url":"https://github.com/eja/proxemb","commit_stats":null,"previous_names":["eja/proxemb"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/eja/proxemb","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eja%2Fproxemb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eja%2Fproxemb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eja%2Fproxemb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eja%2Fproxemb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eja","download_url":"https://codeload.github.com/eja/proxemb/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eja%2Fproxemb/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29780604,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-24T10:45:18.109Z","status":"ssl_error","status_checked_at":"2026-02-24T10:45:09.911Z","response_time":75,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["embeddings","openai","proxy","sqlite"],"created_at":"2025-01-22T10:17:16.582Z","updated_at":"2026-02-24T11:32:11.555Z","avatar_url":"https://github.com/eja.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Embedding Proxy Server\n\nA lightweight caching proxy server for embedding APIs that stores embeddings in SQLite, reducing API calls and improving response times for repeated requests.\n\n## Features\n\n- Caches embeddings in SQLite database\n- Compatible with OpenAI-compatible embedding APIs (including local alternatives like Ollama)\n- Supports multiple embedding models simultaneously\n- Simple HTTP API interface\n- Zero configuration required for basic usage\n- Cross-platform support (Linux, macOS, Windows)\n\n## Quick Start\n\n### Binary Installation\n\nDownload the latest binary for your operating system from the [releases page](https://github.com/eja/proxemb/releases).\n\nRun the server:\n\n```bash\n./proxemb\n```\n\nThe server will start with default settings (localhost:35248) and create an SQLite database in the current directory.\n\n### Building from Source\n\nRequirements:\n- Go 1.21 or later\n- Make (optional)\n\nTo compile:\n\n```bash\nmake\n```\n\nOr manually with Go:\n\n```bash\ngo build -o proxemb\n```\n\n## Usage\n\n### Command Line Options\n\n```\nOptions:\n\n  -api-key string\n        OpenAI API key\n  -api-url string\n        OpenAI API URL (default \"http://localhost:11434/v1/\")\n  -db string\n        Path to the SQLite database (default \"embeddings.db\")\n  -log-file string\n        Log file path\n  -web-host string\n        Web server host (default \"localhost\")\n  -web-port string\n        Web server port (default \"35248\")\n```\n\n### Example Usage\n\n1. Start the server with default settings:\n```bash\n./proxemb\n```\n\n2. Start with custom API endpoint (e.g., for OpenAI):\n```bash\n./proxemb -api-url \"https://api.openai.com/v1/\" -api-key \"your-api-key\"\n```\n\n3. Start with custom port and host:\n```bash\n./proxemb -web-host \"0.0.0.0\" -web-port \"8080\"\n```\n\n### API Usage\n\nSend POST requests to the root endpoint with the following JSON structure:\n\n```json\n{\n    \"model\": \"text-embedding-3-small\",\n    \"input\": \"Your text to embed\"\n}\n```\n\nExample using curl:\n\n```bash\ncurl -X POST http://localhost:35248/ \\\n    -H \"Content-Type: application/json\" \\\n    -d '{\"model\":\"text-embedding-3-small\",\"input\":\"Hello, world!\"}'\n```\n\nResponse format:\n\n```json\n{\n    \"embedding\": [0.123, 0.456, ...]\n}\n```\n\n## Database\n\nThe SQLite database is automatically created and contains two tables:\n- `models`: Stores model names and their IDs\n- `hashes`: Stores the cached embeddings with MD5 hashes of input texts\n\nThe database file location can be specified using the `-db` flag.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feja%2Fproxemb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feja%2Fproxemb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feja%2Fproxemb/lists"}