World-class developer documentation for the {xpay✦} ecosystem and x402 protocol
This repository contains the official documentation for {xpay✦}, the leading platform for autonomous AI agent payments built on the x402 protocol. Our documentation covers:
- x402 Protocol - The foundation for autonomous payments
- Smart Proxy - Cost control and spending limits for AI agents
- Paywall-as-a-Service - API monetization made simple
- Transaction Explorer - Real-time payment monitoring and analytics
- Developer Resources - SDKs, code examples, and integration guides
- Node.js >= 20.x
- npm or pnpm
- Git
# Clone the repository
git clone https://github.com/xpaysh/docs.git
cd docs
# Install dependencies
npm install
# or
pnpm install
# Start development server
npm run dev
# or
pnpm devOpen http://localhost:8000 to view the documentation site.
- Framework: Next.js 15 with App Router
- Documentation: Nextra 4
- Styling: TailwindCSS 4
- Components: Shadcn UI
- Language: TypeScript
- Build Tool: Turbopack
- Deployment: Vercel
├── src/
│ ├── content/ # Documentation content
│ │ ├── en/ # English documentation
│ │ └── zh/ # Chinese documentation
│ ├── components/ # React components
│ ├── app/ # Next.js app directory
│ └── lib/ # Utilities and configurations
├── public/ # Static assets
│ ├── logo-*.png # {xpay✦} logos
│ └── favicon.ico # Site favicon
└── package.json # Dependencies and scripts
We welcome contributions to improve our documentation! Here's how you can help:
- Fix typos and errors - Submit a PR with corrections
- Add examples - Provide real-world code examples
- Improve explanations - Make complex concepts clearer
- Translate content - Help with localization
# Fork and clone the repository
git clone https://github.com/YOUR_USERNAME/docs.git
cd docs
# Create a new branch
git checkout -b feature/improve-documentation
# Make your changes
# ...
# Commit and push
git add .
git commit -m "docs: improve x402 protocol explanation"
git push origin feature/improve-documentation
# Create a Pull Request- Create MDX files in
src/content/en/orsrc/content/zh/ - Update the corresponding
_meta.tsfile to add navigation - Follow our content style guide
Our documentation supports multiple languages:
- English (
/en) - Primary language - Chinese (
/zh) - Simplified Chinese
To add a new language:
- Create a new directory in
src/content/ - Add the locale to
next.config.ts - Translate the content and navigation
The documentation is automatically deployed to production when changes are pushed to the main branch.
# Build for production
npm run build
# Export static files (if needed)
npm run export
# Start production server
npm start- Search: Built-in search powered by Nextra
- Performance: Optimized with Next.js and Turbopack
- SEO: Meta tags and structured data included
- Accessibility: WCAG compliant components
- Documentation Issues: GitHub Issues
- General Support: Discord Community
- Developer Help: GitHub Discussions
This project is licensed under the MIT License - see the LICENSE file for details.
Built with ❤️ by the {xpay✦} team and Nextra template.
Ready to build with {xpay✦}? Visit our getting started guide to begin your journey with autonomous AI payments.