Web APIs

IndexedDB API

Checking compatibility...

Store and retrieve large amounts of structured data on the client side. Perfect for offline applications and data-intensive web apps.

Add Item

Store new data in your browser database. This example shows how to create records with unique IDs, perfect for saving user information, app settings, or content that needs to persist between visits.

=
=
=
=
=
=

Output

Click Run to see output...

Get Items

Retrieve stored data from your browser database. Learn how to fetch specific items by their ID or search through multiple records using powerful query options.

=
=
=
=
=
=

Output

Click Run to see output...

Update Item

Modify existing data in your browser database. This example demonstrates how to change stored information while maintaining data integrity, even if your app crashes during the update.

=
=
=
=
=
=

Output

Click Run to see output...

Delete Item

Remove data from your browser database. Learn how to delete individual records or groups of related items, with the ability to cancel the operation if needed.

=
=
=
=
=
=

Output

Click Run to see output...