All Projects → napa3um → Node Captcha

napa3um / Node Captcha

Licence: mit
Simple captcha for Node.JS and Express.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Node Captcha

Captcha
Go package captcha implements generation and verification of image and audio CAPTCHAs.
Stars: ✭ 1,321 (+916.15%)
Mutual labels:  captcha
Meetup Api
meetup-api is an Meetup.com API library written in JavaScript for Node.js V8 and Node.js ChakraCore
Stars: ✭ 104 (-20%)
Mutual labels:  node-module
Github Label Sync
Synchronise your GitHub labels with as few destructive operations as possible
Stars: ✭ 115 (-11.54%)
Mutual labels:  node-module
Fnv1a
FNV-1a non-cryptographic hash function
Stars: ✭ 101 (-22.31%)
Mutual labels:  node-module
Dynamodb Oop
Speak fluent DynamoDB, write code with fashion, I Promise() 😃
Stars: ✭ 104 (-20%)
Mutual labels:  node-module
Protoo
Minimalist and extensible Node.js signaling framework for multi-party Real-Time applications
Stars: ✭ 109 (-16.15%)
Mutual labels:  node-module
Mastodon Api
Mastodon API Client Library
Stars: ✭ 89 (-31.54%)
Mutual labels:  node-module
Captcha
基于CNN的验证码整体识别
Stars: ✭ 125 (-3.85%)
Mutual labels:  captcha
Express Recaptcha
Implementation of google recaptcha v2 & V3 solutions for express.js
Stars: ✭ 104 (-20%)
Mutual labels:  captcha
Ngx Captcha
ReCaptcha components for Angular. Live preview:
Stars: ✭ 115 (-11.54%)
Mutual labels:  captcha
Captcha
PHP Captcha library
Stars: ✭ 1,382 (+963.08%)
Mutual labels:  captcha
Captchouli
booru-backed procedurally-generated anime image captcha library and server
Stars: ✭ 104 (-20%)
Mutual labels:  captcha
P Queue
Promise queue with concurrency control
Stars: ✭ 1,863 (+1333.08%)
Mutual labels:  node-module
Async Ray
Provide async/await callbacks for every, find, findIndex, filter, forEach, map, reduce, reduceRight and some methods in Array.
Stars: ✭ 102 (-21.54%)
Mutual labels:  node-module
Update Notifier
The idea for this module came from the desire to apply the browser update strategy to CLI tools, where everyone is always on the latest version. We first tried automatic updating, which we discovered wasn't popular. This is the second iteration of that idea, but limited to just update notifications.
Stars: ✭ 1,594 (+1126.15%)
Mutual labels:  node-module
Artnet
Send ArtDMX to an Art-Net node (DMX512, Stage Lighting) 💡🎬
Stars: ✭ 91 (-30%)
Mutual labels:  node-module
No Captcha
No CAPTCHA reCAPTCHA For Laravel.
Stars: ✭ 1,484 (+1041.54%)
Mutual labels:  captcha
Html Metadata
MetaData html scraper and parser for Node.js (supports Promises and callback style)
Stars: ✭ 129 (-0.77%)
Mutual labels:  node-module
Pm2 Slack
A PM2 module to emit events to Slack
Stars: ✭ 124 (-4.62%)
Mutual labels:  node-module
Fileuploader
Beautiful and powerful HTML file uploading tool. A jQuery, PHP and Node.js plugin that transforms the standard input into a revolutionary and fancy field on your page.
Stars: ✭ 111 (-14.62%)
Mutual labels:  node-module

Captcha

Simple captcha for Express.

WARNING! New API (0.0.5 -> 0.1.0)

Installation

Via npm:

$ npm install captcha

Usage (for Express 4)

'use strict'

const express = require('express')
const session = require('express-session')
const bodyParser = require('body-parser')

const captchaUrl = '/captcha.jpg'
const captchaId = 'captcha'
const captchaFieldName = 'captcha'

const captcha = require('./captcha').create({ cookie: captchaId })

const app = express()
app.use(session({
    secret: 'keyboard cat',
    resave: false,
    saveUninitialized: true,
}))
app.use(bodyParser.urlencoded({ extended: false }))

app.get(captchaUrl, captcha.image())

app.get('/', (req, res) => {
    res.type('html')
    res.end(`
        <img src="${ captchaUrl }"/>
        <form action="/login" method="post">
            <input type="text" name="${ captchaFieldName }"/>
            <input type="submit"/>
        </form>
    `)
})

app.post('/login', (req, res) => {
    res.type('html')
    res.end(`
        <p>CAPTCHA VALID: ${ captcha.check(req, req.body[captchaFieldName]) }</p>
    `)
})

app.listen(8080, () => {
    console.log('server started')
})
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].