Productivity & personal

Build a notes app with AI

A native notes build brief covering saved data, purposeful screens and a repeatable real-input acceptance journey.

Apirex TeamUpdated AndroidiOS
On this page
  1. Screens
  2. Data model
  3. Native features for the notes app
  4. Android notes (Kotlin and Jetpack Compose)
  5. iPhone notes (Swift and SwiftUI)
  6. Copy-paste prompt
  7. Acceptance test
  8. Frequently asked questions
4screens
3data tables
187word prompt
2platforms: Android, iOS

This notes build brief is for writers collecting private fragments who need to trust that their last edit is saved. Its first version should prove one concrete loop: write a note, reopen it, find a distinctive phrase, and edit the persisted text. Keep plain-text notes, folders, search and deliberate sharing connected to the same saved records before adding more ambitious integrations.

Screens

  • All notes: Browse saved titles and last-edited timestamps
  • Editor: Write plain text and display save status
  • Folders: Group notes without duplicating their contents
  • Search: Find matching titles and note bodies

Data model

TableKey fieldsPurpose
notesid (uuid), folder_id (uuid nullable), title (text), body (text), updated_at (timestamptz)The authoritative saved document content
foldersid (uuid), name (text), position (int)Optional organization independent of the editor
editor_draftsid (uuid), note_id (uuid), body (text), modified_at (timestamptz)Recoverable work not yet committed to the saved note

For the first notebook, local-only storage keeps content on the selected device without implying synchronization. If the owner later requests a backend, require authenticated ownership and server-side row-level security for notes, folders and drafts. Search results must obey exactly the same access rules as direct document reads. Sharing a text excerpt through the system sheet must not silently publish the entire notebook.

Native features for the notes app

Retain note text independently from folder navigation and show whether the most recent edit has reached local storage. Share one note deliberately; folder names and other search results must not leak into the exported text.

FeatureAndroid (Kotlin)iPhone (SwiftUI)Notes
Durable text draftsRoom autosave with revision trackingSwiftData editor persistenceRetain note text independently from folder navigation and show whether the most recent edit has reached local storage.
Selected note sharingACTION_SEND for the chosen textShareLink with an explicit note previewShare one note deliberately; folder names and other search results must not leak into the exported text.
Optional note attachmentsSystem Photo Picker with private file copiesPhotosPicker and app-owned attachment storageAttach only selected images and keep their lifecycle tied to the note rather than requiring access to every photograph.

Android notes (Kotlin and Jetpack Compose)

Keep the editor’s current text in a ViewModel and serialize Room writes by note ID. A debounce may reduce writes, but leaving the editor must flush the final revision; an older background save must not overwrite a newer sentence.

  • Use Navigation Compose routes for folders and notes, with a LazyColumn keyed by note IDs. Derive search results from stored content and show matching excerpts; moving a note between folders should not produce a second editor or lose its pinned state.
  • Offer folder selection through a Material 3 ModalBottomSheet and keep the pending destination separate from note text. If attachments are included, store durable app-private copies before saving their references, then clean up files when the corresponding attachment is removed.
  • On an Android device, type a unique final sentence and immediately navigate back. Search that sentence after relaunch, move the result into another folder, and share just that note. Check that neither a stale revision nor another folder’s private text appears in the receiving app.

iPhone notes (Swift and SwiftUI)

Use a NavigationSplitView where appropriate for folder and note selection, with NavigationStack on compact layouts. A TextEditor draft needs a clear save boundary before switching selection, especially when two notes have nearly identical titles.

  • SwiftData can store note text, folder relationships and pin order. Keep attachment files outside the text field and distinguish a missing file from a deliberately deleted image; do not silently erase the attachment reference during a temporary loading failure.
  • Build a ShareLink from the currently selected note’s reviewed export value. Present folder moves in a sheet with a visible destination, and preserve the editor selection when the user cancels rather than treating dismissal as a move to the default folder.
  • On iPhone, dictate a paragraph, change its title, and open another note before returning. Relaunch and compare the final dictated text. Increase Dynamic Type, search for a word in the body, then cancel sharing to ensure the original note and folder assignment are unchanged.

Copy-paste prompt

Build this yourself 185 words · Android
Build a notes app for Android using native screens and a deliberately small first release. The core scope is plain-text notes, folders, search and deliberate sharing. Include these destinations: All notes, Editor, Folders, Search. Use these persisted entities: notes, folders, editor_drafts; retain stable identifiers and explicit relationships rather than maintaining independent screen totals.
Ask me these owner decisions before implementing ambiguous behavior: whether storage is local-only, when edits become saved, and what happens to notes when a folder is removed. Do not invent a policy or add an unrequested external integration. Start local-only unless I explicitly choose account storage; if I choose a backend, enforce ownership on the server with row-level security.
Show loading, empty and recoverable error states, plus permission-denied handling wherever a native capability requests access. Keep incomplete input recoverable and distinguish it from saved data. For acceptance, write a note, reopen it, find a distinctive phrase, and edit the persisted text. Also exercise the invalid-input or denied-permission path and reopen the app to inspect the persisted result. Explain any remaining device-only checks rather than equating a successful build with a passing journey.

Opens Apirex with this prompt in the box. Pick the Android · Kotlin tab before you send.

Acceptance test

  1. Create a folder called Fieldwork and write a note containing the phrase copper lantern.
  2. Leave the editor and verify the saved indicator corresponds to the actual stored text.
  3. Terminate and reopen, then search for copper lantern and open the matching note.
  4. Append a second paragraph, save it, and confirm the original note identifier and folder are retained.
  5. Trigger a controlled storage failure and verify unsaved text remains recoverable rather than displaying a successful save.

Test rapid editor changes by typing a paragraph, immediately opening Folders, and returning to the document. The last characters must either be saved or remain visible as a recoverable draft; a save indicator must not lead the write operation. Repeat with two notes opened in succession to ensure a delayed save from the first document cannot overwrite the second.

An empty notebook should invite a new note, while an unsuccessful search should preserve the query and say that no matches were found. A database read failure is a third state and needs retry rather than a blank result list. Define draft cleanup after a successful save, and specify whether permanent deletion removes both the saved body and any recoverable editor draft so private fragments are not retained unexpectedly.

Search for an apostrophe and a multiline phrase to verify literal input remains safe and a no-match result never changes the saved document.

Frequently asked questions

Are private notes uploaded automatically?

Choose local-only storage for the initial private notebook unless synchronization is explicitly requested. Do not silently send note bodies to a backend because an account feature was added elsewhere.

What should deleting a folder do?

Ask whether notes move to an unfiled collection or are deleted after confirmation. Prefer a recoverable organizational change unless the owner specifically requests destructive folder deletion.

Does search need a server?

Searching a small single-device notebook can use the local database. Account synchronization and remote search introduce additional access rules and should not be implied by a search box.

Build this blueprint

The blueprint prompt, ready for your platform. Edit anything before you send it.

AndroidKotlin · Jetpack ComposeReal source on your computer

Opens Apirex with this prompt. Pick the Android · Kotlin tab before you send. The Free plan includes 5 Rex Credits a day.