Sign Up

Local Storage

Twidget provides a set of local storage commands that enable interaction with the browser’s localStorage API through a no-code interface. These commands are useful for storing, retrieving, and managing key-value data persistently within the current domain context.

Purpose

These commands abstract the native Web Storage API, allowing users to manage local storage without writing code. This is particularly useful for persisting state, caching responses, or saving user preferences across sessions.

Key Concepts

  • Local Storage Scope: All operations are scoped to the current domain.

  • Key-Value Structure: Data is stored and accessed using string keys.

  • Data Handling: Inputs are typed, and outputs are returned in text format where applicable.

Available Commands

  • Set Item: Saves a value under a specific key in local storage. Accepts any data type as the value.

  • Get Item: Retrieves a value by key and returns it as text.

  • Remove Item: Deletes the value associated with a given key.

  • Clear: Empties all entries in the current domain's local storage.

These commands offer a declarative way to manage local storage, making it easy to build stateful web apps within Twidget’s no-code environment.

Related Topics

Return

The `return` command in Twidget is a special command used to halt the current command workflow and immediately return a specified result. This command overrides any subsequent processes and outputs the return result regardless of the rest of the workflow logic. This command is particularly useful fo...

Session Storage

Twidget includes a suite of session storage commands that enable no-code interaction with the browser’s `sessionStorage` API. These tools allow temporary storage of key-value data for the current page session. Purpose. Session storage commands allow developers to manage transient data tied to a sing...

Send Message

Send SMS Command. With Twidget, you can send SMS messages to phones using the `Send SMS` command. This functionality varies depending on the provider. Currently, we support Twilio as the SMS provider. To use Twilio for SMS integrations, you will need: - A Twilio account ID - Twilio Auth Token - A Tw...

Security

Twidget provides several built-in functions to enhance the security of your applications. Below is an overview of each security command, including its description, inputs, and outputs. Generate ID. Description: Generates a unique identifier. None - Type: Text Hash Text. Description: Hashes the provi...

Database

Twidget offers many commands to manage data in your database. Below is a list of the available commands and their functionalities: Get Data. Retrieve an entry from a table. Get Multiple Data. Retrieve multiple entries from a table. Save Data. Save an object to a database table. Save Multiple Data. S...