koguma 0.4.0
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 +21 -0
- package/README.md +297 -0
- package/cli/index.ts +1150 -0
- package/package.json +60 -0
- package/src/admin/_bundle.ts +3 -0
- package/src/admin/dashboard.ts +27 -0
- package/src/api/router.ts +357 -0
- package/src/auth/index.ts +138 -0
- package/src/client/index.ts +61 -0
- package/src/config/define.ts +157 -0
- package/src/config/field.ts +182 -0
- package/src/config/index.ts +27 -0
- package/src/config/meta.ts +189 -0
- package/src/config/types.ts +35 -0
- package/src/db/migrate.ts +146 -0
- package/src/db/queries.ts +293 -0
- package/src/db/schema.ts +115 -0
- package/src/media/index.ts +89 -0
- package/src/react/index.ts +70 -0
- package/src/worker.ts +51 -0
package/package.json
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "koguma",
|
|
3
|
+
"version": "0.4.0",
|
|
4
|
+
"description": "🐻 A little CMS with big heart — schema-driven, runs on Cloudflare's free tier",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "https://github.com/m4ttheweric/koguma"
|
|
10
|
+
},
|
|
11
|
+
"keywords": [
|
|
12
|
+
"cms",
|
|
13
|
+
"cloudflare",
|
|
14
|
+
"d1",
|
|
15
|
+
"r2",
|
|
16
|
+
"hono",
|
|
17
|
+
"headless",
|
|
18
|
+
"content-management"
|
|
19
|
+
],
|
|
20
|
+
"engines": {
|
|
21
|
+
"node": ">=18"
|
|
22
|
+
},
|
|
23
|
+
"scripts": {
|
|
24
|
+
"dev": "concurrently --kill-others \"bun run --cwd admin dev\" \"bunx wrangler dev --config examples/alpine/wrangler.toml\"",
|
|
25
|
+
"build:admin": "cd admin && bun install --frozen-lockfile && bun run build && cd .. && bun run scripts/bundle-admin.ts",
|
|
26
|
+
"prepublishOnly": "bun run build:admin",
|
|
27
|
+
"test": "bun test"
|
|
28
|
+
},
|
|
29
|
+
"exports": {
|
|
30
|
+
".": "./src/config/index.ts",
|
|
31
|
+
"./worker": "./src/worker.ts",
|
|
32
|
+
"./client": "./src/client/index.ts",
|
|
33
|
+
"./react": "./src/react/index.ts",
|
|
34
|
+
"./types": "./src/config/types.ts",
|
|
35
|
+
"./db": "./src/db/schema.ts"
|
|
36
|
+
},
|
|
37
|
+
"bin": {
|
|
38
|
+
"koguma": "./cli/index.ts"
|
|
39
|
+
},
|
|
40
|
+
"files": [
|
|
41
|
+
"src",
|
|
42
|
+
"cli",
|
|
43
|
+
"README.md",
|
|
44
|
+
"LICENSE"
|
|
45
|
+
],
|
|
46
|
+
"dependencies": {
|
|
47
|
+
"zod": "^4.3.6"
|
|
48
|
+
},
|
|
49
|
+
"peerDependencies": {
|
|
50
|
+
"hono": "^4.0.0"
|
|
51
|
+
},
|
|
52
|
+
"devDependencies": {
|
|
53
|
+
"@cloudflare/workers-types": "^4.20260304.0",
|
|
54
|
+
"@types/node": "^22.0.0",
|
|
55
|
+
"concurrently": "^9.2.1",
|
|
56
|
+
"miniflare": "^4.20260301.1",
|
|
57
|
+
"typescript": "^5.7.0",
|
|
58
|
+
"wrangler": "^4.71.0"
|
|
59
|
+
}
|
|
60
|
+
}
|