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

@majikah/majik-contact

v0.0.4

Published

A cryptographically secure contact and identity model for Majikah, enabling zero-trust communication using public keys, post-quantum cryptography (ML-KEM, ML-DSA), and privacy-preserving metadata. Supports serialization, identity binding, and hybrid key f

Readme

Majik Contact

Developed by Zelijah GitHub Sponsors

A lightweight, cryptographically secure contact model for building zero-trust, end-to-end encrypted systems.

@majikah/majik-contact provides a structured way to represent identities using public keys, fingerprints, and post-quantum–ready cryptography (ML-KEM, ML-DSA). It is designed for use within the Majikah ecosystem and other decentralized messaging applications.

npm npm downloads License TypeScript



Features

Individual Contacts (MajikContact)

  • Key-Based Identity: Uses public keys instead of usernames for identity verification.
  • Post-Quantum Ready: Built-in support for ML-KEM and ML-DSA standards.
  • Hybrid Key Support: Handles both WebCrypto CryptoKey objects and raw Uint8Array fallbacks.
  • Status Tracking: Native support for blocking/unblocking and Majikah registration status.

Contact Groups (MajikContactGroup)

  • Organization: Group identities by custom labels or system-reserved types (e.g., Favorites, Blocked).
  • Set Operations: Advanced membership logic including group Merging (union) and Intersection.
  • Rich Metadata: Supports descriptions and base64-normalized photo storage.
  • Serialization: Full JSON support for persistence in local storage or databases.

Installation

# Using npm
npm install @majikah/majik-contact

Usage

Managing Individual Contacts

The MajikContact class encapsulates identity data and cryptographic public keys.


import { MajikContact } from '@majikah/majik-contact';

const contact = MajikContact.create(
  "user-uuid",
  publicKey, // CryptoKey or { raw: Uint8Array }
  "ml-kem-public-key-string",
  "fingerprint-string",
  { label: "Alice", notes: "Met at the conference" }
);

// Update details
contact.updateLabel("Alice (Lead Engineer)");
contact.block();


Managing Individual Contacts

The MajikContact class encapsulates identity data and cryptographic public keys.


import { MajikContact } from '@majikah/majik-contact';

const contact = MajikContact.create(
  "user-uuid",
  publicKey, // CryptoKey or { raw: Uint8Array }
  "ml-kem-public-key-string",
  "fingerprint-string",
  { label: "Alice", notes: "Met at the conference" }
);

// Update details
contact.updateLabel("Alice (Lead Engineer)");
contact.block();

Organizing Contacts into Groups

The MajikContactGroup class manages collections of contact IDs with built-in validation.


import { MajikContactGroup } from '@majikah/majik-contact';

// Create a custom group and add members
const team = MajikContactGroup.create('group-id', 'Engineering');
team.addMember(contact.id);

// Use System Groups
const blockedList = MajikContactGroup.createBlocked();
blockedList.addMember(contact.id);

Advanced Group Operations

Perform set operations to derive new groups without manual ID management.


import { MajikContactGroup } from '@majikah/majik-contact';

// Intersection: Find contacts present in BOTH groups
const priorityContacts = MajikContactGroup.intersect([team, favorites], {
  name: "Priority Engineers"
});

// Union: Combine multiple groups into one
const allStaff = MajikContactGroup.merge([team, designGroup], {
  name: "All Staff"
});


Related Projects

Majik Message

Secure messaging platform using Majik Keys and Majik Signatures for identity-bound communication.

Read Docs · Microsoft Store

Majik Message Microsoft App Store

Majik Signature

Hybrid post-quantum content signing — the signing engine used by signContent() and signFile().

Read Docs · Microsoft Store

Majik Message Microsoft App Store

Majik Key

Seed phrase account library — required peer dependency for signing and encryption.

Read More Information

Majik Envelope

Post-quantum group encryption — used to encrypt and share private personal info.

Read More Information


Contributing

If you want to contribute or help extend support, reach out via email. All contributions are welcome!


License

Apache-2.0 — free for personal and commercial use.


Author

Made with 💙 by @thezelijah

Developer: Josef Elijah Fabian
GitHub: https://github.com/jedlsf
Project Repository: https://github.com/Majikah/majik-contact


Contact