noteserver
What this website runs! The source code is on Github.
Nothing too complicated here:
- An express server for server-side rendering and to handle updates
- Using lite-jsx since we have basically zero interactivity and it’s easy to run the same code on the client and the server
- marked.js renders the markdown, using extensions for:
- Math typesetting with KaTeX
- Code block syntax highlighting with highlight.js (+ a custom language definition for K highlighting)
- codemirror for the editor… pretty heavy but looks like the best option
- Authelia’s trusted headers to authorize edits and page viewing (e.g. to prevent leaking my works in progress) since I already run it on my server.
TODO:
- RSS
- backlinks
- edit history?
- caching
Home About Contact