crawlkit-plugin-sdk 1.0.0

SDK for building crawlkit WASM plugins
Documentation
  • Coverage
  • 83.33%
    20 out of 24 items documented2 out of 2 items with examples
  • Size
  • Source code size: 16.3 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 223.3 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 11s Average build duration of successful builds.
  • all releases: 11s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • WyattAu/crawlkit
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • WyattAu

crawlkit-plugin-sdk

SDK for building crawlkit WASM plugins.

Overview

This crate provides the types and traits needed to create custom SEO analyzers that run as WASM plugins in crawlkit's sandboxed environment.

Quick Start

Add to your Cargo.toml:

[dependencies]
crawlkit-plugin-sdk = "1.0.0"

Example

use crawlkit_plugin_sdk::{Analyzer, Finding, Severity, AnalysisContext};

pub struct MyAnalyzer;

impl Analyzer for MyAnalyzer {
    fn name(&self) -> &str { "my-analyzer" }

    fn analyze(&self, ctx: &AnalysisContext) -> Vec<Finding> {
        let mut findings = Vec::new();
        // Your analysis logic here
        findings
    }
}

// Export for WASM
crawlkit_plugin_sdk::export_analyzer!(MyAnalyzer);

Building for WASM

# Install WASM target
rustup target add wasm32-wasi

# Build plugin
cargo build --target wasm32-wasi --release

# The .wasm file will be in target/wasm32-wasi/release/

Documentation