MARKETPLACE
PLUGINS
TCH - SIMPLE BROWSER STORAGE
TCH - Simple Browser Storage logo

TCH - Simple Browser Storage

Published July 2024
   •    Updated January 2026

Plugin details

Just a simple tool to store settings in a user's browser local storage. Data is stored as a single JSON.
There are better alternatives for JSON management like JSON Assistant (highly recommended).

I created this because I need only one feature, to store settings in browser local storage.

Free

For everyone

stars   •   0 ratings
35 installs  
This plugin does not collect or track your personal data.

Other actions

Platform

Web

Contributor details

The Coffee Hat logo
The Coffee Hat
Joined 2021   •   19 Plugins
View contributor profile

Instructions

TCH - B Store - This element will retrieve the settings from local storage.
- Provide a name to the element so you can store/manage different settings with a single element if you want.
- If the local storage name does not exist then one will be created and trigger a "First Created" event.
- Use either actions "Update Settings" or "Update Settings (dynamic)" to add or edit values.
- When storing lists, you must write the string as a JSON array. For example: ["item1", "item2", "item3"]
- To prevent any confusion, ensure that you save dates in ISO 8601 format
- Settings retrieved from local storage are stored in it's "Loaded Settings" state.
- Use the "TCH - Get Setting" element to retrieve a setting value. Since it's a JSON, you can use other plugins or methods to extract values.
- Action "B Store - Update Settings": Run this action to update settings. This also updates B Store's "Loaded Settings"

TCH - Get Setting
- Specify the data type to return.
- This element will retrieve the values of B Store. Just point a B Store Loaded Settings to the Settings field.
- Specify the Setting Name.
- Specify if the value returned is supposed to be a single value or list of values.
- Single values are returned in it's "Scalar" state. Lists in it's "List" state.
- To correctly return a list your JSON array must be formatted correctly: ["item1", "item2", "item3"]. It will log an error in the debugger otherwise.
- If the key (setting name) does not exist it will be reflected in it's "Key Missing" state as a boolean and also it's "Key Not Found" event.
- To prevent any unnecessary problems, ensure that you save dates in ISO 8601 format.

Notes
- Don't use the ":formatted as JSON Safe" operator as storing to local storage will do the necessary escaping of your key and values
- It does not support nested JSON objects and I have no plans on adding support. Use better alternatives like JSON Assistant if you need more features.

Again it just writes and reads JSON in a browser's local storage. So you can use TCH - Get Setting to retrieve any JSON key value.

Types

This plugin can be found under the following types:
Element   •   Event   •   Action

Categories

This plugin can be found under the following categories:

Resources

Support contact
Tutorial

Rating and reviews

No reviews yet

This plugin has not received any reviews.
Bubble