
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
A javascript library that helps you create models in your applications.
Using npm:
$ npm install --save vapi
In Node.js:
// /app/models/MyModel.js
const {Model} = require('vapi')
class Person extends Model {}
// Define properties to Person model.
Person.defineProperty('first', { alias: 'name' })
Person.defineProperty('name', {
transform: require('lodash/toLower')
})
class User extends Model {}
// Define properties to User model.
User.defineProperties({
'username': {
transform: require('lodash/toLower')
},
'password': {
validation: (v) => /^[a-z|0-9]{9,15}$/.test(v)
},
'person': {}
})
// Create an instance of the User model.
const cat = new User({
username: 'UserA',
password: '1234', // Bad Password
person: new Person({
name: 'Julio'
})
})
// Validation
if (cat.isValid()) {
// you code if is valid.
} else {
// you code of is not valid.
}
// End Cat state
// cat =>
// {
// "username": "usera",
// "password": "1234",
// "person": {
// "first": "julio",
// "name": "julio"
// }
// }
Vapi (Virtual API) is an open brand whereby this not have a restriction in you use. However it is suggested to use this with the following specifications.
Vapi: The first letter uppercase.vapi: all letters on lowercase.vapi.js: Specific the javascript extension.This project is under a MIT License.
FAQs
A javascript library that helps you create models in your applications.
The npm package vapi receives a total of 281 weekly downloads. As such, vapi popularity was classified as not popular.
We found that vapi demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.