Thank you for your interest in contributing! This repository contains sample applications and code examples that accompany Quicknode's technical guides and the sample app library.
We welcome contributions from the community to help expand and improve these examples.
- Fork and clone the repository:
git clone https://github.com/quiknode-labs/qn-guide-examples.git
cd qn-guide-examples- Install the pre-commit hook for automatic directory updates:
ln -s ../../scripts/pre-commit-tree.sh .git/hooks/pre-commitPlace your example in the appropriate category folder. If no category fits, create a new folder or open an issue to discuss.
mkdir -p category/your-project-name
cd category/your-project-nameEvery project should include:
Use TEMPLATE_README.md as your starting point. Include:
- Clear title (as
# Titleon the first line) - Brief description of what the example demonstrates
- Prerequisites
- Step-by-step setup instructions
- How to run the example
- Link to the related Quicknode guide (if applicable)
If applicable, include a description field (this appears in the project directory):
{
"name": "your-project-name",
"version": "1.0.0",
"description": "Brief one-line description of what this example does"
}- Keep examples focused - Demonstrate one concept well rather than everything at once
- Use environment variables - Never commit API keys or secrets
- Include a
.env.example- Show required environment variables - Add comments - Explain non-obvious code, especially blockchain-specific logic
- Test your example - Ensure it works with a fresh clone
When you commit, the pre-commit hook automatically updates the project directory in README.md. This ensures the directory is always up-to-date.
git add .
git commit -m "Add example for XYZ"If the directory was updated, you'll be prompted to stage the changes:
git add README.md
git commit -m "Add example for XYZ"- Make your changes
- Update the README if behavior changed
- Test the example still works
- Submit a pull request with a clear description of changes
- One example per PR - Makes review easier
- Clear PR title - e.g., "Add Uniswap V4 swap example"
- Link related issues - If applicable
- Test locally - Ensure the example runs successfully
The project directory in README.md is auto-generated. Do not edit it manually.
If you configured the pre-commit hook during Setup, this list updates automatically on every commit.
To trigger an update manually, run:
npm run generate-directoryThe directory pulls:
- Title from the first
# Headingin the sub-folder's README.md - Description from
package.json'sdescriptionfield
Found a bug or have a suggestion?
- Bugs: Open an issue with steps to reproduce
- New example ideas: Open an issue to discuss before implementing
- Documentation gaps: PRs welcome!
Be respectful and constructive. We're all here to learn and build.
- Check Quicknode Docs
- Join the Quicknode Discord
- Open a GitHub issue
Thank you for contributing! 🚀