Redstring supports a special "test mode" that uses completely separate storage, allowing you to test the first-time user experience without affecting your main session.
Add ?test=true to your URL:
http://localhost:5173/?test=true
This will:
- Use separate localStorage keys (prefixed with
test_) - Use separate IndexedDB database (
test_RedstringFolderStorage) - Not interfere with your main session
Launch Electron with the test flag:
npm run electron -- --testThis will automatically append ?test=true to the initial URL, activating test mode.
When ?test=true is in the URL, Redstring will:
-
Use separate storage keys:
test_redstring-alpha-welcome-seeninstead ofredstring-alpha-welcome-seentest_redstring_workspace_folder_pathinstead ofredstring_workspace_folder_pathtest_RedstringFolderStorageIndexedDB instead ofRedstringFolderStorage
-
Show first-time onboarding flow:
- Welcome modal appears
- Storage setup modal appears
- Can test folder selection and universe creation
-
Keep your real data safe:
- Your actual workspace folder is untouched
- Your actual universe files are not affected
- Your main session preferences are preserved
-
Open test mode:
http://localhost:5173/?test=true -
Go through onboarding:
- Click "Get Started"
- Choose a test folder (create a separate "RedstringTest" folder)
- Test the universe creation flow
-
Test returning user flow:
- Reload with
?test=true - Should load directly into your test universe
- Reload with
-
Reset test mode:
- Use Debug menu → "Reset Onboarding Flow"
- Or manually clear:
localStorage.removeItem('test_redstring-alpha-welcome-seen')
-
Return to normal mode:
- Remove
?test=truefrom URL - Your regular session loads normally
- Remove
If you need to manually reset test mode:
// Clear test mode onboarding flag
localStorage.removeItem('test_redstring-alpha-welcome-seen');
// Clear test mode folder
localStorage.removeItem('test_redstring_workspace_folder_path');
// Clear test mode IndexedDB
indexedDB.deleteDatabase('test_RedstringFolderStorage');
// Reload
window.location.reload();The Debug menu includes "Reset Onboarding Flow" which will:
- Clear the onboarding completion flag
- Clear stored folder handles
- Reload the page
This works in both normal and test mode depending on which mode you're in.
Create a separate test folder to avoid confusion:
~/Documents/
├── Redstring/ # Your real workspace
│ ├── default.redstring
│ └── project.redstring
└── RedstringTest/ # Test mode workspace
└── default.redstring
This way you can safely test onboarding without risking your actual data.