npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

verify5-vue

v2.6.1

Published

V5行为验证-Vue插件. V5验证是新一代的客户端识别及验证码控件,通过多项智能检测及分析黑科技,识别恶意刷单脚本和机器人(Robot),帮助企业应用和互联网平台构筑数据安全防线

Readme

V5行为验证Vue组件使用说明

验证流程

下图是简单验证流程: 验证流程

V5采取二次验证机制,通过前端采集终端特征和用户行为,提交到后台智能引擎动态进行行为验证(首次验证),当验证通过时生成一次性票据(verifyId)并返回给前端,前端提交verifyId至业务后台,后台再将verifyId提交给验证服务器进行核销(二次验证)。业务后台通过对verifyId的有效性判断实现防刷保护。

实际开发时,应该在应用服务端通过API获得token,具体参考: 官网文档-详细对接

下图是更详细的验证流程: 更详细的验证流程

准备工作

V5验证运行最少需要两个参数:host和token,这两个参数均和应用有关。可以到官网注册并创建应用(基础套餐免费,500次防护/天)。

注册

注册入口:https://www.verify5.com/register 用户注册

创建应用

注册成功后,进入Verify5控制台后台,点击“应用管理”菜单,点“创建”按钮根据指引新增应用。 创建应用 应用信息

安装

可以直接使用npm安装

npm install verify5-vue --save

使用方法

V5提供两个Vue组件,分别是V5Dialog和V5Button.V5Dialog提供编程式的验证能力,而V5Button提供一个默认的验证按钮实现。

V5Dialog

V5Dialog是一个模态窗口组件,需先在Vue页面声明引用,并在需要时通过verify方法唤出验证。

<template>
...
    <V5Dialog ref="v5dialog" host="应用的host" token="应用的token"/>
...
</template>

需要验证时,在标签中请求verify:

···

···

可以通过回调方式对现有代码进行包装验证,例如:

function foo(){
	bar();
}

可以这样封装:

function foo(){
	this.$refs.v5dialog.verify(function(result){
		if(result.success){
			var verifyId=result.verifyId;
			bar(verifyId);
		}
	});
}

V5Button

V5Button可用于既有表单的快速植入,并内置一个组件存放verifyId,V5Button的效果如下: V5Button

只需少数几行代码即可植入V5Button:

<template>
...
	<V5Button name="v5" host="应用的host" token="应用的token"/> <!-- name代表了组件的表单域名称,必填 -->
...
</template>
<script>
import {V5Button} from 'verify5-vue';
export default {

	components:{
		V5Button
	}
}
</script>

更多资料

  • V5验证官网 (https://www.verify5.com).
  • GitHub (https://github.com/verify5)
  • CSDN文章 (https://blog.csdn.net/jarez)
  • uni-app插件(https://ext.dcloud.net.cn/plugin?id=890)