···1122+
33+# woomarks
44+woomarks is an app that let's you save links in your browser storage, no account needed.
55+66+
77+88+It's only frontend code, no database, backend server needed.
99+1010+1111+1212+It also can import/export to csv files or local storage.
1313+1414+1515+## Demos
1616+#### [Creator's personal boomarks page](https://roberto.fyi/bookmarks/).
1717+- Saving is closed to the public.
1818+- Saved links are visible to the public, as they are loaded from a csv file in the server.
1919+2020+#### [woomarks public app](https://woomarks.com).
2121+- Saving is open to the public.
2222+- The saved links are private and saved in the browser local storage of the users.
2323+2424+ ## Install
2525+2626+#### BASIC INSTALL
2727+ - Copy the contents of this repository to an online directory. That's all. You can start saving links.
2828+2929+3030+#### HIDE SAVE BUTTON
3131+ - If you are using this for your personal use (you don't want anyone else saving on your page), you can uncomment this line in **script.js** file
3232+ and add the code you want here AND as a variable in your browser's local storage.
3333+3434+`
3535+ // const appcode = "notsosecretcode";
3636+ `
3737+3838+ 
3939+4040+#### SHOWCASE YOUR LINKS
4141+- If you want to showcase your saved links, update the **mybookmarks.csv** file
4242+4343+#### IMPORT FROM POCKET
4444+- Go to this Pocket page to export your links
4545+4646+**Option 1** (If you want your links public)
4747+- Replace the mybookmarks.csv witha the content of your Pocket csv file.
4848+4949+**Option 2** (If you want your links saved on your browser's local storage)
5050+- Add > Bulk Transfer > Paste the contents.
5151+5252+## Features
5353+- Add/Delete links
5454+- Search
5555+- Tags
5656+- Bookmarklet (useful for a 2-click-save)
5757+- Data reads from:
5858+ - csv file in server (these links are public)
5959+ - local storage in browser (these links are visible just for the user)
6060+- Local storage saving.
6161+- Import to local storage from csv file
6262+- Export to csv from local storage.
6363+- Export to csv from csv file (useful when links are "deleted" using the app and just hidden using a local storage blacklist).
6464+- Export to csv from both places.
6565+- No external libraries.
6666+- Vanilla css code.
6767+- Vanilla js code.
6868+6969+## Design
7070+ This design is inspired by Pocket's UI, which was very good for showing a list of articles to read later. Native bookmarking feels more utilitarian, suited for recurrent links, woomarks is more suited for read later links.
7171+7272+## Philosophy
7373+I had all my bookmarks in Pocket and it's shutting down. Same thing happened to del.icio.us. So I decided to keep the web cool and decentralized and make this little thing. The code is open and you can use it on your own website forever.
7474+7575+## License
7676+Do whatever you want with this, personal or commercial. No warranties are given.
7777+7878+Attribution required in a footer link, legible size and colour, with the text "Made with woomarks" and a link to `https://github.com/earlyriser/woomarks`.
7979+"Based on woomarks" is also a valid wording if substantial change was done.
screenshot.png
This is a binary file and will not be displayed.
screenshot_appcode.png
This is a binary file and will not be displayed.
+1
script.js
···22const LOCAL_GLOW = true; // adds a glow to differentiate items stored locally in the browser from those stored in csv file
33const EXPORT = "all"; // choose export type "all", "csv", "local"
44// const appcode = "notsosecretcode";
55+56const MAX_CHARS_PER_LINE = 15;
67const MAX_LINES = 4;
78const EST_CHAR_WIDTH = 0.6; // em