Skip to main content

Neutralinojs has an in-built shared key-value storage. It's like a global LocalStorage for all Neutralinojs modes. exposes methods for interacting with this storage feature.


The storage API persists all data records into .storage directory in the root directory of your application. If you want to clear all data records, delete the .storage directory.


Writes data into Neutralinojs shared storage. 


  • bucket: A key to indentify data.
  • data: Data as a string.
bucket: 'userDetails',
data: {
username: 'TestValue'


Reads and returns data for a given Neutralinojs shared storage key. 


  • bucket: The key of the storage data record.

Return object (awaited):#

  • data: Data string of the storage record. If this value is null or undefined, the specific data record will be erased from the disk.
let response = await{
bucket: 'userDetails'
console.log(`Data: ${}`);