Also, coffee beans are not beans, but the pit (that usually comes in two parts) of the coffee fruit. It's the same with cocoa beans, but with 30-50 seeds per fruit.
The coffee fruit is a berry. We just don’t ordinarily consume the skin and fleshy part.
> We just don’t ordinarily consume the skin and fleshy part.\
Do you mean they're edible?
That depends on what you mean by "edible". Coffee cherries aren't particularly pleasant, at least not for human tastes, but they're strictly edible. Palm civets seem to like 'em, but not enough to make kopi luak cheap.