💾 Archived View for zvava.org › wiki › about-site.gmi captured on 2024-08-24 at 23:56:41. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2024-08-18)

➡️ Next capture (2024-08-31)

🚧 View Differences

-=-=-=-=-=-=-

🏡 go home...

🗃️ go back...

zvava.org

thumbnail (newtab.png)

created  2023/06/01
modified 2024/05/05
category text
views    233
as much as i would love to have this place be a complete resource, it is far from it. there are so many untold stories, and so many more that will stay like that forever

about this website and how it is constructed

📃 wiki feed

🕸️ view html version

📦 source code

dependencies

💿 bellard quickjs

🌌 the gemini protocol

🧮 viewcounter

🎨 hue server

🍑 actually simple syndication

history

refresh - 2024

archiving - 2024

refresh - 2023

archiving

lazy browsing mode

rewrite - 2022

begin wiki - 2021

rewrite

archiving

redesign - 2020

architecture

this website is generated every time it is updated by a static site generator. basically, all the files in the source like articles and layout templates get built into a final 'output' which can then be simply copied to a static file server. the advantages over the web app paradigm which i used before are numerous, but the most important come down to being simple, and being able to be crawled/indexed & archived no problem

server

zvavnet itself is runs on the cheapest vps known to man, the 23$/yr lowest-tier vps from racknerd.com, equivalent specs to a raspberry pi zero but the single vcore on the vps is faster. it is running caddy (for http/https), stargazer (for gemini), and fast reverse proxy. there are several services exposed on zvavnet with caddy that are forwarded from my home network with frp

caddy

frp (fast reverse proxy)

stargazer

wiki utility script

there is a wiki.js file which contains several tools for wiki contributors, it has documentation built into the command but it is also available here

wiki.js usage instructions

TODO: rewrite wiki utility script in wren

generator script

the generator script (make.js) is located at the root directory and requires a unix system to run as quickjs does not support executing arbitrary commands on windows. this script crunches all the data, formats everything nicely, and outputs static files that can be served all in few hundred lines of vanilla javascript (463 as of 24/03/15)

0. main entry point

→ create or clean output directory

1. fetchTemplates

→ read and cache all templates

2. fetchWiki

→ read and cache all wiki pages
→ parses and caches metadata for each page too

3. generateTemplates

→ fills out dynamic templates, and saves to cache

4. generateGemini

→ generate all final gemtext

5. generateHTML

→ translate all gemtext into final html

6. generateAss

→ generate an .ass feed of non-stub articles
TODO: rewrite generator script in wren