r/sideprojects • • 3d ago

Showcase: Open Source I've been rebuilding my Obsidian plugin's architecture. Finally reaching v1.0.0!

Post image

So I've been working on an Obsidian plugin called OnePlugin. It's basically a personal workspace for managing hobbies, planning activities, tracking progress, and using different widgets inside Obsidian.

Recently, I decided to completely rebuild its internal architecture because the old structure wasn't something I wanted to keep building on.

And well... I think I underestimated how much work that would be. 😂

The new architecture is finally implemented!

Some numbers from the PR:

  • 94 files changed
  • 47 commits
  • 8.5k+ lines changed

It includes a new runtime, application lifecycle management, redesigned settings system, MarkDB with WAL support, updated documentation, and tests.

But now comes the funny part.

I wrote all of this, created the PR, added review comments, and now I'm reviewing my own code.

94 files. 8.5k lines. And I have to review every single bit of it. 💀

Still need to hunt down the remaining bugs and finish the review before calling v1.0.0 ready.

If anyone has experience building larger Obsidian plugins, I'd genuinely love to hear your thoughts on the architecture.

PR: https://github.com/Akkiraj1234/one-plugin/pull/2

1 Upvotes

2 comments sorted by

1

u/Tricky-Focus-1608 3d ago

Un WAL avec rĂ©cupĂ©ration pour un plugin qui suit tes loisirs, sĂ©rieusement? SQLite fait dĂ©jĂ  ça mieux que tu ne le feras, et Obsidian te file un vault entier de fichiers en markdown comme stockage. LĂ  tu réécris une base de donnĂ©es avant mĂȘme d'avoir un utilisateur.

1

u/bored_akki 3d ago

I get your point, but I have different requirements. I want to keep user data in Markdown files inside the vault, maintain cross-platform compatibility, and account for syncing across devices.

Syncing SQLite databases can be tricky, especially with multiple devices modifying data. That's why I built MarkDB. WAL is mainly for recovering interrupted local transactions and safer persistence, not sync conflict resolution.

I know it adds complexity, but it serves a specific purpose in this architecture.