lasuillard / raindrop-sync-chrome Goto Github PK
View Code? Open in Web Editor NEWChrome browser extension for syncing bookmarks with Raindrop.
License: GNU General Public License v3.0
Chrome browser extension for syncing bookmarks with Raindrop.
License: GNU General Public License v3.0
Try to sync bookmarks on browser start, with on / off switch at config.
Feature to sync bookmarks matching results of user provided Raindrop.io query (there can be duplicates between folders).
It separate sync feature into two mode (toggle):
Full: Sync all bookmarks into specified directory.
Partial: Sync bookmarks based on queries, can be configured multiple times.
With hand-crafted OpenAPI spec, automatically generate most of API client codes:
Once separate library created, migrate to it.
Update poor e2e tests currently done by mostly human.
Docs worth noting:
@lasuillard It would be handy to include some basic docs for the setup process.
I assume we need to create an application in Raindrop to acquire a Client Id, Client Secrete and a Token.
However, it's not clear what the redirect URI should be for the application. I tried localhost and https://.chromiumapp.org but all changes resulted in Error: Request failed with error: Incorrect redirect_uri
when registering in the extension for syncing.
Push extension to CWS.
Auto refresh token if access token expired on request, then retry it if once refreshed.
sequenceDiagram
participant U as User
participant E as Extension
participant R as Raindrop API
E ->> R: API request
R ->> E: Response
alt Uauthorized
E ->> E: Refresh access token
alt Token refreshed
E ->> R: Retry API request
R ->> E: Response
alt Unauthorized
%% Somewhat critical situation; token refreshed but invalid?
%% NOTE: To prevent infinite recursive call, use different client instance
E ->> E: Invalidate credentials
E ->> U: Notify user about critical error, requesting user re-login
end
else Refresh failed
E ->> E: Invalidate credentials
E ->> U: Request user re-login
end
end
Would find this package useful: axios-retry
Better tree view of bookmarks similar to file explorer, with following features:
Start collapsed
Show children if open
Load bookmarks lazily on open
It will be used by "Bookmarks" and "Try It" to preview bookmarks for sync.
Display some informative elements (modal or toast) if registration of OAuth app fails.
Update CI for offline distribution of unstable releases.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.