
Security News
Open Source CAI Framework Handles Pen Testing Tasks up to 3,600× Faster Than Humans
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
local-db-storage
Advanced tools
local-db-storage
IndexedDB
wrapper that mimicslocalStorage
API
npm install local-db-storage
IndexedDB
but don't want to deal with its complex API.localStorage
supports but still want the same API.localForage
(25k stars) is complex and unmaintained.use-local-storage-state
(400k downloads per month) for the past 4 years.import dbStorage from 'local-db-storage'
async function addTodo(todo): Promise<void> {
await dbStorage.setItem(todo.id, todo)
}
async function getTodo(id: string): Promise<Todo> {
await dbStorage.getItem<Todo>(id)
}
getItem<T>(key: string): Promise<T>
Like localStorage.getItem()
but async.
setItem(key: string, value: any): Promise<void>
Like localStorage.setItem()
but async.
Note: It supports non-primitive values (ex: objects). It also supports circular references.
removeItem(key: string): Promise<void>
Like localStorage.removeItem()
but async.
clear(): Promise<void>
Like localStorage.clear()
but async.
DBStorage(name: string)
Creates a new DBStorage
instance.
import { DBStorage } from 'local-db-storage'
const dbStorage = new DBStorage('my-custom-db-storage')
await dbStorage.setItem('initial', 'hello world')
use-local-storage-state
— React hook that persists data in localStorage
.use-session-storage-state
— React hook that persists data in sessionStorage
.FAQs
IndexedDB wrapper that mimics localStorage API
We found that local-db-storage demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.
Security News
CVEForecast.org uses machine learning to project a record-breaking surge in vulnerability disclosures in 2025.