Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cadgerfeast/dexie-cross
Dexie Cross Domain Addon
https://github.com/cadgerfeast/dexie-cross
addon cross database dexie dexiejs
Last synced: 6 days ago
JSON representation
Dexie Cross Domain Addon
- Host: GitHub
- URL: https://github.com/cadgerfeast/dexie-cross
- Owner: cadgerfeast
- License: mit
- Created: 2022-06-14T18:35:32.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-02-05T13:12:35.000Z (almost 2 years ago)
- Last Synced: 2024-11-07T14:46:53.124Z (about 2 months ago)
- Topics: addon, cross, database, dexie, dexiejs
- Language: Vue
- Homepage: https://dexie-cross.cadgerfeast.dev
- Size: 1.58 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# dexie-cross
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=cadgerfeast_dexie-cross&metric=alert_status)](https://sonarcloud.io/dashboard?id=cadgerfeast_dexie-cross)
[![Coverage](https://sonarcloud.io/api/project_badges/measure?project=cadgerfeast_dexie-cross&metric=coverage)](https://sonarcloud.io/dashboard?id=cadgerfeast_dexie-cross)
[![Version](https://badge.fury.io/js/%40dexie%2Fcross.svg)](https://www.npmjs.com/package/dexie-cross)
[![Downloads](https://img.shields.io/npm/dt/dexie-cross.svg)](https://www.npmjs.com/package/dexie-cross)
[![License](https://img.shields.io/npm/l/dexie-cross.svg)](https://github.com/cadgerfeast/dexie-cross/blob/master/LICENSE)
> Dexie Cross Domain Addon
**Dexie Cross** allows you to share a [Dexie](https://dexie.org/) database with other domains.
- On host side, it's easy as adding an addon to your database.
- On client side, you should instantiate a specific `DexieCrossClient` class.Behind the scenes, the client creates a hidden `iframe` pointing to the domain where the host database is located.
Thats means that this URL should have correct [Content Security Policy](https://content-security-policy.com/) header set.
Once it's done, commands will be passed to the host database via `postMessage` API.