All Projects → remotestorage → remotestorage-widget

remotestorage / remotestorage-widget

Licence: other
⬡ Connect widget for remoteStorage.js

Programming Languages

HTML
75241 projects
javascript
184084 projects - #8 most used programming language
CSS
56736 projects
shell
77523 projects

Projects that are alternatives of or similar to remotestorage-widget

Remotestorage.js
⬡ JavaScript client library for integrating remoteStorage in apps
Stars: ✭ 2,155 (+9269.57%)
Mutual labels:  offline-first, unhosted, remotestorage
launchlet
Make the web yours.
Stars: ✭ 34 (+47.83%)
Mutual labels:  offline-first, unhosted, remotestorage
joybox
A pinboard for audiovisual media.
Stars: ✭ 21 (-8.7%)
Mutual labels:  offline-first, unhosted, remotestorage
sharesome
Share files quickly from your remote storage
Stars: ✭ 21 (-8.7%)
Mutual labels:  unhosted, remotestorage
hyperchannel
Kosmos Chat for the Web
Stars: ✭ 17 (-26.09%)
Mutual labels:  unhosted, remotestorage
awesome-0data
Resources around owning your data 100%
Stars: ✭ 41 (+78.26%)
Mutual labels:  unhosted, remotestorage
grouptabs
Mobile Web App to organize payments in dynamic groups of people.
Stars: ✭ 40 (+73.91%)
Mutual labels:  offline-first, remotestorage
hyperdraft
Turn your notes into a website.
Stars: ✭ 59 (+156.52%)
Mutual labels:  unhosted, remotestorage
webmarks
remoteStorage-enabled bookmarking app
Stars: ✭ 65 (+182.61%)
Mutual labels:  unhosted, remotestorage
0data
Own your data, all of it.
Stars: ✭ 53 (+130.43%)
Mutual labels:  unhosted, remotestorage
shopping-list
a PWA to note shopping list and see shopping history
Stars: ✭ 24 (+4.35%)
Mutual labels:  offline-first
app
Source code of intencje.pl website and mobile/desktop apps based on Angular, Firebase, and Capacitor.
Stars: ✭ 12 (-47.83%)
Mutual labels:  offline-first
parse-react
[EXPERIMENTAL] React, React Native, and React with SSR (e.g. Next.js) packages to interact with Parse Server backend
Stars: ✭ 58 (+152.17%)
Mutual labels:  offline-first
SyncedStore
SyncedStore CRDT is an easy-to-use library for building live, collaborative applications that sync automatically.
Stars: ✭ 1,053 (+4478.26%)
Mutual labels:  offline-first
drummer
Offline-first drum machine
Stars: ✭ 19 (-17.39%)
Mutual labels:  offline-first
tiddlywiki-remotestorage
a syncadaptor plugin that saves tiddlers on custom remoteStorage directories
Stars: ✭ 20 (-13.04%)
Mutual labels:  remotestorage
offline-first-app
OfflineFirst demo app with some WebComponents and PouchDB
Stars: ✭ 27 (+17.39%)
Mutual labels:  offline-first
onepile
Playground for the future of private notes and document management
Stars: ✭ 41 (+78.26%)
Mutual labels:  offline-first
angular-http-cache
Speed up your remote requests by automatically caching them on client and add support for offline navigation.
Stars: ✭ 25 (+8.7%)
Mutual labels:  offline-first
Bolt
⚡ is a fast grunt based, data driven, static site seed project, for rapid web development of PWA's or JAMstack projects
Stars: ✭ 30 (+30.43%)
Mutual labels:  offline-first

remotestorage-widget

npm

A ready-to-use connect/sync widget, as add-on library for remoteStorage.js.

Usage

import RemoteStorage from 'remotestoragejs';
import Widget from 'remotestorage-widget';

// ...

const remoteStorage = new RemoteStorage(/* options */);

remoteStorage.access.claim('bookmarks', 'rw');

const widget = new Widget(remoteStorage);
widget.attach();

// ...

Configuration

The widget has some configuration options to customize the behavior:

Option Description Type Default
leaveOpen Keep the widget open when user clicks outside of it Boolean false
autoCloseAfter Timeout after which the widget closes automatically (in milliseconds). The widget only closes when a storage is connected. Number 1500
skipInitial Don't show the initial connect hint, but show sign-in screen directly instead Boolean false
logging Enable logging for debugging purposes Boolean false
modalBackdrop Show a dark, transparent backdrop when opening the widget for connecting an account. true shows backdrop everywhere, false turns it off everywhere. Default is to only show it on small screens. Boolean, String "onlySmallScreens"

Example:

const widget = new Widget(remoteStorage, { autoCloseAfter: 2000 });

Available Functions

attach(elementID) - Attach the widget to the DOM and display it. You can use an optional element ID that the widget should be attached to. Otherwise it will be attached to the body.

While the attach() method is required for the widget to be actually shown, the following functions are usually not needed. They allow for fine-tuning the experience.

close() - Close/minimize the widget to only show the icon.

open() - Open the widget when it's minimized.

toggle() - Switch between open and closed state.

Development / Customization

Install deps:

npm install

Build, run and watch demo/test app:

npm start

The demo app will then be served at http://localhost:8008

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].