I let Claude Code handle my swap to a self-hosted Notion alternative, and it felt like magic

I let Claude Code handle my swap to a self-hosted Notion alternative, and it felt like magic

Published Dec 1, 2026, 10:30 AM EST His love of PCs and their components was born out of trying to squeeze every ounce of performance out of the family computer. Tinkering with his own build at age 10 turned into building PCs for friends and family, fostering a passion that would ultimately take shape as a career path. Besides being the first call for tech support for those close to him, Ty is a computer science student, with his focus being cloud computing and networking. He also competed in semi-pro Counter-Strike for 8 years, making him intimately familiar with everything to do with peripherals. Notion has done me quite well for the half-decade or so that I've been using it, but in my quest to self-host nearly everything I use, it was next on the chopping block. Notion worked everywhere, had a clean app for each of my devices, and while it was a bit heavy for individual use, being able to share things via a link was always nice. I had never quite found a self-hosted alternative that had the same features I had wanted, but then I found AFFiNE, which seemed like the best candidate despite being in early development. Despite looking fairly straightforward to self-host, I had run into this before with AppFlowy—it looks fairly innocuous, but once I was in the weeds of the installation and things started throwing errors and not syncing properly, I gave up. I considered pointing Claude Code at the existing installation, but decided to let it completely handle a new container setup, installation, and migration to AFFiNE over from Notion, and it did a surprisingly good job. Initial setup I wanted to give Claude the best shot at getting it right To give Claude the best chance possible, I went ahead and began doing some of the prep-work myself. I exported my entire Notion workspace in HTML, CSV, and Markdown, then sorted out a project folder that had a clear CLAUDE.md file with my intentions laid out. When I allowed Claude to handle creating containers and interfacing with my home lab over SSH previously, it hasn't gone super rogue, but I'm still very intentional with the language I use while prompting. I broke down the process into 8 main phases. Phase 0 is the recon and planning stage, where I allow Claude to scope out what it will need to complete the migration itself, including searching AFFiNE's documents for feature parity. I hadn't fully checked them myself, but I wanted to make sure I wasn't going to be missing something glaring. Phases 1 through 3 involve provisioning the LXC, deploying AFFiNE, and doing a test pilot of the imports from my system to see how they display in the new service. The following phases, 4 through 7, are mostly verification that everything is how it should be, and cleaning up the AppFlowy instance that's still running on my system. Claude provisioned everything and deployed it faster than I could've AFFiNE was up and running in a matter of minutes Once I reviewed its plan in phase 0, I decided to go ahead and let it loose. It first wanted to carve out some space on my NAS via a ZFS bind mount for storage of the database and any files I upload to the AFFiNE instance, which all looked fine to me. When it went to enable snapshots, it ran into its first hiccup. Snapshots can't be enabled if there is a bind mount present, but it can be done if you detach the mounts first. This won't backup the data that is stored in the tank itself, but just the container and its settings. The backup scheme for the actual data inside the instance will be taken care of later in the process. After the storage was taken care of, Claude Code SSH'd into my home lab, created the container with the appropriate image and resources, and deployed AFFiNE within a couple of minutes. I had walked away from my machine to fix myself a coffee, and it had already finished before I had a chance to grind the beans. When I sat back down, the admin panel was waiting for me to log in and do the initial setup, and it was ready to use. Migrating my data over didn't really need Claude But it did catch a few loose ends There are very few documents in my Notion instance that I consider to be an active work-in-progress—maybe four or five, max, but most of them are pieces of older work that I reference in an archival manner. With that in mind, I did want Claude to migrate and verify afterward that everything made it over in the same sort of format I had configured in Notion. A lot of my documents lived inside databases and kanban boards, so ensuring those made it over in some capacity was key. Claude Code had me download and import the Notion data myself, but it went through the pilot imports to ensure things made it over completely without any corruption or missing files. It had me do two pilot imports, one with the Markdown and CSV data, and the other with pure HTML, and the Markdown import was more complete. The HTML migration had some missing files that had no body text, which is possibly because they were empty pages in a to-do list of some kind, so instead of just dumping those and starting those lists from scratch, I opted for the Markdown import method when I went to do it for real in the workspace I'd actually be using. Unfortunately, the kanban boards I had been using were converted into normal tables with both Notion export methods. AFFiNE doesn't currently support the ability to convert these plain tables into living databases, so this isn't really Claude's fault either. The finishing touches Claude cleaned everything up and was finished before lunchtime After everything was built and ready to use, Claude built a throwaway container on my home lab and attempted to test the backup scheme it had implemented. It deployed a second instance of AFFiNE and managed to restore the backup on the second instance. It then started the teardown process, which also went really smoothly. It removed the pilot workspaces we had imported previously and destroyed the throwaway container it had made for testing, all within about a few minutes with some manual intervention on my end. This went way smoother than I thought it would I was expecting a few mistakes here and there, but honestly, Claude Code really impressed me with how well it conducted this migration. It managed to handle most of it all on its own, barring some manual exporting from Notion and navigating through some import quirks. AFFiNE doesn't handle all of my notes exactly the same as Notion did, but it's great to shed yet another cloud service in favor of a self-hosted one.

Original Source

Read the full article at Xda-developers →

KhanList aggregates and links to publicly available news content. We do not host full articles from third-party sources. Always verify important information with original sources.