Skip to content
TinyCloud

Saved data

Make the information stay after refresh.

Use a database for information that must survive an app restart or replacement. In TinyCloud, ask your coding agent to connect Postgres, create a migration and save records on the server. Then create one record, refresh the page and verify that it is still present.

Start your first app

A working screen can still lose your information

A generated app may show a form and a list while keeping everything in memory. Those records can disappear when the process restarts. Browser storage can preserve values on one device, but it does not automatically create shared accounts or a server-side database.

For bookings, customer records, shared notes or settings, say explicitly that the information must be saved on the server and remain available after refresh and future changes.

Ask for the behavior you need

Example request for your coding tool
Add persistent storage to this app using its TinyCloud database. Save each booking on the server. Create a database migration, use parameterized queries, and verify that a new booking is still present after refresh. Preserve any existing records.

You do not need to choose a database engine in the prompt if you just need ordinary stored records. Tell the tool what people will create, who should see it and what must be preserved.

What happens in TinyCloud?

The agent declares the database and migration files in the application configuration, then runs the check, plan and deployment workflow. With a platform-managed setup, TinyCloud prepares the database when the app first deploys. Creating the app alone does not provision its database.

If an organization uses its own infrastructure connection, the agent should inspect that binding rather than assume it can move the data or silently switch providers. Availability and capabilities depend on the configured connection.

The database connection belongs on the server. The agent should never put its credential in browser JavaScript, a public screenshot or a source repository.

Verify persistence with a small test

  1. Open the deployed app through the Console.
  2. Create a clearly labeled test record.
  3. Refresh the page and find the same record.
  4. Ask for a small application change that preserves data.
  5. After the new version is live, confirm the original record is still there.

Refresh proves more than a form animation, but it is not a full backup or failure-recovery test. Use disposable data for initial checks, and ask the agent to inspect the existing schema before making destructive changes.

Is file storage the same thing?

No. A database stores structured information such as a booking’s name and time. Uploads and generated files need storage supported by the selected runtime. Runtime-local files are not a safe assumption for long-term persistence.

Ask the agent to check available storage before adding uploads. Do not let a generated app promise durable file storage based only on the presence of a folder.

Try the workflow

Make your next idea usable.

Create an app, copy its setup prompt to your coding tool, and follow the result in TinyCloud.

Create your app