vcad.
Back to App
App

Document Persistence

Save and load .vcad files with offline-first storage

vcad automatically saves your work to the browser's local storage. Your documents persist across browser sessions and work fully offline.

The .vcad File Format

Documents are saved as .vcad files, which are JSON containing the complete parametric model:

{
  "name": "My Part",
  "parts": [
    {
      "id": "part-1",
      "name": "Main Body",
      "ops": [
        { "type": "box", "width": 100, "height": 50, "depth": 25 },
        { "type": "translate", "ref": 0, "x": 0, "y": 0, "z": 10 }
      ]
    }
  ],
  "instances": [...],
  "joints": [...],
  "materials": {...},
  "sketches": [...]
}

What's Stored

ContentDescription
Parametric DAGOperations reference parent indices, enabling non-destructive editing
Part definitionsNamed parts with their operation sequences
InstancesPart placements with transforms for assemblies
JointsKinematic relationships between instances
Material assignmentsPer-part or per-face materials
Sketches2D geometry and constraint data

Auto-Save

vcad saves automatically on every change. You never need to manually save.

ActionWhat Happens
Create new documentGenerates name ("Untitled 1", "Untitled 2", etc.), saves immediately
Make any editAuto-saves to IndexedDB
Rename documentUpdates name in storage
Close browser tabYour work is already saved

Auto-save is instant. There is no save delay or debounce. Every change is persisted immediately.

Loading Documents

From the Document List

Open the document list to see all your saved documents, sorted by most recently modified. Click a document to open it.

From File Import

To load a .vcad file from your computer:

  1. Use File > Import or drag the file onto the viewport
  2. The file is loaded into a new document
  3. The new document is saved to local storage

Exporting Documents

To share a document or back it up:

  1. Use File > Export or the export button
  2. A .vcad file downloads to your computer
  3. Share this file or import it on another device

Export your important documents periodically. Browser storage can be cleared by the user or browser cleanup tools.

Offline Support

vcad works fully offline after the initial page load. All features remain available:

  • Create and edit documents
  • Save and load from local storage
  • Export files to your computer
  • Import files from your computer

No network connection is required for any editing operations.

Multi-Tab Behavior

vcad coordinates across browser tabs to prevent conflicts when you have the same document open in multiple tabs.

ScenarioBehavior
Open document in second tabSecond tab shows "locked" warning, opens read-only
Close the editing tabLock releases, other tabs can edit
Tab crashesLock auto-releases after 30 seconds

Avoid editing the same document in multiple tabs. The lock system prevents data loss but provides a degraded experience.

Storage Management

Documents are stored in the browser's IndexedDB. vcad monitors storage usage and warns you when space is low.

Storage LevelIndicator
NormalNo indicator
80% capacityWarning message
95% capacityBlocks new saves until space is freed

Freeing Space

If you run low on storage:

  1. Open the document list
  2. Delete documents you no longer need
  3. Export important documents first as backup

Storage Limits

Browser storage limits vary by browser and device. Typical limits are 50MB-1GB per origin. Large documents (over 10MB) may impact performance.

Edge Cases

ScenarioHandling
Storage fullWarning dialog appears, suggests deleting old documents
IndexedDB unavailableFalls back to session-only mode with warning (work is lost on tab close)
Corrupted fileParser validates JSON, shows error on invalid format
Browser data clearedLocal documents are lost; keep exports of important work

Sync Status

The sync indicator shows the current document state:

StatusMeaning
localSaved locally, not synced to cloud
pendingChanges waiting for cloud sync
syncedFully synchronized with cloud

Cloud sync is not yet available. All documents are currently local-only. Keep exports of important work.