There's an open-sourced clone of YNAB (standalone version) called financier (https://financier.io). There's been a few efforts to easily run it locally:
Yeah, I also tried Financier. Although it provides everything needed, I didn't feel very comfortable with it running in the browser and storing the database in the browser too. Backups are hard in this case. Also, when moving to a new system, the import of transactions was a requirement.