open-captcha
v0.1.0
Published
Generative visual CAPTCHA, all rendered on the backend.
Downloads
6
Readme
[!CAUTION] This is a proof of concept and has not been tested against image recognition yet, to keep your system secure use an already prooven secure captcha. However if you have the skills or resources to run image recognition on some samples please see
examples/
for some sample outputs.
open-captcha
Open Captcha stands out from other captcha providers in a big way. Forget about connecting to external services or making your users work for free to train AI. Our approach ensures that each challenge is unique and employs the most advanced anti-ai detection methods, all while being completly self-hosted and intergrated into your web-app.
Benchmarking
version | os | cpu | gpu | runs | avg generation duration
--- | --- | --- | --- | --- | ---
1.1.x | Linux Lab 5.15.0-94-generic #104-Ubuntu SMP Tue Jan 9 15:25:40 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
| 11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz
| TigerLake-LP GT2 [Iris Xe Graphics]
| 500 | 471.93 /ms
To benchmark yourself run the script npm run benchmark
System dependencies
In most cases setting up open-captcha
from npm should just work. However, since open-captcha uses image rendering you may run into problems and you might need to adjust your system configuration and make sure all your dependencies are up to date. For general information on building native modules, see the node-gyp
documentation.
Ubuntu / Debian
- Python 3.x
- A GNU C++ environment (available via the
build-essential
package onapt
) - libxi-dev
- Working and up to date OpenGL drivers
- GLEW
- pkg-config
sudo apt-get install -y build-essential libxi-dev libglu1-mesa-dev libglew-dev pkg-config python3 python-is-python3
sudo yum install -y gcc-c++ libXi-devel mesa-libGL-devel glew-devel pkgconfig python3
Windows
- Python 3.x
- Microsoft Visual Studio
- d3dcompiler_47.dll should be in c:\windows\system32, but if isn't then you can find another copy in the
deps/
dir