data worker
- Overview
- Features
- Installation
- Usage
- Configuration
- Documentation
- Contributing
- Roadmap
- Support
- License
- Acknowledgments
Centralized privacy & data management service:
- β GDPR-compliant consent management
- β Centralized media storage (R2) with quota tracking
- β Data subject rights (access, export, deletion)
- β Privacy policies and session management
Separating data handling keeps other workers focused on business logic. This worker owns:
- Privacy: SameSite=Strict cookies, consent audit trails
- Media: R2 storage, quota enforcement, soft deletes
- Compliance: GDPR Art. 7, 15, 17 implementation
- οΏ½ GDPR Consent - Explicit opt-in (analytics, marketing, functional)
- πΎ Media Storage - Centralized R2 with quota tracking (10GB free tier)
- π€ Data Export - GDPR Art. 15 access requests (JSON)
- ποΈ Account Deletion - GDPR Art. 17 with 30-day grace period
- π Audit Logging - Compliance trail for all data operations
- π SameSite=Strict - Domain-wide cookie security
- Node.js 18+
- Cloudflare account with Workers
- D1 database, R2 bucket, KV namespace
# Clone the repository
git clone https://github.com/XAOSTECH/data.xaostech.io.git
cd data.xaostech.io
# Install dependencies
npm install
# Local development
npm run dev
# Deploy to production
npm run deploycd data.xaostech.io
./install.sh
{{MANUAL_INSTALL_STEPS}}
### Package Managers
```bash
# npm
npm install {{PACKAGE_NAME}}
# yarn
yarn add {{PACKAGE_NAME}}
# apt (Debian/Ubuntu)
sudo apt install {{PACKAGE_NAME}}
# brew (macOS)
brew install {{PACKAGE_NAME}}
{{BASIC_USAGE_EXAMPLE}}{{ADVANCED_USAGE_EXAMPLE}}π Example 1: {{EXAMPLE_1_TITLE}}
{{EXAMPLE_1_CODE}}π Example 2: {{EXAMPLE_2_TITLE}}
{{EXAMPLE_2_CODE}}| Variable | Description | Default |
|---|---|---|
{{ENV_VAR_1}} |
{{ENV_VAR_1_DESC}} | {{ENV_VAR_1_DEFAULT}} |
{{ENV_VAR_2}} |
{{ENV_VAR_2_DESC}} | {{ENV_VAR_2_DEFAULT}} |
# config.yml
{{CONFIG_FILE_EXAMPLE}}| Document | Description |
|---|---|
| π Getting Started | Quick start guide |
| π API Reference | Complete API documentation |
| π§ Configuration | Configuration options |
| β FAQ | Frequently asked questions |
Contributions are welcome! Please read our Contributing Guidelines before submitting PRs.
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
See also: Code of Conduct | Security Policy
- {{COMPLETED_FEATURE_1}}
- {{COMPLETED_FEATURE_2}}
- {{PLANNED_FEATURE_1}}
- {{PLANNED_FEATURE_2}}
- {{PLANNED_FEATURE_3}}
See the open issues for a full list of proposed features and known issues.
- π§ Email: {{SUPPORT_EMAIL}}
- π» Issues: GitHub Issues
- π¬ Discussions: GitHub Discussions
- π Wiki: GitHub Wiki
Distributed under the GPL-3.0 License. See LICENSE for more information.
- {{ACKNOWLEDGMENT_1}}
- {{ACKNOWLEDGMENT_2}}
- {{ACKNOWLEDGMENT_3}}