Abstract

How I built this blog. My handwritten Notes sync from a Supernote Nomad to a private cloud on my RPi through Tailscale, an AI model converts them into Transcripts in a Forgejo repository, and from them I write the Zetts that a tool renders as the Pages published on GitHub Pages.

This page you are looking at right now is, probably, one of the projects I am most proud of. I spent a lot of time on the design of this site.1

Please check the Glossary.

The Workflow at a Glance ↑

In the following diagram, you can see the entire workflow of how I take Notes so they end up here, in this blog.

The workflow from the Supernote Nomad, through the Supernote Private Cloud and Forgejo on the RPi, to the sb tools that build the site published on GitHub Pages behind Cloudflare Raspberry Pi SPC Nomad Supernote Private Cloud sb repo (Forgejo) inbox/ zett/ convert I write byhand me you GitHubPages Cloudflare notes to MD MD to HTML;publish blog

I write on the Nomad, and the Supernote Private Cloud syncs my Notes to the RPi. Forgejo keeps the repository there, and the sb tools turn its content into the site. GitHub Pages publishes it, behind Cloudflare.

Taking and Saving Notes ↑

I got the Supernote Nomad (opens in a new tab) a year ago. I love it. It feels amazing writing on it.2 I use it to handwrite, to sketch, to draw diagrams and more. It is the first element that saves my thoughts when I have it near me.

The Private Cloud

Supernote provides you with a private cloud where your Notes are synced to. They own that cloud, but there is an unofficial way (opens in a new tab) to deploy your own Supernote Private Cloud (SPC) on your machine, so you can save your Notes on your hardware.3

That is what I did. I deployed the SPC on my RPi through Docker Compose, the same way as any other app on it.

yaml
name: rpi-pro
services:
  supernote:
    restart: unless-stopped
    environment:
      SUPERNOTE_BASE_URL: https://supernote.<tailnet>.ts.net
      SUPERNOTE_MCP_ENABLED: "false"
    image: rpi/supernote:0.24.0
    logging:
      driver: local
    mem_limit: "536870912"
    networks:
      default: null
    volumes:
      - type: bind
        source: /srv/rpi/pro/supernote
        target: /data
        bind: {}
    build:
      context: https://github.com/allenporter/supernote.git#0.24.0
      dockerfile: Dockerfile
    ports:
      - mode: ingress
        host_ip: 127.0.0.1
        target: 8080
        published: "9060"
        protocol: tcp
networks:
  default:
    name: rpi-pro_default
x-service:
  logging:
    driver: local
  restart: unless-stopped

You have to set up your user name and password after deploying the SPC using the following command:

shell
docker compose exec -it supernote supernote admin \
  --url http://localhost:8080 user add you@example.com
# `--url` is the HTTP endpoint where supernote is available

Setting Up the Nomad

Once I had the SPC deployed on my RPi, the next step was to install Tailscale on my Nomad. You can check the steps on how to do it in this note.

The last step was to log out from my account in the Nomad, enable Private Cloud from the Settings, and log in again with the user name and password that I configured before.

That’s it. I was able to sync my Nomad Notes into the SPC deployed on my RPi, which I can access through Tailscale on my laptop or my phone to see the Notes that are saved there.

The Repository ↑

I have Forgejo deployed on my RPi. I created a repository called sb4 with the following directory structure:

shell
sb
├── inbox    # Nomad Notes converted to MD (Transcripts)
├── zett     # Notes I write from the Transcripts (Zetts)
├── books    # Notes about the books I read
├── convert  # Tool: Notes to Transcripts
└── blog     # Tool: Zetts to HTML Pages

The inbox saves Transcripts, which are Notes converted to Markdown files, thanks to the convert tool. This tool does the following things:

  1. Access the SPC.
  2. Get the files that live in a specific folder created in the Nomad.
  3. Make “screenshots” of the special .note Notes, so they become PNG images.
  4. An AI model transcribes the content of the Notes into Markdown, plus images of diagrams that I draw on them.

This way I have my Notes available in the same place where I write the final Zetts, that is my computer. And I have the images of the diagrams that I draw in the Nomad as well.

From the Transcripts, I write the Zetts, which become the Pages that appear in this blog. The blog tool does the transformation from Zetts into Pages. It takes the Zetts, parses the Markdown5, and renders the final Pages for the website. Then I either preview them just for me or publish them in a GitHub repository with GitHub Pages enabled.

The Website ↑

Now the website itself. I designed it to feel as much as possible like real paper, as if you were reading a physical piece of paper. That’s why there are no fancy things, crazy animations, neon or vibrant colors. I just let myself make a dark theme.

I use Vim motions everywhere, and this website couldn’t be less. That’s why there are shortcuts to navigate the entire website using just your keyboard.

It is the web application I have worked on the most, and I want it to be beautiful and easy to use.

Glossary ↑

  1. I’m not a graphic designer. I just know what I want. I used Claude for the implementation of almost everything related to this project. ↩

  2. Not an ad. ↩

  3. There is an official way (opens in a new tab) as well, but they don’t build ARM Docker images, so I cannot deploy it on my RPi. ↩

  4. It refers to “Second Brain”. You can find Forgejo here (opens in a new tab). ↩

  5. I have special indicators for tables and callouts, as well as a frontmatter where I set metadata to print the Contents, the Abstract, etc. ↩