💾 Archived View for koyu.space › aartaka › public › tripod.gmi captured on 2024-05-26 at 14:50:14. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2024-05-10)
-=-=-=-=-=-=-
By Artyom Bologov
Okay, so you want to have your blog backed by a good blog engine?
There is a set of things you're most probably interested in:
If this list of problems/requirements does resonate with you,
you might like
a minimalist blog engine I've made for this website
(and for your websites, if you decide to use it too!)
Tripod is a blog engine, for one.
It's written in Common Lisp
(which I consider the best programming language out there,
but it also is the only language I know well and am paid for programming in),
and based on a wonderful Hunchentoot web server toolkit.
Hunchentoot is biased towards HTTP(S) servers,
but it has the infrastructure that allowed me to hack Gopher and Gemini support for Tripod.
So, the first two qualities of Tripod are:
Now, blog engines are intended to show your texts in a nice way and support the markup format you love.
Tripod starts out with Gemtext and HTML support
(I also have Markdown and Org Mode parsing prototypes, but they are not yet ready :D),
which means support for most of the formats you use.
Tripod is the common denominator model for markup formats and network protocols it supports.
HTML and Gemtext are not much, but they are properly interchangeable with any other format to come,
because Tripod parses any markup it supports into format-independent common denominator AST
which is straightforward to translate into any format Tripod could potentially support.
But then, why bother making a common denominator ast for all the other markup languages,
removing their fancy features and nice styling?
Because Tripod aims to make your blog posting productive and content-focused!
Tripod focuses you with the limited tool set that it provides you with.
You only have headings, paragraphs, links, depth-one lists
(ouch! this one is painful even for me, a creator of Tripod),
verbatim text, and blockquotes. Which is, by a lucky coincidence, the same set of primitives as Gemtext.
It's an obvious thing in the Geminispace—simpler markup opens a space for a more focused thought,
both on the side of the writer and the reader.
The former doesn't tinker with styles and formatting ad nauseam,
the latter is not distracted by lots of media and styles.
Tripod is small, Tripod is restrictive, Tripod is productive.
Given the set of features outlined above, only one initial initial requirement left:
ease of starting up.
You don't have to worry about that,
because Tripod, in addition to being usable as Lisp library,
compiles (with a mere make all) to a standalone executable
that you can conveniently run to start a server.
As an example of how easy running Tripod is,
here's the command I use to start this website
(slightly redacted to not leak unnecessary information):
./tripod -d ~/aartaka.me/ -a aartaka.me -l ~/.tripod/log.txt -p 70 -s 443 -c /path/to/cert.pem -k /path/to/privkey.pem &
That's a lot to digest, so let me explain the flags I use:
is the directory to host files in. Put your precious .gmi and .html files there!
is the address your website is hosted at. Can be an IP or a hostname, required for security reasons.
is the location of the log file. If you don't provide it, the logs will be printed straight to your stdout.
is the port to start Gopher server at.
is the port for HTTPS (the HTTP flag is -t).
is the certificate for your website. Required if you use HTTPS or Gemini.
is the path to the private key. Again, required for HTTPS and Gemini backends.
Getting thise together: start HTTPS and Gopher servers
with the content from ~/aartaka.me/ and write logs to ~/.tripod/log.txt.
Which I consider just enough of capabilities for a simple blog engine
that you start and go on to forget it until your certificate expires.
You can always use ./tripod -h to look at what flags
(and environment variables backing those) there are.
But it all usually boils down to running one command,
copying it and running the copied one again
after you renew the certificate or recompile Tripod for new features.
A friend of mine has been constantly asking me
about different blog engines and their suitability for my use-cases,
only to be rejected with yet another set of requirements I have for a blog engine.
The blog engines I was suggested, together with things I don't like about them:
Cool, but it does not support Gopher and Gemini :P
Themable and static, which is a plus.
But then, themes SHOULD NOT be part of a blog engine,
they should be chosen by the user or their user agent for the maximum convenience and accessibility!
Too much reliance on templates, implies Markdown or MS Word (what?!)
as the post format, no support for anything but HTTP(S).
It implies that you load JavaScript.
Lots of JavaScript.
Your whole website is JavaScript.
Run away while you can, JavaScript's eating your sister!
And it's not a blog engine, actually.
If you're interested in the ideas behind Tripod
(supporting as much formats and protocols as possible),
you might be thinking to yourself:
"can I write posts in Y and make Tripod support it?"
Yes you can!
I'll be glad to accept your contributions
and include them into Tripod (given that the code is sane).
My personal wish-list is to support more formats:
And more protocols/ways of delivery:
These are what I myself would want to have in the blogs I'm reading, at least.
I hope that Tripod strikes your fancy and you use it for your website.
Otherwise, you can always come here and adore this newborn blog engine in action 😉
Update 2023: I no longer use Tripod, switching to a
stack instead.
This website is
and generated with the help of
You can view page sources by appending .h to the page URL.
Copyright 2022-2024 Artyom Bologov (aartaka).
Any and all opinions listed here are my own and not representative of my employers; future, past and present.