Public
Readme
This allows you to bookmark links and view them later. Completely powered by ValTown and SQLite.
- Fork the val
- From your ValTown settings page, add an environment variable named
bookmarks_client_id
and give it a value (you will be using this for saving) - Add another environment variable named
bookmarks_client_secret
and give it a value (you will also be using this for saving) - At first, the "bookmarks" table will not exist, so we need to save an article first, which will create the "bookmarks" table
- To do this, add a bookmarklet to your browser with this value (replace
BOOKMARKS-CLIENT-ID
andBOOKMARKS-CLIENT-SECRET
with the values you added to the environment variables, and replaceBOOKMARKS-URL
with your VAL's URL):
javascript:void(open('BOOKMARKS-URL/save?u='+encodeURIComponent(location.href)+'&t='+encodeURIComponent(document.title)+'&id=BOOKMARKS-CLIENT-ID&secret=BOOKMARKS-CLIENT-SECRET', 'Bookmark a link', 'width=400,height=450'))
- Click this bookmarklet to bookmark the URL of the current active tab
- Go to your VAL URL homepage to see the bookmark
Here are my bookmarks: https://ramkarthik-bookmark.web.val.run/
Make sure you don't share bookmarks_client_id
and bookmarks_client_secret
. It is used for authentication before saving a bookmark.
Val Town is a social website to write and deploy JavaScript.
Build APIs and schedule functions from your browser.
ramkarthik-bookmark.web.val.run
Updated: May 5, 2024
Nice! I've been thinking about doing something like this but with a little more of a pinboard feel. Really nice starting place for me!
Look forward to seeing your val.
Three things I plan to do for this one:
This is really cool nice work!
I use Pocket which I can access on my Kobo Libra e-reader which allows me to get away from the standard screen and read in isolation, I wonder if there's some way to take the bookmarks saved each day and auto-save them into Pocket as well to be able to maintain two places, probably feels a bit like duplication of what Pocket is used for but could be a cool idea!
I think this should be possible and a cool idea. We can set up a cron that runs every day and sends the articles saved since last run to Pocket using the Pocket API. I currently use Omnivore as my read-later, so I'll probably create a cron for both Pocket and Omnivore.