I have a basil plant outside that is getting eaten alive by insects!

Is there was something I could make at home (to be sure that it was completely safe to use on the leaves) since we're going to be eating those very leaves? I didn't have any luck finding anything via search engines. I haven't caught any bugs "in the act" on the plant, so I'm not sure what I would need to repel.