🌺 self-hosted microblogging inspired by http://sebsauvage.net/wiki/doku.php?id=php:shaarli. Destilled down to the bare minimum, with easy hosting and security in mind. No PHP, no DB, no server-side templating, JS optional. https://demo.mro.name/shaarligo

Marcus Rohrmoser 1a275998ac https://goreportcard.com/report/github.com/mro/ShaarliGo 3 weeks ago
static c796ddbcfb 🐳 relative assets & links. 2 months ago
testdata a7bd7a293e 🐳. 1 year ago
tpl 317f28a109 cli 1 month ago
.gitattributes c87dc3136a fix github language detection 1 year ago
.gitignore 2d4c13e1b2 cli 3 weeks ago
.travis.yml 341d8989b7 template & travis 1 month ago
README.md 2d4c13e1b2 cli 3 weeks ago
ShaarliGo.go 433eba0423 🐳. 3 weeks ago
ShaarliGo_test.go 1a275998ac https://goreportcard.com/report/github.com/mro/ShaarliGo 3 weeks ago
api0.go 1a275998ac https://goreportcard.com/report/github.com/mro/ShaarliGo 3 weeks ago
api0_test.go 74a5907dd3 gofmt -w -l -s . 3 weeks ago
atom.go 74a5907dd3 gofmt -w -l -s . 3 weeks ago
atom_test.go 74a5907dd3 gofmt -w -l -s . 3 weeks ago
ban.go e3322e133f 2019 2 months ago
ban_test.go 1a275998ac https://goreportcard.com/report/github.com/mro/ShaarliGo 3 weeks ago
bindata.go 74a5907dd3 gofmt -w -l -s . 3 weeks ago
build.sh 433eba0423 🐳. 3 weeks ago
cgi-fake.sh f82137e2c2 - rename, 2nd. 1 year ago
comb.go e3322e133f 2019 2 months ago
comb_test.go e3322e133f 2019 2 months ago
config-core.go e3322e133f 2019 2 months ago
config-core_test.go 74a5907dd3 gofmt -w -l -s . 3 weeks ago
config.go 1a275998ac https://goreportcard.com/report/github.com/mro/ShaarliGo 3 weeks ago
config_test.go f10a2b335f 🐳. 1 month ago
doap.rdf 9cdd6ea430 git repo subdomain 6 months ago
emoji_map.go 942ac74720 make #§ and #† proper tags and make emojis implicit tags. 5 months ago
feedwriter.go 1a275998ac https://goreportcard.com/report/github.com/mro/ShaarliGo 3 weeks ago
feedwriter_test.go 74a5907dd3 gofmt -w -l -s . 3 weeks ago
flow.dot f82137e2c2 - rename, 2nd. 1 year ago
http.go 1a275998ac https://goreportcard.com/report/github.com/mro/ShaarliGo 3 weeks ago
mini-build.sh 278596c978 rename ‚pub/posts‘ to ‚=/p and according. 1 year ago
pinboard.go e3322e133f 2019 2 months ago
pinboard_test.go e3322e133f 2019 2 months ago
post-test.sh 2c5481d0e5 - trailing slashes 1 year ago
search.go 74a5907dd3 gofmt -w -l -s . 3 weeks ago
search_test.go e3322e133f 2019 2 months ago
tools.go 2d4c13e1b2 cli 3 weeks ago
tools_test.go e3322e133f 2019 2 months ago
version.go 24491e7c0b version bump. 5 months ago

README.md

🌩 Lightning Talk at the 34c3 🚀

Build Status

ShaarliGo

self-hosted microblogging inspired by http://sebsauvage.net/wiki/doku.php?id=php:shaarli. Destilled down to the bare minimum, with easy hosting and security in mind. No PHP, no DB, no server-side templating, JS optional.

Design Goals

  • backwards compatible posting (https://code.mro.name/mro/Shaarli-API-test)
  • trivial installation and minimal hosting requirements (run on simple hosted webspace),
  • keep server lean, especially for readers,
  • standards compliant (Atom, Atompub, WebSub),
  • easy migration from existing shaarlis,
  • run ok without javascript,
  • visitor reading operates on static flat files only (no server code),
  • secure against brute force login attacks,
  • easy translation & skinning,
  • leverage existing, widely deployed web tec (CGI, XSLT, HTML, CSS),
  • easy fail2ban integration / DOS mitigation,
Quality very good good normal irrelevant
Functionality ×
Reliability ×
Usability ×
Efficiency ×
Changeability ×
Portability ×

Dependencies

tl;dr: a webserver that can execute CGIs and serve files from disc.

ShaarliGo is an old-school CGI binary executable, so it needs a webserver to drive it. Example configurations come for Apache (see static/.htaccess) and Lighttpd (see static/app/lighttpd.conf).

As a self-contained, statically linked, Go executable, it has no software dependencies and can run on a variety of platforms.

It needs write access to it's webserver's filesystem location to unpack the web assets and update the content when posting.

Storage footprint is <25 KiB per post.

When posting a page, it is once accessed via HTTP GET to suggest title, tags and a thumbnail image URL.

Install / Update

bash:

  1. $ curl -L http://purl.mro.name/shaarligo-$(uname -s)-$(uname -m).cgi.gz | tee shaarligo.cgi.gz | gunzip > shaarligo.cgi && chmod a+x shaarligo.cgi
  2. visit in your browser: http://my.web.space/subdir/shaarligo.cgi

done!

Or build from source at http://purl.mro.name/ShaarliGo

See example static/.htaccess or static/app/lighttpd.conf how to set up webserver integration.

Todos

  1. private posts,
  2. PuSH/PubSubhubbub / WebSub,
  3. import shaarlis (login?),
  4. pwd reset (maybe deleting from app/config.yaml is acceptable),
  5. images/enclosures,
  6. comments,
  7. trackback/pingback

Shaarli(OS|er) Compatibilty

see https://code.mro.name/mro/ShaarliOS/src/master/ios/ShaarliOS/API/ShaarliCmdUpdateEndpoint.m and https://code.mro.name/mro/Shaarli-API-test/src/master/tests/test-post.sh