Runtime

Booting container...

jiki’s persistence layer automatically saves filesystem changes to a storage backend. Here, an InMemoryAdapter tracks all writes. In production, swap it for IndexedDBAdapter so files survive page refreshes.

Details

Try it yourself

  1. Run node counter.js several times — the counter increments each time
  2. Create new files — they appear in the persisted entry count
  3. Edit notes.txt and save — the persistence adapter tracks the change
  4. In production, replace InMemoryAdapter with IndexedDBAdapter for real persistence