Catalog npm
Back to packageRELEASE DETAILS

0.1.0-alpha.0

npm

@0xintuition/classifications

Canonical Intuition classification specs and atom data builders

classificationsintuitionjson-ldschema
Published15 Jun 2026
Direct dependencies4
Transitive dependenciesNot calculated

README

Current package documentation

@0xintuition/classifications

Canonical classification specs and JSON-LD atom data builders for Intuition alpha packages.

Runtime: ESM-only. This package does not publish CommonJS require entrypoints.

Install

bun add @0xintuition/classifications@alpha

Usage

import { buildAtomData, getClassification } from '@0xintuition/classifications'

const spec = getClassification('ethereum-account')
const atomData = buildAtomData('ethereum-account', {
  address: '0x0000000000000000000000000000000000000001',
})

Each classification separates recommended atom fields from recommended triple metadata:

const book = getClassification('book')

book?.schema
// { context: 'https://schema.org/', type: 'Book' }

book?.fields.map((field) => field.schemaProperty)
// ['name', 'author', 'isbn', 'sameAs']

book?.metadataPredicates
// ['authoredBy', 'publisher', 'hasCategory', ...]

schema is a generic schema pointer. Today most public classifications point at schema.org, but the field is intentionally not named schemaOrg so other schema sources can be supported later. For schema.org-backed classifications, schemaProperty points at the canonical schema.org property name. It does not copy inheritance or provenance into the classification; consumers can derive that from @0xintuition/schema-org.

Browser Creation UIs

Use Creation Profiles for known frontend create flows. They are generated plain data artifacts that compose the classification fields, schema property provenance, metadata predicate matrix rows, and predicate IDs/labels without importing the full schema.org registry at runtime:

import { musicRecordingCreationProfile } from '@0xintuition/classifications/creation/music-recording'

musicRecordingCreationProfile.fields.map((field) => field.schema?.originType)
// ['Thing', 'MusicRecording', 'MusicRecording', 'Thing']

musicRecordingCreationProfile.relationships.map(({ predicate }) => predicate.label)
// ['by artist', 'in album', 'in playlist', 'has category', 'same as']

Root registry helpers such as getClassification(...), getMetadataPredicateMatrixFor(...), and schema.org getPropertiesFor(...) remain the dynamic server/admin/explorer/build-time APIs. Prefer Creation Profiles in browser-hot paths when the create flow targets a known classification.

The optional matrix layer adds object-target semantics for promoted metadata predicates without putting classification-specific relationships into @0xintuition/predicates:

import { getMetadataPredicateRelation } from '@0xintuition/classifications'

getMetadataPredicateRelation('music-recording', 'inPlaylist')
// {
//   expectedObjects: [
//     { kind: 'schema', context: 'https://schema.org/', type: 'MusicPlaylist' }
//   ],
//   schemaMappings: [
//     { context: 'https://schema.org/', property: 'inPlaylist', match: 'exact' }
//   ]
// }

Known classifications are also available as direct subpath imports:

import { ethereumAccount } from '@0xintuition/classifications/ethereum-account'

Ethereum and other Intuition-local classifications use immutable https://schema.intuition.systems/v1/... JSON-LD contexts and are gated on schema.intuition.systems resolving before publication.

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 4

Native requirements
4 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
@0xintuition/predicates
Environment
{
  "local_name": "@0xintuition/predicates",
  "alias": false,
  "peer_metadata": null
}
0.1.0-alpha.0development
@0xintuition/schema-org
Environment
{
  "local_name": "@0xintuition/schema-org",
  "alias": false,
  "peer_metadata": null
}
0.1.0-alpha.0development
typescript
Environment
{
  "local_name": "typescript",
  "alias": false,
  "peer_metadata": null
}
^5.9.3development
vitest
Environment
{
  "local_name": "vitest",
  "alias": false,
  "peer_metadata": null
}
^4.0.16development

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "integrity": "sha512-hExmqKtQiHBPvxBdW2Ed5FXCBS6xHYp9dwTzx6u8zAbZ4CqvzBHF9ScoVWAiZqU3Py3j4VEDsXdTR+oM5fbDfg==",
  "shasum": "bd20fd34460c517c42bb4382231dd363bc917fe1",
  "tarball": "https://registry.npmjs.org/@0xintuition/classifications/-/classifications-0.1.0-alpha.0.tgz",
  "fileCount": 249,
  "unpackedSize": 1316394,
  "signatures": [
    {
      "keyid": "SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U",
      "sig": "MEUCIQC9bJJrsM9//J9WnPPc4Hf+dWMxcTBoG+5bK78ETqGctgIgD14rDlJE1x0w8CKo7Ic/kUYMeze8vRvUu0OuMGynKLc="
    }
  ]
}

Repository

PENDING
0xintuition/packages

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 21 Oct, 08:57 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:4c5f1eb27dbbb5fb265408c3c958f93f52ef2ab7f03c8f8af994fca390b9fc4a

Other collected versions

View all collected versions →