I was recently writing about finally trying Leaflet and pckt for blogging on the Atmosphere and how I wanted some way to combine these with my existing notes site.
I wasn't sure if it would be a better approach to bring my existing notes to Atmosphere, or to sync my Leaflet posts to my notebook. Well, I now found a good way to do both...
Atproto to Obsidian syncing script
I started off by making a custom Node script. It works like this:
- 1.
Pull/fetch my quartz website repo
- 2.
Fetch all of my site.standard.document records from my PDS
- 3.
Parse them to convert them to markdown files
- 4.
Save the md files in my repo
- 5.
Push changes
- 6.
Repeat again in 60 minutes
This way, everything that I publish on Leaflet and Pckt is archived to my website under the Blogs folder
Note: Around the time of publishing this post, I am doing some web migrations so it might take a day or two for DNS changes to update, in case the site above isn't loading...
This takes care of Atmosphere to Obsidian syncing, allowing me to make posts like this one on Leaflet and still have everything accessible through my notes site.
This script is not public, as it's just something I quickly made for myself.
Obsidian to Atproto plugin
I was initially satisfied with just doing a one-way sync from my Leaflet / Pckt posts to my notes site. But, I was browsing through some Leaflet posts the other day and I just happened to find someone else with a similar setup to me.
They were using the obsidian-standard-site plugin.
This is an Obsidian plugin that lets you publish individual notes to your PDS using a standard.site lexicon. This allows notes to be discoverable on other platforms, like Leaflet.
Published pages from notes.yernemm.xyz showing on Leaflet.
One of my initial concerns with the idea of publishing my entire collection of notes to the Atmosphere was that there's a lot of misc rubbish there. I have some test pages here and there, and just generally things I don't want on my profile. However, for the higher-quality pages, this plugin is pretty good. I can just pick which note I want to be published, and it immediately adds a standard.site record to my profile.
The way this ends up functioning is also nice, as it doesn't necessarily duplicate my pages on Leaflet. The actual markdown text data does end up being pushed to the PDS, so technically third-party standard.site publication viewers. But, the publication URL is just notes.yernemm.xyz. This means that if you actually click my post inside of Leaflet, it just takes you the original note over on notes.yernemm.xyz...
site.standard records for my notes.yernemm.xyz posts, viewed inside Aether OS.
Technically, this means that the Leaflet posts don't link to content hosted on AT Proto, since it points to my actual self-hosted Quartz site, but the data itself is still on AT, if any external client wants to view it.
The main advantage this brings is discoverability. I have noticed a significant increase in traffic to pages on my Notes site ever since publishing them to standard.site. It allows me to make posts using my existing preferred method, whilst still being part of the larger Atmosphere community.
Leaflet posts and published pages from my Notes site, now both visible on my Blento page thanks to standard.site support.
The only slight issue is that the Obsidian plugin generates the path in lower-case, but Quartz links are case-sensitive to the capitalisation of the original files... so I have to add a lower case page alias to any web pages I publish as a quick workaround. I might just end up forking the Obsidian plugin to fix the url capitalisation...
Update: I realise now that the plugin suppots a slug frontmatter property, which lets me specify the correctly capitalised URL
Where to post now?
So at this point, anything I add to Quartz can show up on Leaflet / Pckt / other standard.site apps. Similarly, any standard.site publication is automatially synced over to my notes site every hour...
So where do I post then?
I'm not sure yet. I like the convenience of using a web editor like Leaflet, as it's way easier to edit posts on my phone when I'm away (I can technically still edit notes.yernemm.xyz on my phone with a Git sync app and the Obsidian app but it's kinda jank).
Leaflet also has some neat features, like the link embeds (I may have yoinked that html for my Leaflet post renderer on my Quartz site...), polls, and just deeper integration with Atmosphere.
But, I probably don't want to post everything here. I see my notes page as what I call it, a notebook. It can have detailed, long blog-like articles, but it can also have rough quick notes. It's a mix of it all.
I want to keep my standard.site presence to be more curated, with more meaningful posts. Whether I write on Leaflet, Pckt, or sync my Quartz post to here, I want to keep low-quality things to a minimum. But notes.yernemm.xyz will remain as a more complete collection of my online writing. This will be good-quality stuff, notes, archvied stuff from other social sites, etc.
Either way, the current setup is pretty neat, and I look forward to continue using both methods.
This page is automatically archived to my Notes website here: