embed | ||
extra | ||
.editorconfig | ||
.gitignore | ||
config.go | ||
flake.lock | ||
flake.nix | ||
go.mod | ||
go.sum | ||
LICENSE.txt | ||
main.go | ||
README.md | ||
TODO.md |
reticule
reticule is a small, single-user article clipping tool that relies on a feed reader of your choice (like Miniflux, Vore, Newsboat, and others) to view your saved links.
running
from source
- clone this repo and
cd
into it in a terminal go mod download && go build
- see
./reticule -h
for how to use it
systemd
- compile/download and move the binary to
/usr/local/bin/reticule
- make a dir called
/var/lib/reticule/
to store the database - create a user and group called
reticule
, making sure it owns both and has permission to execute it - put the following in
/etc/systemd/system/reticule.service
:
[Unit]
Description=reticule, the link saver
After=network.target
[Service]
ExecStart=/usr/local/bin/reticule -db-path /var/lib/reticule -address 127.0.0.1 -port 8738 -feed-name "WHATEVER-YOU-WANT-HERE"
User=reticule
Group=reticule
Type=exec
Restart=always
[Install]
WantedBy=default.target
RequiredBy=network.target
sudo systemctl daemon-reload && sudo systemctl enable --now reticule
Nix flakes
if you're running NixOS, this flake provides the reticule
package and a module. here's an example flake.nix
you can copy from:
{
inputs = {
reticule.url = "git+https://git.cyberia.club/reese/reticule.git";
};
outputs = { reticule, ... }@inputs: {
nixosConfigurations.hostname = nixpkgs.lib.nixosSystem rec {
modules = [
reticule.nixosModules.reticule
];
};
};
}
the possible options can be found in flake.nix.
saving links
WARNING: reticule comes with absolutely zero means of authentication on its own. if you want to use it over the internet, use reverse-proxy authentication to protect the /add
endpoint at the very least.
browser bookmarklet
create a new bookmark called "save to reticule" and set the URL to the following:
javascript:(()=>{window.open("<SERVER_ADDRESS>/add&url="+encodeURIComponent(location),"_blank","noreferrer,noopener")})()
change <SERVER_ADDRESS>
to your server's address.
go to a page you want to save, click the bookmarklet, and voila! it should open a new tab, hopefully telling you that it was saved successfully, which you can then close.
android
- install HTTP Shortcuts (F-Droid, Play Store)
- save
reticule_http_shortcut.json
to your device. - in HTTP Shortcuts, open the 3 dot menu in the top right corner, tap "Import/Export", then "Import from file". select the file you downloaded.
- back in the main page, open the menu again, then tap "Variables", and edit the value of
reticule_instance
to point to yours. - try using the share button in an app. a new item "Send to..." with the HTTP Shortcuts icon should appear on the share sheet. you can also save an article by opening the shortcut inside the app itself and pasting the URL.
feed reader setup
there is an RSS feed endpoint at /feed
, and an Atom feed at /atom
. if it doesn't work in your reader, open an issue and i will try my best to help figure it out!
acknowledgements
the purple coin purse favicon comes from OpenMoji which is licensed under CC BY-SA 4.0.