Thanks for your interest in contributing! Here's what you need to know.
git clone https://github.com/o4s/NASA-API-Proxy.git
cd NASA-API-Proxy
git checkout -b feature/your-feature
npm install
cargo buildnpm run dev # start local dev server (http://localhost:8787)
cargo test # run tests
cargo fmt # format code
cargo clippy # lint| What | Where |
|---|---|
| New data type | src/models.rs |
| New route | handler in src/handlers.rs, register in src/lib.rs |
| Upstream NASA logic | src/nasa.rs |
| Rate limit changes | src/ratelimit.rs |
Use conventional commits:
feat(handlers): add /v2/nasa/apod/random endpoint
fix(ratelimit): handle D1 timeout gracefully
docs: update API examples for NeoWs
-
cargo testpasses -
cargo fmt -- --checkpasses -
cargo clippypasses - Documentation updated if behavior changed
- No merge conflicts with
main
Open an issue with: steps to reproduce, expected vs. actual behavior, and environment details (Rust version, wrangler version).
Do not open a public issue. See SECURITY.md.
By contributing, you agree that your contributions are licensed under the MIT License.