Our great sponsors
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
I seem to be in the middle of trying to build something similar to this. I want it to run on an android phone but otherwise the same sort of idea, offline-first information I want access to.
There's some weirdness around android browsers refusing to load html from the phone itself on security grounds. The OP uses a "progressive web app" which seems to be the proper way to do this at some point in the past, but firefox has killed that for some reason. Thus the most difficult part of the project seems to be persuading my phone to render html without copying the files to some server (or running a fileserver on the phone itself, to look at from the phone, which seems absurd).
What I can offer for people stumbling down the same path:
- Obsidian works fine as for ad hoc authoring of markdown while walking around
- It is known on stack overflow that markdown can't be sanely parsed into an AST
- That knowledge is kind of a branding misfire, the 'markdown' one is looking for is here https://github.com/commonmark/cmark
- That cmark binary + some foreach-file style script will turn markdown into html or xml. If you choose makefile and put spaces in the name of files you'll have a moderately bad few minutes cursing your tools
- Given that output xml/html, you can build whatever other html you see fit
- That html can be written back to the obsidian vault and opened by a phone browser (at least if it's a single file)
- CSS thus far appears to be required, I was really hoping to annotate the html instead
First 90% done here, second 90% to go.
Hey Rafi,
Isn't your repository at https://github.com/rafic20/folderbase missing the PHP file? Or am I looking at the wrong place?
https://phonk.app/ just added this to my bookmarks not affiliated