Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

adinkra-math

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

adinkra-math

West African symbolic encoding + SUSY adinkras for the browser — TypeScript/npm port of adinkra-math

latest
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

adinkra-math

West African symbolic encoding + SUSY adinkras for the browser — TypeScript/npm port.

Bridges two meanings of "adinkra":

  • West African (Akan) visual symbols encoding philosophical concepts
  • Physics adinkras — graphical tools for studying representations of supersymmetry algebras

Install

npm install adinkra-math

API

Symbol

import { createSymbol, getBuiltinSymbols, SymbolType } from 'adinkra-math';

const circle = createSymbol(SymbolType.CIRCLE, 0, 0, 40);
const builtins = getBuiltinSymbols(); // 9 built-in: Gye Nyame, Sankofa, Fawohodie, ...

Glyph Composition

import { compose, CompositionOp } from 'adinkra-math';

const stacked = compose(glyph1, glyph2, CompositionOp.STACK);
const nested = compose(glyph1, glyph2, CompositionOp.NEST);

Encoding

import { encodeConcept, distance, nearestConcept, knn } from 'adinkra-math';

const wisdom = encodeConcept('wisdom', 6);
const strength = encodeConcept('strength', 6);
const d = distance(wisdom, strength);

Supersymmetry

import { createAdinkra, verifyChromotopology, bosonFermionSplit } from 'adinkra-math';

const adinkra = createAdinkra(4); // rank-4: 8 nodes, 16 edges
const valid = verifyChromotopology(adinkra); // true
const { bosons, fermions } = bosonFermionSplit(adinkra);

Topology

import { connectedComponents, eulerCharacteristic, genus, makeTopoGraph, topoAddEdge } from 'adinkra-math';

const g = makeTopoGraph(4);
topoAddEdge(g, 0, 1);
const cc = connectedComponents(g);
const chi = eulerCharacteristic(4, 6, 4); // 2
const gen = genus(chi); // 0

License

MIT

Keywords

adinkra

FAQs

Package last updated on 01 Jun 2026

Did you know?

Socket

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.

Install

Related posts