@owlmeans/web-db 0.1.6 → 0.1.8
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
CHANGED
|
@@ -61,3 +61,20 @@ Extends `ClientDbService` with `initialize(alias?)` returning a `ClientDb`:
|
|
|
61
61
|
|
|
62
62
|
- [`@owlmeans/client-resource`](../client-resource) — `ClientDbService` interface this implements
|
|
63
63
|
- [`@owlmeans/web-client`](../web-client) — calls `appendWebDbService` inside `makeContext`
|
|
64
|
+
|
|
65
|
+
<!-- owlmeans:agent-guidance:start -->
|
|
66
|
+
## Agent guidance
|
|
67
|
+
|
|
68
|
+
This package ships embedded Claude Code skills and GitHub Copilot instructions under
|
|
69
|
+
`agent-meta/`. After installing your `@owlmeans/*` packages, run the OwlMeans
|
|
70
|
+
agent-skills installer to place them into your project's native locations
|
|
71
|
+
(`.claude/skills/` and `.github/instructions/`):
|
|
72
|
+
|
|
73
|
+
```sh
|
|
74
|
+
npx @owlmeans/agent-skills
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
The embedded files are version-matched to this package release. Do not edit them
|
|
78
|
+
directly — they are regenerated on each publish. To contribute guidance edits,
|
|
79
|
+
open a PR against the source monorepo.
|
|
80
|
+
<!-- owlmeans:agent-guidance:end -->
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: "How to use @owlmeans/web-db — browser IndexedDB-backed storage service for client-side persistence."
|
|
3
|
+
applyTo: "**/*.ts, **/*.tsx"
|
|
4
|
+
---
|
|
5
|
+
<!-- AUTO-GENERATED — do not edit. Regenerate via sync-agent-meta. -->
|
|
6
|
+
|
|
7
|
+
# @owlmeans/web-db
|
|
8
|
+
|
|
9
|
+
**Layer:** Web (React)
|
|
10
|
+
**Install:** `"@owlmeans/web-db": "^0.1.8"` in `dependencies`
|
|
11
|
+
|
|
12
|
+
## Key Exports
|
|
13
|
+
|
|
14
|
+
| Export | Description |
|
|
15
|
+
|--------|-------------|
|
|
16
|
+
| `makeWebDbService()` | IndexedDB-backed service factory |
|
|
17
|
+
| Constants | Default DB / object store names |
|
|
18
|
+
| Types | DB service interface |
|
|
19
|
+
|
|
20
|
+
## Usage
|
|
21
|
+
|
|
22
|
+
```typescript
|
|
23
|
+
import { makeWebDbService } from '@owlmeans/web-db'
|
|
24
|
+
context.registerService(makeWebDbService())
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
## Depends On
|
|
28
|
+
|
|
29
|
+
- `@owlmeans/client-resource`, `@owlmeans/client-context`
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": 1,
|
|
3
|
+
"package": "@owlmeans/web-db",
|
|
4
|
+
"version": "0.1.8",
|
|
5
|
+
"generatedAt": "2026-06-11T16:30:27.170Z",
|
|
6
|
+
"canonicalRepo": "https://github.com/owlmeans/common",
|
|
7
|
+
"entries": [
|
|
8
|
+
{
|
|
9
|
+
"kind": "skill",
|
|
10
|
+
"name": "web-db",
|
|
11
|
+
"category": "package-specific",
|
|
12
|
+
"file": "skills/web-db/SKILL.md",
|
|
13
|
+
"canonicalPath": ".claude/skills/web-db/SKILL.md"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"kind": "instruction",
|
|
17
|
+
"name": "web-db",
|
|
18
|
+
"category": "package-specific",
|
|
19
|
+
"file": "instructions/web-db.instructions.md",
|
|
20
|
+
"canonicalPath": ".github/instructions/web-db.instructions.md"
|
|
21
|
+
}
|
|
22
|
+
]
|
|
23
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: web-db
|
|
3
|
+
description: How to use @owlmeans/web-db — browser IndexedDB-backed storage service for client-side persistence. Auto-invoked when importing the web DB service.
|
|
4
|
+
user-invocable: false
|
|
5
|
+
---
|
|
6
|
+
<!-- AUTO-GENERATED — do not edit. Regenerate via sync-agent-meta. -->
|
|
7
|
+
|
|
8
|
+
# @owlmeans/web-db
|
|
9
|
+
|
|
10
|
+
**Layer:** Web (React)
|
|
11
|
+
**Install:** `"@owlmeans/web-db": "^0.1.8"` in `dependencies`
|
|
12
|
+
|
|
13
|
+
## Key Exports
|
|
14
|
+
|
|
15
|
+
| Export | Description |
|
|
16
|
+
|--------|-------------|
|
|
17
|
+
| `makeWebDbService()` | Browser IndexedDB-backed service factory |
|
|
18
|
+
| Constants | Default DB names, object store names |
|
|
19
|
+
| Types | DB service interface |
|
|
20
|
+
|
|
21
|
+
## Usage
|
|
22
|
+
|
|
23
|
+
```typescript
|
|
24
|
+
import { makeWebDbService } from '@owlmeans/web-db'
|
|
25
|
+
context.registerService(makeWebDbService())
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
## Depends On
|
|
29
|
+
|
|
30
|
+
- `@owlmeans/client-resource`, `@owlmeans/client-context`
|
|
31
|
+
- IndexedDB (browser global)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@owlmeans/web-db",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.8",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
}
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@owlmeans/client-context": "^0.1.
|
|
25
|
-
"@owlmeans/client-resource": "^0.1.
|
|
26
|
-
"@owlmeans/context": "^0.1.
|
|
24
|
+
"@owlmeans/client-context": "^0.1.8",
|
|
25
|
+
"@owlmeans/client-resource": "^0.1.8",
|
|
26
|
+
"@owlmeans/context": "^0.1.8",
|
|
27
27
|
"idb-keyval": "^6.2.1"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|