Using with AI Assistants
expo-iap provides AI-friendly documentation for use with AI coding assistants like Cursor, GitHub Copilot, Claude, and ChatGPT.
AI-Optimized Documentation
We provide two documentation formats optimized for AI assistants:
| Format | Description | URL |
|---|---|---|
| Quick Reference | Concise API overview (~300 lines) | llms.txt |
| Full Reference | Complete API documentation (~1000 lines) | llms-full.txt |
Add to Cursor
Cursor allows you to add custom documentation sources:
- Open Cursor Settings (
Cmd+,on Mac orCtrl+,on Windows/Linux) - Go to Features > Docs
- Click Add new doc
- Enter the URL:
https://hyochan.github.io/expo-iap/llms.txt - Give it a name like "expo-iap"
Now when you ask Cursor about expo-iap, it will reference the official documentation.
Add to GitHub Copilot
For GitHub Copilot Chat in VS Code:
- Open a new chat (
Ctrl+Shift+IorCmd+Shift+I) - Reference the documentation URL in your prompt:
@workspace Using https://hyochan.github.io/expo-iap/llms-full.txt as reference,
help me implement in-app purchases with expo-iap
Add to Claude or ChatGPT
When using Claude or ChatGPT, you can provide the documentation URL directly in your prompt:
Please refer to https://hyochan.github.io/expo-iap/llms-full.txt for the expo-iap API documentation.
Help me implement a subscription purchase flow with expo-iap.
Or paste the content of llms.txt or llms-full.txt directly into your conversation for better context.
Direct URL Access
You can access the AI documentation directly:
- Quick Reference: https://hyochan.github.io/expo-iap/llms.txt
- Full Reference: https://hyochan.github.io/expo-iap/llms-full.txt
What's Included
Quick Reference (llms.txt)
- Installation instructions
useIAPhook basic usage- Core API signatures
- Key type definitions
- Common patterns
- Error handling basics
Full Reference (llms-full.txt)
- Complete installation and configuration guide
- Full
useIAPhook API with all options - All direct API functions with examples
- Complete type definitions
- Full error code reference
- iOS and Android platform-specific APIs
- Common implementation patterns
- Troubleshooting guide
Example Prompts
Here are some example prompts that work well with the AI documentation:
Basic Setup
Using expo-iap documentation, show me how to set up a basic store
with product fetching and purchase handling.
Subscription Implementation
How do I implement subscription purchases with expo-iap?
Include Android offer tokens handling.
Error Handling
What are all the error codes in expo-iap and how should I handle them?
Platform-Specific Features
Show me how to use iOS-specific features like refund requests
and subscription status checking in expo-iap.
Restore Purchases
How do I implement a "Restore Purchases" button with expo-iap?
Tips for Better Results
- Be specific: Mention expo-iap explicitly in your prompts
- Reference the docs: Include the documentation URL for more accurate answers
- Provide context: Mention your platform (iOS/Android) if relevant
- Ask for examples: Request code examples for practical implementation
Feedback
If you find issues with the AI documentation or have suggestions for improvement, please open an issue on GitHub.
