Figure out how the open source library can fund your cost of living. Sometimes that's a cloud version of a self-hosted project, or commercially licensed add-ons that are useful to businesses, or premium support. See Sidekiq, Plausible, Sentry, Chatwoot, sindresorous, et al.
But from looking at your profile, you already know this so this comes off as marketing hidden behind a question.