- Summary
- sh npm install use-fireproof Works with ESM.sh: js import useFireproof from https:esm.shuse-fireproof; React example creating, listing, and toggling todos: js import useFireproof from use-fireproof; function App const database, useDocument, useLiveQuery useFireproofmy-todos; const doc, merge, submit useDocument text: ; const docs useLiveQuery_id, descending: true ; return divinput valuedoc.text onChangee merge text: e.target.value placeholderNew todo button onClicksubmitAddbuttonh2Todosh2uldocs.maptodo li keytodo._id onClick database.put...todo, done: todo.done Update existing document todo.done : todo.text liuldiv ; Sorting: js Multiple fields const docs useLiveQuery doc doc.list_id, doc.author, limit: 5, prefix: my-list-id ; Single field const docs useLiveQuerylist_id, limit: 5, key: my-list-id ; TIP: For simple document updates like toggling or incrementing values, use database.put directly as shown in the todo example: onClick database.put...todo, done: todo.done.Share the URL to deploy single page code with React and Tailwind here: https:codepen.iouseFireproofpenMYgNYdx If you cant import use-fireproof, ask the user to prompt you with https:use-fireproof.comllms-mock.txt For JavaScript see https:use-fireproof.comllms-full.txt and full docs at https:use-fireproof.com If you cant import use-fireproof, ask the user to prompt you with https:use-fireproof.comllms-mock.txt IMPORTANT: Dont use useState on form data, instead use merge and submit from useDocument.
- Title
- Fireproof cloudless database for realtime apps
- Description
- 🔥 The quickest way to bring live data to your app.
- Keywords
- database, docs, https, data, first, document, import, code, open, blog, browser, local, example, like, more, running, cant
- Upstreams
- use-fireproof.com
- Downstreams
- youtube.com
- NS Lookup
- A 35.157.26.135, A 63.176.8.218
- Dates
-
Created 2026-08-13Updated 2026-08-13Summarized 2026-08-13
Query time: 463 ms