i-am-not-a-robot
cause I can play games
Features | Installation | Usage | Demo | License
Features
Why not reCAPTCHA? Cause then you should deal with its Terms of Service and Privacy Policy: this is the main feature.
I would like to achieve the following features:
- more games: a bot can play one game, its intelligence is not multi purpouse.
- customization: cause it is fun to have your own anti spam system.
- accessibility: it would be really sad if some human would be considered a robot.
Installation
With npm do
npm install i-am-not-a-robot
or use a CDN
In case you use the dist build, you will find a global variable available: Iamnotarobot
.
Usage
Suppose you have a div like this
Then you can mount ticTacToe game with the following code. The callback will be triggered when on game end, regardeless of whether or not user win or loses.
const game = ticTacToe const callback = { // Usually you may want to enable a submit button here. }
Demo
See online demo or launch demo locally
npm installnpm run start