Cut bacon into 1 inch pieces. Fry in heavy bottomed pan until crisp. Drain. Save one tablespoon of bacon grease.
Add shallots or onions to bacon grease. Soften for a few minutes. Add in garlic.
Add apples, cook for a minute. Add in vinegar, brown sugar, cayenne pepper and saute until apples are soft.
Add bacon back in until it looks like a compote.
Add in apples, shallots or onions, garlic, cayenne pepper, vinegar, brown sugar and saute until apples are soft.
Add bacon back in. Add maple syrup and cook down until it looks like a compote, about 45 minutes. I only cooked it very low heat for one hour.
Pour off any bacon grease. This part is important.
Process in food processor, but not too much. Pulse it and check to see that you can visibly see the bacon, as shown in the picture. Store in refrigerator up to a week.