saved.io is a cloud-based bookmarking site. Go to http://saved.io/about for more information.
This project is not affiliated with the saved.io website or its developers.
I wrote this project to fulfil a simple desire: I wanted a command line interface to create and query saved.io bookmarks. Fortunately, saved.io provides an API that allows one to write their own tools.
This project provides:
- A command line tool to interface with the saved.io server.
- A Haskell library that wraps the saved.io API.
- Install stack (https://docs.haskellstack.org/en/stable/README/)
stack config
-- first time onlystack build
stack test
-- optional, if you want to run the testsstack install
-- optional, if you want install it
- Generate a developer API key at http://devapi.saved.io/key/.
- Generate a user key at http://saved.io/key.
saved-io --help
Available options:
-h,--help Show this help text
-v,--version Display version
-d,--devkey DEVKEY Saved.io developer key. See
http://devapi.saved.io/key
-u,--userkey USERKEY Saved.io user key. See http://saved.io/key
-f,--format BMFORMAT id,title,url,note,creation
-c,--color Enable color output
-b,--no-color Disable color output
--limit N Limit to N results
-s,--sort Sort output
-n,--no-sort Do not sort output
--sort-method SORT-DIRECTION
ascending|descending
Available commands:
list List bookmark groups
search Search for bookmark
addmark Add bookmark
delmark Delete bookmark
getmark Get bookmark
mkrc Make RC File
Creating a RC file allows you to save the following settings:
- Dev key
- User key
- Bookmark display format
- Sorting preference
- Result limit (upper bound on number of results returned)
saved-io --devkey YOURDEVKEY --userkey YOURUSERKEY mkrc > ~/.saved-io.rc
saved-io --devkey YOURDEVKEY --userkey YOURUSERKEY --format title,url --color --limit 1000 --sort mkrc > ~/.saved-io.rc
saved-io addmark --title "Cool website" --url "www.github.com"
saved-io addmark --title "Cool website" --url "www.github.com" --group "development"
Bookmarks are deleted by ID. The bookmark ID can be queried via list and
search commands, ensuring that --format
contains the id
field.
saved-io delmark Z6ek8
Bookmarks can be fetched by id as well.
saved-io getmark Z6ek8
Note that the same effect can be achieved with search as well, although it may slower as the search is done on the client side:
saved-io search -/id Z6ek8
saved-io list
saved-io list development
saved-io search git
saved-io search -/url git
The --type ('-/') option supports the following search categories:
- id -- The bookmark ID
- url
- title
- note
- creation -- The creation date in the format YYYY-MM-DD
The output can be controlled by the '--format', '--color', and '--limit' option.
The --format option can takes zero or more comma separate strings from the following set:
- id
- title
- url
- note
- creation
If you wanted to see everything for example:
saved-io list --format id,title,url,note,creation
If you wanted to see only the url, repeated twice for some reason:
saved-io list --format url,url
This option enables color output. Disable with '--no-color'.
Limits the number of entries shown.
See the Haddock documentation.
- The saved.io v2 API provides no way to query or show the bookmark groups. (v1 did provide it.)
- It is not possible to edit existing bookmarks.