@agentbadge/database 0.1.0 → 0.1.1
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 +23 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -157,6 +157,21 @@ bunx vitest run tests/e2e/database.test.ts --config vitest.e2e.config.ts
|
|
|
157
157
|
Version bumps follow semver: patch = fixes, minor = new entity/store,
|
|
158
158
|
major = `CacheProvider`/`Store`/`Database` interface breaks.
|
|
159
159
|
|
|
160
|
+
## How it fits the system
|
|
161
|
+
|
|
162
|
+
```
|
|
163
|
+
hackathon/server (Hono) Fly.io machine
|
|
164
|
+
└─ createDatabase({enabled, url}) ──► Prisma Postgres
|
|
165
|
+
├─ events: Store (EventRepository │ InMemoryStore)
|
|
166
|
+
├─ health() → SELECT 1 (pooled DATABASE_URL)
|
|
167
|
+
└─ close() on SIGTERM/SIGINT
|
|
168
|
+
|
|
169
|
+
packages/database (this repo) local dev
|
|
170
|
+
└─ docker compose: postgres:5335 + valkey:6336
|
|
171
|
+
└─ migrations: contract.prisma → emit → plan → migrate
|
|
172
|
+
(DIRECT_URL, local shell only — never on Fly)
|
|
173
|
+
```
|
|
174
|
+
|
|
160
175
|
## Layout
|
|
161
176
|
|
|
162
177
|
- `src/` — package source (published via `dist/`)
|
|
@@ -168,3 +183,11 @@ major = `CacheProvider`/`Store`/`Database` interface breaks.
|
|
|
168
183
|
- `scripts/seed.ts` — idempotent seed
|
|
169
184
|
- `docker-compose.yml` — local dev Postgres only; prod = managed Prisma
|
|
170
185
|
Postgres (see `RUNBOOK.md`)
|
|
186
|
+
|
|
187
|
+
---
|
|
188
|
+
|
|
189
|
+
## Questions & Contact
|
|
190
|
+
|
|
191
|
+
- **Site**: https://agentbadge.xyz/
|
|
192
|
+
- **Contact page**: https://agentbadge.xyz/contact
|
|
193
|
+
- **Discord / Telegram / e-mail**: see https://agentbadge.xyz/contact
|