-
Notifications
You must be signed in to change notification settings - Fork 58
Expand file tree
/
Copy pathpackage.json
More file actions
60 lines (60 loc) · 2.71 KB
/
Copy pathpackage.json
File metadata and controls
60 lines (60 loc) · 2.71 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
{
"name": "use-fireproof",
"version": "0.0.0",
"description": "Fireproof live ledger, JavaScript API and React hooks",
"type": "module",
"main": "./index.js",
"homepage": "https://use-fireproof.com",
"repository": {
"type": "git",
"url": "git+https://github.com/fireproof-storage/fireproof.git"
},
"bugs": {
"url": "https://github.com/fireproof-storage/fireproof/issues"
},
"scripts": {
"build": "core-cli tsc",
"test": "vitest --run",
"pack": "core-cli build --doPack",
"publish": "core-cli build"
},
"author": "J Chris Anderson",
"license": "AFL-2.0",
"gptdoc": "Fireproof/React/Usage: import { useFireproof } from 'use-fireproof'; function WordCounterApp() { const { useLiveQuery, useDocument } = useFireproof('my-word-app'); const { doc: wordInput, merge: updateWordInput, save: saveWordInput, reset: clearWordInput } = useDocument({ word: '', timestamp: Date.now() }); const recentWords = useLiveQuery('timestamp', { descending: true, limit: 10 }); const { doc: { totalSubmitted }, merge: updateTotalSubmitted, save: saveTotalSubmitted } = useDocument({ _id: 'word-counter', totalSubmitted: 0 }); const handleWordSubmission = (e) => { e.preventDefault(); updateTotalSubmitted({ totalSubmitted: totalSubmitted + 1 }); saveTotalSubmitted(); saveWordInput(); clearWordInput();}; return (<><p>{totalSubmitted} words submitted</p><form onSubmit={handleWordSubmission}><input type='text' value={wordInput.word} onChange={e => updateWordInput({ word: e.target.value })} placeholder='Enter a word' /></form><ul>{recentWords.docs.map(entry => (<li key={entry._id}>{entry.word}</li>))} </ul></>) } export default WordCounterApp;",
"dependencies": {
"@adviser/cement": "^0.4.39",
"@fireproof/core-base": "workspace:0.0.0",
"@fireproof/core-gateways-cloud": "workspace:0.0.0",
"@fireproof/core-keybag": "workspace:0.0.0",
"@fireproof/core-protocols-dashboard": "workspace:0.0.0",
"@fireproof/core-runtime": "workspace:0.0.0",
"@fireproof/core-types-base": "workspace:0.0.0",
"@fireproof/core-types-blockstore": "workspace:0.0.0",
"@fireproof/core-types-protocols-cloud": "workspace:0.0.0",
"@fireproof/vendor": "workspace:0.0.0",
"dompurify": "^3.2.6",
"jose": "^6.1.0",
"ts-essentials": "^10.1.1"
},
"peerDependencies": {
"@adviser/cement": "^0.4.20",
"react": "~19.1.0"
},
"keywords": [
"react",
"ledger",
"json",
"live",
"sync"
],
"devDependencies": {
"@fireproof/core-cli": "workspace:0.0.0",
"@testing-library/react": "^16.3.0",
"@types/deno": "^2.3.0",
"@types/react": "~19.1.0",
"@vitest/browser": "^3.2.4",
"playwright": "^1.55.1",
"playwright-chromium": "^1.55.0",
"vitest": "^3.2.4"
}
}