It works much better for most people if you replace “retire early” with “recreationally employed”. You can select the work you do without optimizing for income or status-maxxing.
The few cases I know of people who retired in their early 30s they really didn't want to even be "recreationally employed", they diverted their efforts to causes they believe are bigger than usual work. They help communities, they started projects in their free time that enhances others' lives in direct and meaningful ways which had nothing to do with their past day job.
I believe I'd do the same, forget about coding yet another little project/library, and go into the real world dedicate part of my time to causes that can't pay much but have meaning to others.
The few cases I know of people who retired in their early 30s they really didn't want to even be "recreationally employed", they diverted their efforts to causes they believe are bigger than usual work. They help communities, they started projects in their free time that enhances others' lives in direct and meaningful ways which had nothing to do with their past day job.
I believe I'd do the same, forget about coding yet another little project/library, and go into the real world dedicate part of my time to causes that can't pay much but have meaning to others.