This is the ar-io/docs repository, which manages the documentation for the ar.io Developer Platform. It references various services, SDKs and tools for building on and with ar.io. It also includes documentation for interacting with ArDrive - a flagship consumer dApp that stores data on Arweave.
This repository is built with Fumadocs, a documentation framework. The general architecture is as follows:
All UI should use Fumadocs available UI components by default. This ensures consistency with the framework's design system and maintains a cohesive user experience throughout the documentation.
All icons should use lucide-react for consistency across the documentation site.
- Linting:
npm run lint- Run ESLint to check code quality - Type checking:
npm run typecheck- Run TypeScript type checking - Development server:
npm run dev- Start the development server - Build:
npm run build- Build the documentation site
/content/- Main documentation content/content/docs/- Core documentation pages/content/api/- API documentation/content/guides/- User guides and tutorials
/public/- Static assets/src/- Source code for documentation site/scripts/- Build and utility scripts
- Documentation is written in MDX format (Markdown with JSX)
- Use semantic headings (H1 for page title, H2 for main sections, etc.)
- Include code examples with proper syntax highlighting
- Add metadata frontmatter to all documentation pages
- Follow existing documentation patterns and structure
These docs intend to model documentation sites of well-established platforms like Stripe, Coinbase, and ChatGPT - where users can natively find things logically, and patterns are consistent throughout. Key principles:
- Logical information architecture
- Consistent navigation patterns
- Clear categorization of content
- Predictable documentation structure
- User-friendly search and discovery
The repository supports OpenAPI documentation import (see recent commit 33af22f2e). When working with API documentation:
- OpenAPI specs should be properly formatted YAML or JSON
- Use the import scripts to convert OpenAPI to documentation format
- Maintain consistency with existing API documentation structure
- Main branch:
main - Create feature branches for new work
- Use descriptive commit messages
- Run linting and type checking before committing
- Discord: https://discord.com/invite/HGG52EtTc2 - Join the ar.io community for updates and discussions
- This is a documentation repository - focus on content clarity and accuracy
- Always verify technical details match the actual ar.io implementation
- Maintain consistent terminology throughout documentation
- Test all code examples before including them in documentation
- Access Data Documentation: Restructured
/content/build/access/pages with consistent patterns:- Updated index.mdx to show three access methods (Find Data, Fetch Data, ArNS) with enhanced cards
- Renamed and reorganized find-data.mdx (GraphQL) and fetch-data.mdx (REST API) for clarity
- Enhanced ArNS documentation with practical SDK examples
- Used native Fumadocs cards with icons for consistency
- Replaced axios with fetch API in all examples
- Added proper call-to-action sections directing users to next steps
- Upload Data Documentation: Enhanced
/content/build/upload/index.mdxwith native cards and clear Turbo recommendation - Code Standards:
- Use
fetchinstead ofaxiosfor HTTP requests - Use
ARIO.mainnet()from '@ar.io/sdk' for ArNS operations - Call
setRecordon ANT instances, not ARIO instances - ArNS undernames use underscores (e.g.,
api_myapp.arweave.net) not periods
- Use