Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
76 lines (76 loc) · 1.93 KB
/
Copy pathpackage.json
File metadata and controls
76 lines (76 loc) · 1.93 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
{
"name": "opencode-api",
"displayName": "OpenCode API",
"version": "1.0.0",
"private": true,
"description": "OpenCode API — an OpenAI- and Anthropic-compatible REST gateway in front of the OpenCode CLI model runtime.",
"author": "Phạm Văn Định",
"keywords": [
"opencode",
"opencode-cli",
"openai-compatible",
"anthropic-compatible",
"openai-api",
"anthropic-api",
"responses-api",
"ai-gateway",
"llm-gateway",
"api-gateway",
"fastify",
"typescript",
"sse",
"streaming",
"tool-calling",
"vision",
"reasoning",
"rest-api",
"nodejs",
"self-hosted"
],
"type": "module",
"license": "MIT",
"packageManager": "pnpm@12.25.1",
"engines": {
"node": ">=20.11.0"
},
"main": "dist/index.js",
"bin": {
"opencode-api": "dist/index.js"
},
"files": [
"dist",
"README.md",
".env.example"
],
"scripts": {
"setup": "node scripts/init-env.mjs",
"dev": "tsx watch src/index.ts",
"clean": "node scripts/clean-dist.mjs",
"build": "node scripts/clean-dist.mjs && tsc -p tsconfig.build.json",
"start": "node dist/index.js",
"typecheck": "tsc -p tsconfig.json --noEmit",
"lint:commits": "commitlint --last --verbose",
"test": "vitest run --exclude 'test/integration/**'",
"test:watch": "vitest --exclude 'test/integration/**'",
"test:integration": "vitest run test/integration",
"test:all": "node scripts/test-all.mjs",
"smoke": "node scripts/smoke.mjs",
"smoke:dist": "node scripts/smoke-dist.mjs"
},
"dependencies": {
"dotenv": "^17.2.3",
"fastify": "^5.6.2",
"pino": "^10.1.0",
"prom-client": "^15.1.3",
"zod": "^4.1.13"
},
"devDependencies": {
"@commitlint/cli": "^20.5.3",
"@commitlint/config-conventional": "^20.5.3",
"@types/node": "^24.10.1",
"pino-pretty": "^13.2.0",
"tsx": "^4.20.6",
"typescript": "^5.9.3",
"vitest": "^3.2.4"
}
}