Source code and content for the Flare Developer Hub - Flare’s documentation site for builders ☀️.
Built with Docusaurus, a modern static site generator.
Note: This repository is intended for contributors and maintainers. If you just want to read the docs, visit dev.flare.network.
- Node.js v22 and npm
- Recommended: nvm to manage Node versions
- (Optional) For language-specific code in examples:
git clone https://github.com/flare-foundation/developer-hub.git
cd developer-hub
npm ci
npm run startThis starts a local development server with hot reloading and opens the site in your browser.
flare-foundation/developer-hub/
├── .github/ # GitHub Actions workflows, issue templates, etc.
├── automations/ # Scripts + generated data (feeds, addresses, tables).
├── docgen/ # Tooling for auto-generating Solidity documentation.
├── docs/ # Core documentation content (MD/MDX).
├── examples/ # Multi-language examples (Python/Rust/Go/Solidity).
├── src/ # Docusaurus custom components, pages, styles, overrides.
├── static/ # Static assets (images, PDFs, OpenAPI specs).
├── CONTRIBUTING.md # Contribution guidelines.
├── docusaurus.config.ts # Docusaurus site configuration.
└── sidebars.ts # Sidebar structure.
Some features (for example, search and production-only behavior) only work correctly against a production build.
npm run build && npm run servebuildoutputs the static site tobuild/serveserves the built output locally
Run Prettier for docs and site code:
npm run formatLanguage-specific examples use their native tooling:
- Go →
gofmt - Rust →
cargo fmt - Python →
ruff format(and/orruff checkdepending on the example)
Note: Prettier support for MDXv3 is evolving (tracking issue). To skip formatting for a section:
{/* prettier-ignore */}
The examples/ directory contains language-specific projects.
Each subdirectory includes its own README.md with setup and run instructions.
Supported languages:
- Python
- JavaScript/TypeScript
- Rust
- Go
Automations update generated content used by tables/components (for example, contract addresses and feed metadata).
This will update ftso_feeds.json and solidity_reference.json in src/features/DataTables/*.
npm run automationsTo update dependencies across the language example projects:
npm run update-depsCaution: After running update-deps, run the relevant example test/build steps to ensure nothing regressed.
The Solidity doc generator currently requires Node 18.
nvm use 18
cd docgen
chmod +x generate-solidity-docs.sh
./generate-solidity-docs.sh
# Return to the main site toolchain
cd ..
nvm use 22This pulls the latest smart contracts and regenerates the Solidity reference docs.
We welcome contributions of all sizes - from typo fixes to major improvements.
- Read CONTRIBUTING.md.
- Create a feature branch:
git checkout -b feat/your-feature-name
- Make your changes and run the Pre-PR checks.
- Push and open a PR following the pull request guidelines.