Skip to content

Feature: Upvote system #109

Open
Open

Description

@webgtx

Can you please add an upvote system? That would be really helpful for the beginners.

Activity

  1. precondition commented on Jan 3, 2026

    @precondition
    Owner

    The website is hosted on GitHub pages meaning that it is a static website without a proper backend that can run a database or something, so sending the upvote action and storing the upvotes would have to be delegated to a third-party via JavaScript calls (periodic rebuilds of the website could eventually update the upvote stats for users with disabled JavaScript).

    However, what could be more problematic is determining the identity of the user to avoid multiple upvotes for the same keymap coming from the same user and remembering the user's actions (so that future visits of the user X will still show the keymaps (s)he has upvoted in the past with a filled-in star symbol or something). Creating full-blown user accounts would be overkill. The most straightforward would be to group upvotes by IP address but VPNs throw a wrench in the works. Browser fingerprinting is another possible avenue but at the end of the day, I think I'll be most limited by what the third-party data storage solutions offer.

  2. webgtx commented on Jan 3, 2026

    @webgtx
    Author

    Here is my idea, link related pull request to each keymap, and then count 👍 and 👎 reactions via github api during CI. I might help with the implemention if you like this.

  3. precondition commented on Jan 3, 2026

    @precondition
    Owner

    Unfortunately, most keymaps were added by me without going through a pull request every time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions