Skip to content
Prompt

apple-browsers — Cursor Rules

by duckduckgo

AI Summary

DuckDuckGo's subscription system provides access to premium features including VPN (Network Protection), Personal Information Removal (PIR), Identity Theft Restoration (ITR), and AI Chat. The system supports multiple purchase platforms and cross-platform activation. All subscription logic is central

Install

Copy this and paste it into Claude Code, Cursor, or any AI assistant:

I want to add the "apple-browsers — Cursor Rules" prompt rules to my project.
Repository: https://github.com/duckduckgo/apple-browsers

Please read the repo to find the rules/prompt file, then:
1. Download it to the correct location (.cursorrules, .windsurfrules, .github/prompts/, or project root — based on the file type)
2. If there's an existing rules file, merge the new rules in rather than overwriting
3. Confirm what was added

Description

DuckDuckGo iOS & macOS browsers

Overview

DuckDuckGo's subscription system provides access to premium features including VPN (Network Protection), Personal Information Removal (PIR), Identity Theft Restoration (ITR), and AI Chat. The system supports multiple purchase platforms and cross-platform activation.

Shared Foundation: BrowserServicesKit

All subscription logic is centralized in BrowserServicesKit/Sources/Subscription/: `swift // ✅ CORRECT - Use BrowserServicesKit for core subscription logic import BrowserServicesKit final class SubscriptionViewModel: ObservableObject { private let subscriptionManager: SubscriptionManager init(subscriptionManager: SubscriptionManager = SubscriptionManager.shared) { self.subscriptionManager = subscriptionManager } } // ❌ INCORRECT - Don't duplicate subscription logic in platform code final class SubscriptionViewModel: ObservableObject { func checkSubscriptionStatus() { // Don't reimplement subscription logic } } `

Platform-Specific Purchase Methods

iOS • Purchase Method: App Store only (StoreKit) • Geographic Coverage: Global • Cross-Platform: Can activate Stripe subscriptions from other platforms macOS App Store Build • Purchase Method: App Store only (StoreKit) • Geographic Coverage: Global • Cross-Platform: Can activate Stripe subscriptions macOS Direct Download Build • US Users: Stripe web purchases • Non-US Users: Redirected to iOS App Store • Cross-Platform: Primary platform for Stripe purchases

Version Management

ALWAYS use V2 implementations for new code: `swift // ✅ CORRECT - Use V2 implementations let subscriptionManager = SubscriptionManagerV2() let purchaseManager = StorePurchaseManagerV2() let purchaseFlow = AppStorePurchaseFlowV2() // ❌ INCORRECT - Don't use V1 implementations let subscriptionManager = SubscriptionManager() // Legacy let purchaseFlow = AppStorePurchaseFlow() // Legacy `

Discussion

0/2000
Loading comments...

Health Signals

MaintenanceCommitted Today
Active
Adoption100+ stars on GitHub
222 ★ · Growing
DocsMissing or thin
Undocumented

GitHub Signals

Stars222
Forks69
Issues115
UpdatedToday
View on GitHub
Apache-2.0 License

My Fox Den

Community Rating

Sign in to rate this booster

Works With

Any AI assistant that accepts custom rules or system prompts

Claude
ChatGPT
Cursor
Windsurf
Copilot
+ more