Using libraries that are open source or perpetually licensed doesn't come with that sort of platform risk. The analog there would be relying on third-party APIs.
All code presents risk. With modern dependencies chains, those risks compound through time too.
Most core tech is trivial to rebuild for a single user. It becomes complex over time due to scale and with the addition of user-guardrails.
I've been running a homegrown Object-Oriented Database for months without issue. It's less than 100 lines of Python including the interface.