In the Browser
How to use TyDB in the browser (with demo)
Installation and usage
Directly including TyDB in a script tag
Using a module bundler & package manager
Install TyDB using npm
or using yarn
If you're using a bundler with package manager, then you will have to tell your bundler that you're bundling your project for the browser (if it doesn't defaults to that already), so the bundler will use the file specified in browser
field instead of main
field.
Memory only
Similar to when running in NodeJS, if you instantiate the database with no persistence adapter, data will not be persisted and will live in memory only.
Using IndexedDB Adapter
Connecting to a remote instance
Similar to when running in NodeJS environment, the instance in this case will be nothing more than a shell that sends arguments and receive data.
Last updated