Settings

Theme

Show HN: prev.js: Blog/PKM SSG using SQLite and Python. Compiles in 5s on Vercel

github.com

1 points by danielfalbo 2 days ago · 1 comment

Reader

danielfalboOP 2 days ago

Author here. I previously used Next.js for my blog and Notion for my collection of linked books/resources/notes, but I wasn't happy with the compilation time of Next.js for a simple blog and the slowness of Notion. So I built my own solution for both from scratch.

I use Python for the logic (zero dependencies) and SQLite for the data.

I still have to migrate the data, but the core is already online at https://danielfalbo.com

For instance, I have an SQLite table for resources and one for authors, linked together.

The indices for each are automatically generated at https://danielfalbo.com/resources and https://danielfalbo.com/authors

If you open, for example, an author's page, you'll find hyperlinks to all their resources in the first part of the document, and vice versa for the resources. Example: https://danielfalbo.com/resources/fabric-of-reality

The blog will live in the "notes" table, which behaves similarly at https://danielfalbo.com/notes (actually, I'm still thinking whether to split the notes and the blog tables or keep them together, but infrastructure-wise it doesn't change anything).

A fun feature is the dynamic calculation of my age at the moment of writing of any blog post, for example, seen at https://danielfalbo.com/notes/essentials

There is also a lightweight livee preview feature for nice offline html content editing.

I still have to finish migrating everything and might realize there are gaps along the way, but the goal is relevant-features parity with https://old.danielfalbo.com/weblog and https://danielfalbo.notion.site/3cce7ff647e94470ba1342211337...

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection