@heguoliang/evergate 0.0.0-stage → 0.1.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 guol9180
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,20 @@
1
- # Temporary Holding Version
1
+ # EverGate
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ Self-hosted OpenAI-compatible LLM gateway: one local endpoint for multiple providers, with key-pool failover and zero-buffer SSE streaming.
4
+
5
+ ```bash
6
+ npm i -g @heguoliang/evergate
7
+ evergate
8
+ ```
9
+
10
+ The platform binary is installed automatically through optional dependencies:
11
+
12
+ - `@heguoliang/evergate-win32-x64`
13
+ - `@heguoliang/evergate-linux-amd64`
14
+ - `@heguoliang/evergate-darwin-arm64`
15
+
16
+ After startup, open `http://localhost:8787/` for the admin console. Copy `evergate.yml.example` from the repository, or let the first run generate a config. Data lives in SQLite (`./data/evergate.db` by default).
17
+
18
+ Documentation: https://github.com/guol9180/evergate
19
+
20
+ MIT © guol9180
@@ -0,0 +1,45 @@
1
+ #!/usr/bin/env node
2
+ // EverGate npm 启动垫片:按 os/cpu 解析平台子包并转发参数。
3
+ // 主包故意不包含二进制,平台子包由 optionalDependencies 自动选择安装。
4
+ 'use strict'
5
+
6
+ const { spawn } = require('node:child_process')
7
+ const path = require('node:path')
8
+
9
+ const PACKAGES = {
10
+ 'win32-x64': { name: '@heguoliang/evergate-win32-x64', binary: 'evergate.exe' },
11
+ 'linux-x64': { name: '@heguoliang/evergate-linux-amd64', binary: 'evergate' },
12
+ 'darwin-arm64': { name: '@heguoliang/evergate-darwin-arm64', binary: 'evergate' },
13
+ }
14
+
15
+ const key = `${process.platform}-${process.arch}`
16
+ const target = PACKAGES[key]
17
+ if (!target) {
18
+ console.error(`evergate: unsupported platform ${key}`)
19
+ console.error('Supported: win32-x64, linux-x64, darwin-arm64')
20
+ console.error('Download a standalone binary: https://github.com/guol9180/evergate/releases')
21
+ process.exit(1)
22
+ }
23
+
24
+ let binary
25
+ try {
26
+ const pkgRoot = path.dirname(require.resolve(`${target.name}/package.json`))
27
+ binary = path.join(pkgRoot, 'bin', target.binary)
28
+ } catch {
29
+ console.error(`evergate: platform package ${target.name} is missing`)
30
+ console.error('Reinstall with: npm i -g @heguoliang/evergate')
31
+ process.exit(1)
32
+ }
33
+
34
+ const child = spawn(binary, process.argv.slice(2), { stdio: 'inherit' })
35
+ child.on('error', (err) => {
36
+ console.error(`evergate: failed to start ${binary}: ${err.message}`)
37
+ process.exit(1)
38
+ })
39
+ child.on('exit', (code, signal) => {
40
+ if (signal) {
41
+ process.kill(process.pid, signal)
42
+ return
43
+ }
44
+ process.exit(code ?? 1)
45
+ })
package/package.json CHANGED
@@ -1,6 +1,39 @@
1
1
  {
2
2
  "name": "@heguoliang/evergate",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.1.24",
4
+ "description": "Self-hosted OpenAI-compatible LLM gateway with key-pool failover and zero-buffer SSE streaming",
5
+ "keywords": [
6
+ "ai-gateway",
7
+ "llm-gateway",
8
+ "openai-compatible",
9
+ "openai",
10
+ "responses-api",
11
+ "failover",
12
+ "self-hosted"
13
+ ],
14
+ "homepage": "https://github.com/guol9180/evergate",
15
+ "repository": {
16
+ "type": "git",
17
+ "url": "git+https://github.com/guol9180/evergate.git"
18
+ },
19
+ "bugs": {
20
+ "url": "https://github.com/guol9180/evergate/issues"
21
+ },
22
+ "license": "MIT",
23
+ "bin": {
24
+ "evergate": "bin/evergate.js"
25
+ },
26
+ "files": [
27
+ "bin/evergate.js",
28
+ "README.md",
29
+ "LICENSE"
30
+ ],
31
+ "engines": {
32
+ "node": ">=18"
33
+ },
34
+ "optionalDependencies": {
35
+ "@heguoliang/evergate-win32-x64": "0.1.24",
36
+ "@heguoliang/evergate-linux-amd64": "0.1.24",
37
+ "@heguoliang/evergate-darwin-arm64": "0.1.24"
38
+ }
39
+ }