Open Source Privacy Policy Generator
The compliance burden in this space is not the policy text, it is the consent banner: under GDPR and similar laws you have to block non-essential cookies until a visitor agrees, prove they did, and let them change their mind later. The open source consent platforms here run the banner and the consent log on your own infrastructure, scanning and gating trackers and keeping the record of who agreed to what without piping every visitor's choice through a third-party CMP.
CookieConsent
Lightweight cookie-consent plugin in vanilla JavaScript for GDPR consent banners and settings

c15t
Developer-first cookie banner and consent management framework for web apps

Klaro!
Consent manager for website cookies and third-party apps, with configurable consent modes

tarteaucitron.js
GDPR-friendly cookie manager that blocks third-party services until the visitor consents

68publishers Cookie Consent
Cookie-consent widget with Google Tag Manager integration and standardized consent storage