We're excited you want to contribute and help improve the Flare Developer Hub. Your contributions make our documentation, tooling, and examples better for everyone.
We welcome contributions via:
- GitHub Issues: Report bugs, suggest features, or ask questions.
- Pull Requests (PRs): Submit fixes, improvements, or new content (documentation, examples, site features).
-
Make Changes: Edit or add documentation (
docs/), source code (src/), examples (examples/), or automation scripts (automations/,docgen/) after forking and creating a new branch:git checkout -b feature/your-feature-name
-
Follow Style Guides:
- Code/Docs: Run
npm run formatto apply Prettier formatting. Match existing code style. - Diagrams: Adhere to the Diagram Style Guide below for consistency.
- Code/Docs: Run
-
Commit Your Changes: We require the Conventional Commits format for clear history and automated changelogs.
Format:
<type>(<scope>): <description>Common Types:
Type Description featNew feature fixBug fix docsDocumentation updates choreMaintenance tasks (build, deps) testAdding or improving tests refactorCode improvements without feature changes styleFormatting changes (whitespace, etc.) ciCI pipeline changes Example:
git commit -m "fix(ftso): correct feed ID example in getting started guide" git commit -m "feat(src): add copy button to code blocks" git commit -m "docs(fassets): clarify liquidation process diagram"
-
Push to Your Fork:
git push origin feature/your-feature-name
-
Open a Pull Request (PR): Submit a PR against the
mainbranch of theflare-foundation/developer-hubrepository.
- ✅ Keep PRs Small & Focused: One logical change per PR.
- ✅ Discuss Large Changes First: Open an issue to discuss significant changes before starting work.
- ✅ Provide Context: Clearly describe the problem and solution in your PR description. Link relevant issues.
- ✅ Ensure Tests & CI Pass: Fix any failures reported by GitHub Actions. Run tests locally if applicable (especially for
examples/). - ✅ Update Documentation: If your change affects functionality or usage, update relevant documentation.
- ✅ Confirm Licensing: By submitting a PR, you agree to license your contribution under the project's license.
For consistency, follow these styles when creating or updating diagrams:
| Element | Light Mode | Dark Mode | Notes |
|---|---|---|---|
| Arrow Width | 1px |
1px |
|
| Arrow Color | #595959 |
#ffffff |
|
| Border Width | 1px |
1px |
|
| Border Color (Highlight) | #e62058 |
#e62058 |
Use for emphasis |
| Border Color (Normal) | #595959 |
#ffffff |
Default border |
| Onchain Border Style | Solid |
Solid |
|
| Offchain Border Style | Dashed |
Dashed |
_Use only if mixing onchain and offchain elements |
See the architecture diagram on the homepage as an example.
If you get stuck or have questions, feel free to ask in a GitHub Issue.
Thank you for contributing!