Skip to content

🎮 Old-school cheat codes for modern web apps

License

Notifications You must be signed in to change notification settings

mishamyrt/hesoyam

Repository files navigation

🎮 Hesoyam Quality Assurance

The library provides an engine for entering cheat codes in your web applications. For example, this is how you can hide some functionality without resorting to feature toggles or inject an easter egg.

  • Framework agnostic.
  • Zero dependencies

How does it work?

Cheat codes are encoded into a special number so that they can be kept open source without fear of easy decryption. For example:

  • hesoyam — 117499400
  • panzer — 100663304

When the listener is activated, the library records all keystrokes and calls a callback as soon as the buffer contains the necessary code.

Installation

pnpm add hesoyam

Usage

import { createCheatsListener } from 'hesoyam'

const { start } = createCheatsListener({
  onCheat: (code) => {
    console.log('Got code', code)
  },
  cheats: {
    hesoyam: 117499400,
  }
})

start()

About

🎮 Old-school cheat codes for modern web apps

Topics

Resources

License

Stars

Watchers

Forks