In this lesson
A website shows. A tool stores.
Now we leave the public website and move on to the internal tool: the thing the team uses every day and that today lives in a notebook. The first step is a simple register, with a form, a list and a save button.
- Ask the AI for a register app that runs in the browser alone
- Understand where the data lives and how not to lose it
- Test with made-up data
Where the data lives
So far the browser has only read files. Now it reacts: the person types, clicks "add" and something happens. That "something" is JavaScript, the third piece of the page. The big question for every app with data is: where does the data live?
| Place | What it is like | Good for |
|---|---|---|
| In the browser | Each site's own drawer (localStorage). No server, no cost. | One counter or one person |
| In a file | The app exports and imports a file | Backup and a bridge to spreadsheets |
| On a server | A database in the cloud, with login | A team in several places (outside this course) |
We will use the first two together: store in the browser and export to a file.
Careful
Other people's sensitive data does not go in the browser. A name and a phone number are already personal data. Health data, CPF numbers (Brazil's taxpayer ID) and financial data call for a professional.
The drawer has three rules
- It is per computer and per browser. What you entered in Chrome at the counter does not show up in Firefox or on your phone.
- It is per address. Opening the app from the file and from the published site gives you two different drawers.
- It disappears when the browser is cleared. That is why exporting is the backup.
What the pros know
In Safari, the drawer has an expiry date. Apple deletes all the storage a site writes, localStorage included, after seven days of Safari use in which the person does not interact with that site. If you save only in the browser, you can lose everything in a tool you use once a month. Web apps added to the iPhone home screen have their own count and are not affected. The moral: exporting is not optional, and a tool you rarely use needs a backup in a file.
The request to the AI
The request follows the course pattern: context, what it does, technical rules, what it does NOT do and an explanation at the end. The "does NOT do" part matters: without it, the AI sometimes adds a phone field "to make things easier" or sends the data to some service.
Real example
A kitchen that sells packed lunches wrote its orders in a notebook and counted what was left at the end of the day. The owner asked for a page with a form (customer, dish, quantity, time) and a list that adds up the quantities per dish. It lives on the kitchen tablet, with an export every Friday.
Test with made-up data
Add five made-up orders and run this set of tests:
- Persistence: close everything and open it again. Are all five still there?
- Sum: does the summary match what you entered?
- Delete: delete one from the middle. Do the list and the sum update?
- Export: does the file download and open in a readable form?
- Empty field: does the app warn you, or does it add a blank row?
The AI builds the happy path. The odd cases (an empty field, a negative number) are the ones you have to ask for.
Practice · 10 min
- Create a new folder, open the tool in it and paste the request below, adapted to your business.
- Add five made-up records and run the set of tests.
- Ask for the fixes, one at a time, and save a copy as
index-v1.html.
Summary
- JavaScript is what happens when the person interacts.
- localStorage is one drawer per computer, browser and address.
- Exporting is the backup. Do not store other people's sensitive data there.
- Ask for the "does NOT do" part and always test with made-up data.
Sources
Read on October 30, 2026.
- WebKit. Full Third-Party Cookie Blocking and More: seven-day limit on storage written by scripts.
Lesson quiz
Three situations to apply what you learned.
Isaque Victor free courses