I'll come back to this tonight.
The quick answer is: You CAN NOT economically compete with the economies of scale enjoyed by commercial producers by making your own feed at home. Even if you had a good recipe (start with Justin Rhodes') because you can't assay your own ingredients, you can't know the final nutritional values, you can only guess based on published averages which may (but probably won't) approximate your inputs.
Earthworms, after addressing the moisture content, are high protein (and good AA balance) but high fat. Same with crickets. Both have decent amounts of calcium. I'll see if I can find the most recent earthworm discussion and link it later.
Absent the ability to farm at scale and store, its unlikely you can produce even a single ingredient of your mix, much less have the land and climate to produce all of the ingredients (or all the vegetable ingredients) in a complete feed recipe. Most of us don't have land suited for growing corn and wheat and soy, plus a few other things, to try and build a complete feed - and even then, you are going to want some of Fertrell's Nutribalancer, and likely some of their Fish Meal too.
What you can do, if you are fortunate enough to have a chunk of land and good climate, is "bend the curve" on feed costs, as I do with
my acres of weeds. But its not a quick solution. I'm two years in, and still experimenting to find what works and what doesn't. I invest about $100-$150 a year into it - which is one month of feed for me.
You can also accept that your birds can survive, but not thrive, on a less than optimal diet - but your ability to get eggs and meat from them - and their ability to withstand environmental pressures (disease, mostly) will all suffer.