AT Protocol obsidian plugin log

obsidian-atmosphere

This is a testing log of work on obsidian-atmosphere, which began as obsidian-atmark. Originally it just supported viewing and managing bookmarks from semble, margin, and kipclip.

Now I am expanding it to support publish standard.site documents

Initial work

First, just setup listing the user's standard.site publications since this is needed in order to associate a document with an existing publication.

Then implemented publishing a basic site.standard.document using textContent. While this worked and records were created successfully, I realized that for each platform (leaflet/pckt) that the content field must use a $type from one of the platform's lexicons. This is needed so that for instance, leaflet, understands how to render the document within it's own app

Next steps

Next up is to associate the files in obsidian vault with the AT proto records and support updating, and then fetching documents and reading.

For now, this plugin will be single-player focused, but may want to add support to explore, or pull in documents from subscribed publications

Setting frontmatter

Added changes to write to frontmatter after publish with properties like publishedAt, pub and doc URIs, and url

Doc url is a little cumbersome because the doc only has the site at:// URI (or loose document has https://). So we need to get a reference to the publication record to build the doc url from publication url

test