DEV Community

Pacharapol Withayasakpunt
Pacharapol Withayasakpunt

Posted on

1

Is there IndexedDB or localStorage for localhost or local file:// protocol?

I believe it is a no for all.

This is pretty much a killer for both

  • Neutralino.js (default browser webview with token-based auth localhost)
  • Lorca (Chrome DevTools protocol in app mode)
  • Even Electron or Ultralight, if you use localhost or file protocol... (of course, a fix might be to use custom protocol, like app://./)

So, is there an option at all, for convenience, without contacting the server API's?

Top comments (3)

Collapse
 
michaelphipps profile image
Phippsy

What's the use case? Standalone product on a local system, disconnected from the web?

I know nothing about neutralino, but storage is mentioned in the docs:
neutralino.js.org/docs/#/api/storage

Is that what you're talking about?

Collapse
 
patarapolw profile image
Pacharapol Withayasakpunt • Edited

I want a real database - e. g. pouchdb with indexeddb adapter -> rxdb, actually.

Use case is desktop app with Lorca or Neutralino.js

Collapse
 
michaelphipps profile image
Phippsy

Qodo Takeover

Introducing Qodo Gen 1.0: Transform Your Workflow with Agentic AI

Rather than just generating snippets, our agents understand your entire project context, can make decisions, use tools, and carry out tasks autonomously.

Read full post

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay