{"id":19950991,"url":"https://github.com/valueof/bland","last_synced_at":"2025-09-12T15:33:45.535Z","repository":{"id":61839557,"uuid":"532439834","full_name":"valueof/bland","owner":"valueof","description":"Self-hosted bookmarks","archived":false,"fork":false,"pushed_at":"2022-10-23T01:23:16.000Z","size":1712,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-01T14:43:16.627Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/valueof.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-09-04T04:41:53.000Z","updated_at":"2024-01-23T12:45:49.000Z","dependencies_parsed_at":"2023-01-20T08:36:10.083Z","dependency_job_id":null,"html_url":"https://github.com/valueof/bland","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/valueof/bland","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/valueof%2Fbland","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/valueof%2Fbland/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/valueof%2Fbland/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/valueof%2Fbland/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/valueof","download_url":"https://codeload.github.com/valueof/bland/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/valueof%2Fbland/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274831638,"owners_count":25357883,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-12T02:00:09.324Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-13T01:06:26.985Z","updated_at":"2025-09-12T15:33:45.447Z","avatar_url":"https://github.com/valueof.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bland\n\nIt's like del.icio.us of the past but you can host it yourself!\n\n![Screenshot of Bland, from October 22nd, 2022](meta/screenshot%2010-22-22.png)\n\n## Quick Start\n\nCreate a new build:\n```sh\nmake\n```\n\nSwitch to the new directory and setup the database. This will create a new SQLite database file (bland.db) including all the necessary tables:\n```sh\ncd ./build\n./bland -db ~/db/bland.db -setup\n```\n\nNow you can run the server:\n```sh\n./bland -db ~/db/bland.db -addr localhost:9999\n```\n\nNote that the database file is _outside_ the build directory. This is because `make` removes everything in the build directory on each run so keeping your database file in there is just asking for trouble.\n\n## Development\nTo start a development server run this:\n```sh\ngo run . -dev -db bland.db -addr localhost:9999\n```\n\nIf you have [nodemon](https://nodemon.io/) installed you can watch for changes and reload the server automatically:\n```sh\nnodemon --exec go run . -dev -db bland.db -addr localhost:9999 --signal SIGTERM --ext html,go\n```\n\n## Optional\n### Import from Pinboard\nIf you, like me, have a JSON file with data from Pinboard you can import it into your database while setting it up:\n```sh\n./bland -db bland.db -setup -seed /path/to/pinboard_export.json\n```\n\n### Run Bland in the background\nFor longer running instances I highly recommend running Bland as a background service and putting it behind a reverse proxy server such as [Nginx](https://www.nginx.com/) or [Caddy](https://caddyserver.com).\n\n#### On Ubuntu Linux\nFirst, create a new file in the `/lib/systemd/system` directory named `bland.service` and make it something like this (this assumes your `build` directory is in `/home/anton/srv/bland` and your database file is `/home/anton/db/bland.db`):\n```\n[Unit]\nDescription=bland\n\n[Service]\nType=simple\nRestart=always\nRestartSec=5s\nWorkingDirectory=/home/anton/srv/bland\nExecStart=/home/anton/srv/bland/bland -addr localhost:9999 -db /home/anton/db/bland.db\nStandardOutput=journal\nStandardError=journal\n\n[Install]\nWantedBy=multi-user.target\n```\n\nSave this file. You can now start Bland in the background by running:\n```sh\nsudo service bland start\n```\n\nYou can now put Bland behind a reverse proxy server. If you have [Caddy installed](https://caddyserver.com/docs/getting-started) it's as simple as adding this to your Caddyfile:\n```\nmyblanddomain.ts.net {\n    reverse_proxy localhost:9999\n}\n```\n\nIf you want to use Nginx, check out this excellent guide from DigitalOcean: [How To Deploy a Go Web Application Using Nginx on Ubuntu](https://www.digitalocean.com/community/tutorials/how-to-deploy-a-go-web-application-using-nginx-on-ubuntu-18-04).\n\nEnjoy!","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvalueof%2Fbland","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvalueof%2Fbland","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvalueof%2Fbland/lists"}