@pilser/backend-engine 0.3.5 → 0.3.7
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/README.md +16 -0
- package/index_bg.wasm +0 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -124,3 +124,19 @@ exact `mcpServers` snippet for your deployment, auth included:
|
|
|
124
124
|
|
|
125
125
|
Full route surface: `GET /mcp` on your deployment, or the `endpoints.list` MCP tool.
|
|
126
126
|
Source + guides: https://github.com/Pilser/backend-engine
|
|
127
|
+
|
|
128
|
+
## Files vs assets (two stores — don't mix them)
|
|
129
|
+
|
|
130
|
+
- **Files** (`POST /api/upload`, `GET /api/file`): record-backed blobs —
|
|
131
|
+
user uploads, attachments, form files. Listed per table, validated,
|
|
132
|
+
permission-checked like records.
|
|
133
|
+
- **Assets** (`PUT /api/assets/*`, `GET /api/assets/*`, served at `/srv/*`):
|
|
134
|
+
front-end hosting — HTML/JS/CSS. Served with ETags + `304`s and edge
|
|
135
|
+
cache (public apps); purged from cache on every put/delete.
|
|
136
|
+
|
|
137
|
+
They are different namespaces: `files delete x` never touches `/srv/x`.
|
|
138
|
+
Deploy front-ends with `PUT /api/assets/*` (or `scripts/publish-frontend.sh`
|
|
139
|
+
in the repo); manage uploads with the files verbs. The edge cache is the
|
|
140
|
+
Worker Cache API (`caches.default`, isolate-adjacent) driven by `s-maxage`
|
|
141
|
+
— there is no `cf-cache-status` header to watch; correctness comes from
|
|
142
|
+
exact-URL invalidation on write, not from edge observability.
|
package/index_bg.wasm
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"./index.js"
|
|
13
13
|
],
|
|
14
14
|
"type": "module",
|
|
15
|
-
"version": "0.3.
|
|
15
|
+
"version": "0.3.7",
|
|
16
16
|
"description": "your backend that you never code (Backend as a dependency): tables, auth, files, cron, recipes, webhooks, AI proxy, MCP control plane on one Cloudflare Worker.",
|
|
17
17
|
"license": "MIT",
|
|
18
18
|
"repository": {
|