Skip to content

Contributing

Thank you for your interest in contributing to SaltyKeys.js! This project welcomes bug reports, documentation improvements, and pull requests.

Before opening a new issue, please search existing issues to avoid duplicates.

When reporting a bug, include:

  • The browser and version where the issue occurs
  • The CodePen URL (if applicable)
  • Steps to reproduce the problem
  • Expected vs. actual behaviour
  • Any console errors

Open a bug report →

Feature requests and documentation improvements are welcome. Open an issue describing what you’d like to see and why it would be useful.

SaltyKeys.js itself (SaltyKeys.js in the repository root) is a single file with no build step. The docs/ subdirectory is the Astro + Starlight documentation site.

The library file is SaltyKeys.js. Edit it directly and test manually in a CodePen or browser console. There is currently no automated test suite — if you add one, that’s a welcome contribution.

  1. Clone the repository

    Terminal window
    git clone https://github.com/peterbenoit/SaltyKeys.js.git
    cd SaltyKeys.js
  2. Install docs dependencies

    Terminal window
    cd docs && npm install
  3. Start the dev server

    Terminal window
    npm run dev
    # → http://localhost:4321
  4. Make your changes to files in docs/src/content/docs/

  5. Verify the build passes

    Terminal window
    npm run build

    The build must complete with zero errors.

  • Keep changes focused — one logical change per PR
  • For documentation: check spelling, test any code samples, verify links work
  • For library changes: describe what the change does and why, and note any behaviour changes
  • Follow the existing code style (tabs, single quotes)
  • Update CHANGELOG.md under [Unreleased] with a brief description of your change

This project follows the Contributor Covenant Code of Conduct. By participating, you agree to abide by its terms.