GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - iscc/iscc-lib: High-performance polyglot implementation of ISO 24138:2024 International Standard Content Code (ISCC): Rust core with bindings for Python, Node.js, WebAssembly, Java, Kotlin, Go, Ruby, C#, C++, Swift and C.

BranchesTags
Open more actions menu

Latest commit

 

History

2,695 Commits
2,695 Commits

Folders and files

NameName
Last commit message
Last commit date
.claude
.claude
 
 
.devcontainer
.devcontainer
 
 
.github/workflows
.github/workflows
 
 
benchmarks/python
benchmarks/python
 
 
crates
crates
 
 
docs
docs
 
 
notes
notes
 
 
overrides
overrides
 
 
packages
packages
 
 
scripts
scripts
 
 
tests
tests
 
 
tools
tools
 
 
.cargo-crap.toml
.cargo-crap.toml
 
 
.crap-baseline.json
.crap-baseline.json
 
 
.gitattributes
.gitattributes
 
 
.gitignore
.gitignore
 
 
.iai-baseline.json
.iai-baseline.json
 
 
.pre-commit-config.yaml
.pre-commit-config.yaml
 
 
CLAUDE.md
CLAUDE.md
 
 
Cargo.lock
Cargo.lock
 
 
Cargo.toml
Cargo.toml
 
 
LICENSE
LICENSE
 
 
Package.swift
Package.swift
 
 
README.md
README.md
 
 
clippy.toml
clippy.toml
 
 
deny.toml
deny.toml
 
 
mise.toml
mise.toml
 
 
pyproject.toml
pyproject.toml
 
 
uv.lock
uv.lock
 
 
zensical.toml
zensical.toml
 
 

Repository files navigation

iscc-lib

CI Ask DeepWiki

Crate PyPI npm Go Reference Gem Maven Central NuGet npm wasm

High-performance polyglot implementation of ISO 24138:2024 — International Standard Content Code (ISCC)

Key Features

  • Similarity-Preserving: Detect similar content even after modifications
  • Multi-Level Identification: Identify content at metadata, semantic, perceptual, and data levels
  • Self-Describing: Each component contains its own type and version information
  • ISO Standardized: Implements the official ISO 24138:2024 specification
  • Polyglot: Rust core with bindings for Python, Java, Go, Ruby, C#, C++, Swift, Kotlin, Node.js, WASM, and C FFI
  • Conformance-Tested: Validated against the official iscc-core reference implementation

What is the ISCC

The ISCC is a similarity-preserving fingerprint and identifier for digital media assets.

ISCCs are generated algorithmically from digital content, just like cryptographic hashes. However, instead of using a single cryptographic hash function to identify data only, the ISCC uses various algorithms to create a composite identifier that exhibits similarity-preserving properties (soft hash).

The component-based structure of the ISCC identifies content at multiple levels of abstraction. Each component is self-describing, modular, and can be used separately or with others to aid in various content identification tasks. The algorithmic design supports content deduplication, database synchronization, indexing, integrity verification, timestamping, versioning, data provenance, similarity clustering, anomaly detection, usage tracking, allocation of royalties, fact-checking, and general digital asset management use-cases.

What is iscc-lib

iscc-lib is a high-performance polyglot implementation of the ISCC core algorithms (ISO 24138). Built in Rust with language bindings for Python, Java, Go, Ruby, C#, C++, Swift, Kotlin, Node.js, WebAssembly, and C, it serves developers across multiple ecosystems who need fast, reliable content identification.

iscc-lib is conformance-tested against the official Python reference implementation iscc-core and produces identical results for all test vectors.

Note: This is a low-level codec and algorithm library. It does not include features like media-type detection, metadata extraction, or file-format-specific content extraction. For higher-level features, see iscc-sdk which builds on top of the core algorithms.

ISCC Architecture

ISCC Architecture

ISCC MainTypes

Idx Slug Bits Purpose
0 META 0000 Match on metadata similarity
1 SEMANTIC 0001 Match on semantic content similarity
2 CONTENT 0010 Match on perceptual content similarity
3 DATA 0011 Match on data similarity
4 INSTANCE 0100 Match on data identity
5 ISCC 0101 Composite of two or more components with common header

Installation

Rust Rust

cargo add iscc-lib

Python Python

pip install iscc-lib

Node.js Node.js

npm install @iscc/lib

Java Java

<dependency>
  <groupId>io.iscc</groupId>
  <artifactId>iscc-lib</artifactId>
  <version>0.8.0</version>
</dependency>

The JAR bundles the native library for Linux, macOS and Windows and loads it automatically.

Go Go

go get github.com/iscc/iscc-lib/packages/go

Ruby Ruby

gem install iscc-lib

C# / .NET C# / .NET

dotnet add package Iscc.Lib

C / C++ C / C++

Pre-built release tarballs are attached to each GitHub Release. Download for your platform — includes shared library, static library, iscc.h header, and iscc.hpp C++ wrapper.

Swift Swift

Add the package dependency to your Package.swift:

dependencies: [
    .package(url: "https://github.com/iscc/iscc-lib", from: "0.8.0"),
]

SwiftPM downloads the prebuilt XCFramework from the matching GitHub Release, so no Rust toolchain is needed.

Kotlin Kotlin

dependencies {
    implementation("io.iscc:iscc-lib-kotlin:0.8.0")
}

Requires Kotlin 2.3 or newer (the artifact is compiled with Kotlin 2.4.10; older compilers reject its metadata). The artifact bundles the native libiscc_uniffi library for Linux, macOS and Windows and pulls in JNA as a runtime dependency, which loads the library automatically.

WASM WASM

npm install @iscc/wasm

Quick Start

Rust Rust

use iscc_lib::gen_meta_code_v0;

let result = gen_meta_code_v0("ISCC Test Document!", None, None, 64).unwrap();
println!("Meta-Code: {}", result.iscc);

Python Python

import iscc_lib as ic

result = ic.gen_meta_code_v0("ISCC Test Document!")
print(f"Meta-Code: {result['iscc']}")

Node.js Node.js

const ic = require("@iscc/lib");

const iscc = ic.gen_meta_code_v0("ISCC Test Document!");
console.log(`Meta-Code: ${iscc}`);

Java Java

import io.iscc.iscc_lib.IsccLib;

String result = IsccLib.genMetaCodeV0("ISCC Test Document!", null, null, 64);
System.out.println("Meta-Code: " + result);

Go Go

package main

import (
	"fmt"
	"log"

	iscc "github.com/iscc/iscc-lib/packages/go"
)

func main() {
	result, err := iscc.GenMetaCodeV0("ISCC Test Document!", nil, nil, 64)
	if err != nil {
		log.Fatal(err)
	}
	fmt.Println("Meta-Code:", result.Iscc)
}

Ruby Ruby

require "iscc_lib"

result = IsccLib.gen_meta_code_v0("ISCC Test Document!")
puts "Meta-Code: #{result.iscc}"

C# / .NET C# / .NET

using Iscc.Lib;

var result = IsccLib.GenMetaCodeV0("ISCC Test Document!");
Console.WriteLine($"Meta-Code: {result.Iscc}");

C++ C++

#include <iscc/iscc.hpp>
#include <iostream>

int main() {
    auto result = iscc::gen_meta_code_v0("ISCC Test Document!");
    std::cout << "Meta-Code: " << result.iscc << std::endl;
}

Swift Swift

import IsccLib

let result = try genMetaCodeV0(name: "ISCC Test Document!",
                               description: nil, meta: nil, bits: 64)
print("Meta-Code: \(result.iscc)")

Kotlin Kotlin

import uniffi.iscc_uniffi.*

val result = genMetaCodeV0(
    name = "ISCC Test Document!",
    description = null,
    meta = null,
    bits = 64u
)
println("Meta-Code: ${result.iscc}")

WASM WASM

import init, {
    gen_meta_code_v0
} from "@iscc/wasm";

// Browsers and bundlers; for Node.js see the WASM how-to (initSync)
await init();
const iscc = gen_meta_code_v0("ISCC Test Document!");
console.log(`Meta-Code: ${iscc}`);

Implementors Guide

To build a conformant ISCC implementation, work through the following top-level entry-point functions:

gen_meta_code_v0
gen_text_code_v0
gen_image_code_v0
gen_audio_code_v0
gen_video_code_v0
gen_mixed_code_v0
gen_data_code_v0
gen_instance_code_v0
gen_iscc_code_v0
gen_sum_code_v0

The corresponding conformance test vectors can be found in iscc_core/data.json.

For detailed per-language API guides, see the documentation site.

Documentation

Documentation is published at https://lib.iscc.codes

Contributing

Pull requests are welcome. For significant changes, please open an issue first to discuss your plans. Please make sure to update tests as appropriate.

You may also want to join our developer chat on Telegram at https://t.me/iscc_dev.

License

Apache-2.0

Maintainers

@titusz

About

High-performance polyglot implementation of ISO 24138:2024 International Standard Content Code (ISCC): Rust core with bindings for Python, Node.js, WebAssembly, Java, Kotlin, Go, Ruby, C#, C++, Swift and C.

lib.iscc.codes/

Topics

content-identificationcppcsharpffifingerprintinggoiscciso-24138javakotlinminhashnodejsperceptual-hashingpythonrubyrustsimhashsimilarity-hashingswiftwebassembly

Resources

Readme
Apache-2.0 license
Activity
Custom properties

Stars

2 stars

Watchers

0 watching

Forks

1 fork
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.