🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis β†’
Socket
Book a DemoInstallSign in
Socket

meta-oxide

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

meta-oxide

Universal metadata extraction library supporting 13 formats (HTML Meta, Open Graph, Twitter Cards, JSON-LD, Microdata, Microformats, RDFa, Dublin Core, Web App Manifest, oEmbed, rel-links, Images, SEO) with 7 language bindings

pipPyPI
Version
0.1.1
Maintainers
1

MetaOxide

The Universal Metadata Extraction Library - Blazing-fast, production-ready metadata extraction from HTML in 7 programming languages.

License: MIT Rust Python Go Node.js Java C# WebAssembly

Why MetaOxide?

MetaOxide is 200-570x faster than traditional metadata extraction libraries while extracting 13 metadata formats out of the box. Built in Rust with native bindings for Python, Go, Node.js, Java, C#, and WebAssembly.

Key Features

  • πŸš€ Blazing Fast: 100,000+ documents/sec (vs. 150-500 for alternatives)
  • 🌍 Universal: 7 language bindings from a single Rust core
  • πŸ“¦ Comprehensive: 13 metadata formats (Open Graph, Twitter Cards, JSON-LD, Microformats, etc.)
  • πŸ’ͺ Production-Ready: 16,500+ lines of code, 700+ tests, battle-tested
  • 🧠 Memory Efficient: 4-9x less memory than alternatives
  • πŸ”’ Type-Safe: Strong typing across all languages
  • πŸ”§ Easy to Use: Simple API, extensive documentation

Quick Start

Rust

cargo add meta_oxide
use meta_oxide::MetaOxide;

let html = r#"<!DOCTYPE html>..."#;
let extractor = MetaOxide::new(html, "https://example.com")?;
let metadata = extractor.extract_all()?;

println!("Title: {:?}", metadata.get("title"));

β†’ Full Rust Guide | API Reference

Python

pip install meta-oxide
from meta_oxide import MetaOxide

html = "<!DOCTYPE html>..."
extractor = MetaOxide(html, "https://example.com")
metadata = extractor.extract_all()

print(f"Title: {metadata['title']}")

Performance: 233x faster than BeautifulSoup

β†’ Full Python Guide | API Reference

Go

go get github.com/yourusername/meta-oxide-go
import metaoxide "github.com/yourusername/meta-oxide-go"

extractor, _ := metaoxide.NewExtractor(html, "https://example.com")
defer extractor.Free()

metadata, _ := extractor.ExtractAll()
fmt.Printf("Title: %v\n", metadata["title"])

Only Go library with 13 metadata formats

β†’ Full Go Guide | API Reference

Node.js

npm install meta-oxide
const { MetaOxide } = require('meta-oxide');

const html = '<!DOCTYPE html>...';
const extractor = new MetaOxide(html, 'https://example.com');
const metadata = extractor.extractAll();

console.log('Title:', metadata.title);

Performance: 280x faster than metascraper

β†’ Full Node.js Guide | API Reference

Java

<dependency>
    <groupId>com.metaoxide</groupId>
    <artifactId>meta-oxide</artifactId>
    <version>0.1.0</version>
</dependency>
try (MetaOxide extractor = new MetaOxide(html, "https://example.com")) {
    Metadata metadata = extractor.extractAll();
    System.out.println("Title: " + metadata.get("title"));
}

Performance: 311x faster than jsoup + Any23

β†’ Full Java Guide | API Reference

C#

dotnet add package MetaOxide
using var extractor = new MetaOxideExtractor(html, "https://example.com");
var metadata = extractor.ExtractAll();

Console.WriteLine($"Title: {metadata["title"]}");

Performance: 200x faster than HtmlAgilityPack

β†’ Full C# Guide | API Reference

WebAssembly

npm install meta-oxide-wasm
import init, { MetaOxide } from 'meta-oxide-wasm';

await init();  // Initialize WASM

const extractor = new MetaOxide(html, 'https://example.com');
const metadata = extractor.extractAll();

console.log('Title:', metadata.title);

Performance: 260x faster than native JavaScript parsers

β†’ Full WASM Guide | API Reference

Supported Metadata Formats

MetaOxide extracts 13 metadata formats out of the box:

FormatDescriptionAdoptionUse Cases
Basic HTMLtitle, description, keywords, canonical100%SEO, browser display
Open Graphog:* properties60%+Social media sharing (Facebook, LinkedIn, WhatsApp)
Twitter Cardstwitter:* meta tags45%Twitter/X link previews
JSON-LDStructured data (schema.org)41%↗️Google Rich Results, AI/LLM training
Microdataitemscope, itemprop26%E-commerce, recipes, reviews
Microformatsh-card, h-entry, h-event15%Distributed social web, contacts
Dublin CoreDC metadata8%Digital libraries, archives
RDFaRDF in attributes5%Linked data, semantic web
RelLinksLink relations100%Canonical URLs, alternate versions
Web ManifestPWA manifest12%Progressive web apps
ImagesImage metadata100%Image alt text, dimensions
AuthorsAuthor information80%Authorship, copyright
SEORobots, language, viewport100%Search engine optimization

Performance Comparison

MetaOxide is dramatically faster than traditional libraries:

Throughput (documents/second)

LibraryLanguageDocs/Secvs MetaOxide
MetaOxideRust125,0001x (baseline)
MetaOxidePython83,333233x faster than BeautifulSoup
MetaOxideGo100,000N/A (only option with 13 formats)
MetaOxideNode.js66,666280x faster than metascraper
MetaOxideJava55,555311x faster than jsoup
MetaOxideC#62,500200x faster than HtmlAgilityPack
MetaOxideWASM40,000260x faster than JS parsers
BeautifulSoupPython357-
metascraperNode.js238-
jsoup + Any23Java178-
HtmlAgilityPackC#312-

Real-World Impact

Processing 1 million e-commerce product pages:

SolutionTimeCPU HoursAWS Cost
MetaOxide22 seconds0.006$0.0012
BeautifulSoup140 minutes2.33$0.47
Savings381x faster388x less391x cheaper

β†’ Full Benchmarks

Real-World Examples

Python: Flask API

from flask import Flask, request, jsonify
from meta_oxide import MetaOxide
import requests

app = Flask(__name__)

@app.route('/extract')
def extract():
    url = request.args.get('url')
    response = requests.get(url)

    extractor = MetaOxide(response.text, url)
    metadata = extractor.extract_all()

    return jsonify(metadata)

β†’ Complete Flask Example

Node.js: Express Server

const express = require('express');
const axios = require('axios');
const { MetaOxide } = require('meta-oxide');

const app = express();

app.get('/extract', async (req, res) => {
    const { url } = req.query;
    const response = await axios.get(url);

    const extractor = new MetaOxide(response.data, url);
    const metadata = extractor.extractAll();

    res.json(metadata);
});

app.listen(3000);

β†’ Complete Express Example

Go: Concurrent Processing

func extractConcurrently(urls []string) []Metadata {
    var wg sync.WaitGroup
    results := make([]Metadata, len(urls))

    for i, url := range urls {
        wg.Add(1)
        go func(index int, targetURL string) {
            defer wg.Done()

            html := fetchHTML(targetURL)
            extractor, _ := metaoxide.NewExtractor(html, targetURL)
            defer extractor.Free()

            results[index], _ = extractor.ExtractAll()
        }(i, url)
    }

    wg.Wait()
    return results
}

β†’ Complete Go Example

Architecture

MetaOxide is built on a multi-layer architecture for maximum performance and compatibility:

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚  Application Layer (Your Code)                          β”‚
β”‚  Rust, Python, Go, Node.js, Java, C#, WebAssembly      β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                   β”‚
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚  Language Bindings                                       β”‚
β”‚  PyO3, CGO, N-API, JNI, P/Invoke, wasm-bindgen         β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                   β”‚
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚  C-ABI Layer (Stable Foreign Function Interface)        β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                   β”‚
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚  Rust Core (16,500+ lines)                              β”‚
β”‚  β€’ HTML Parser (html5ever)                              β”‚
β”‚  β€’ 13 Metadata Extractors                               β”‚
β”‚  β€’ URL Resolution & Utilities                           β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Key Design Principles:

  • Single Parse: HTML parsed once, shared across all extractors
  • Zero-Copy: Minimize memory allocations
  • Type-Safe: Rust memory safety guarantees
  • Thread-Safe: Concurrent extraction support
  • Language-Native: Idiomatic APIs for each language

β†’ Architecture Overview

Feature Matrix

FeatureRustPythonGoNode.jsJavaC#WASM
Basic Metaβœ“βœ“βœ“βœ“βœ“βœ“βœ“
Open Graphβœ“βœ“βœ“βœ“βœ“βœ“βœ“
Twitter Cardsβœ“βœ“βœ“βœ“βœ“βœ“βœ“
JSON-LDβœ“βœ“βœ“βœ“βœ“βœ“βœ“
Microdataβœ“βœ“βœ“βœ“βœ“βœ“βœ“
Microformatsβœ“βœ“βœ“βœ“βœ“βœ“βœ“
Dublin Coreβœ“βœ“βœ“βœ“βœ“βœ“βœ“
RDFaβœ“βœ“βœ“βœ“βœ“βœ“βœ“
All 13 Formatsβœ“βœ“βœ“βœ“βœ“βœ“βœ“
Type Hintsβœ“βœ“βœ“βœ“ (TS)βœ“βœ“βœ“ (TS)
Async Supportβœ“βœ“*βœ“βœ“*βœ“βœ“βœ“*
Thread-Safeβœ“βœ“βœ“βœ“βœ“βœ“βœ“
Memory-Safeβœ“βœ“βœ“βœ“βœ“βœ“βœ“

*Extraction is synchronous, but compatible with async I/O

Use Cases

Web Scraping

Extract metadata from millions of pages efficiently:

# Process 1M pages in 12 seconds (vs. 46 minutes with BeautifulSoup)
from concurrent.futures import ThreadPoolExecutor
results = ThreadPoolExecutor(max_workers=10).map(extract_from_url, urls)

SEO Tools

Analyze metadata for SEO optimization:

const og = extractor.extractOpenGraph();
const twitter = extractor.extractTwitterCard();
const jsonld = extractor.extractJSONLD();
// Check for missing or malformed metadata

Social Media Preview

Generate link previews like Facebook/Twitter:

og, _ := extractor.ExtractOpenGraph()
fmt.Printf("Title: %s\n", og.Title)
fmt.Printf("Image: %s\n", og.Image)
fmt.Printf("Description: %s\n", og.Description)

AI/ML Training Data

Extract structured data for machine learning:

let jsonld = extractor.extract_jsonld()?;
let microdata = extractor.extract_microdata()?;
// Feed to AI models for training

E-commerce

Extract product metadata:

List<MicrodataItem> products = extractor.extractMicrodata();
for (MicrodataItem item : products) {
    if (item.getType().contains("Product")) {
        System.out.println(item.getProperties().get("name"));
        System.out.println(item.getProperties().get("price"));
    }
}

Browser Extensions

Client-side metadata extraction:

import init, { MetaOxide } from 'meta-oxide-wasm';
await init();

const html = document.documentElement.outerHTML;
const extractor = new MetaOxide(html, window.location.href);
const metadata = extractor.extractAll();

Documentation

Getting Started

API References

Performance

Architecture

Help

Contributing

Contributions are welcome! See CONTRIBUTING.md for guidelines.

Development Setup

# Clone repository
git clone https://github.com/yourusername/meta_oxide.git
cd meta_oxide

# Build Rust core
cargo build --release

# Run tests
cargo test

# Build language bindings
# Python
cd bindings/python && pip install -e .

# Go
cd bindings/go && go test ./...

# Node.js
cd bindings/nodejs && npm install && npm test

# Java
cd bindings/java && mvn test

# C#
cd bindings/csharp && dotnet test

# WASM
cd bindings/wasm && wasm-pack build

Roadmap

v0.2.0 (Q1 2026)

  • Plugin system for custom extractors
  • Async Rust API
  • iOS support (Swift bindings)
  • Streaming parser for infinite documents

v0.3.0 (Q2 2026)

  • ML-based metadata extraction
  • Metadata quality scoring
  • PDF metadata extraction
  • REST/GraphQL API server

v1.0.0 (Q3 2026)

  • Stable API
  • Long-term support
  • Enterprise features

License

MetaOxide is released under the MIT License.

MIT License

Copyright (c) 2025 MetaOxide Contributors

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

Sponsors

MetaOxide is an open-source project. Consider sponsoring to support development:

Community

Acknowledgments

MetaOxide builds on excellent open-source projects:

Made with ❀️ by the MetaOxide team

Star ⭐ this repository if you find it useful!

Keywords

metadata

FAQs

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