
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.
Compact identity footprint
This is a TypeScript library for building a simple contact data footprint as a hash. It's working in both the browser and a NodeJS environment.
For anyone who needs to have consistent ways to compare identity data.
The Peeel™ algorithm is used to create a unique string from complementary data of a contact data (like in the hashData field of the Controllers in the Fruuut™ and Rooot™ systems).
It follows the rules below:
dob+firstname);The result passed to the hashData field is the hexadecimal string representation of the returned hash.
As of this version, the available complementary data are the following:
dob: a date of birth (respecting the ISO format, ie. YYYYMMDD);gender: 1 for male, 2 for female, or 0 for unknown;firstname: a first name;lastname: a last name;middle: the middle names or initials (eg. the F. in John F. Kennedy).For further details, you might want to check our white paper.
npm i peeel
import { build, complementariesToString, FIRST_NAME, LAST_NAME, parseComplementaries, Source } from 'peeel'
const firstname: Source = {
data: 'John',
complementary: FIRST_NAME
}
const dob: Source = {
data: '20000101',
complementary: DATE_OF_BIRTH
}
const [hashData, compl] = build([firstname, dob])
// ae76d56055a9acb1fddde77074dcf5353724cb0f6bcb64110f698b19c34be32b
console.log(hashData)
const complStr = complementariesToString(compl)
// firstname+dob
console.log(complStr)
const complementaries = parseComplementaries(complStr)
console.assert(complementaries === compl)
This library relies on the following dependency:
Besides, to run the tests, you would need to install live-server:
npm i -g live-server
NB: Change the port number if it's alreayd in use on your machine.
This module is distributed under a MIT license.
See the LICENSE file.
FAQs
Compact data footprint
The npm package peeel receives a total of 11 weekly downloads. As such, peeel popularity was classified as not popular.
We found that peeel demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 open source maintainers 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.