c
AdblockFormatter

Adblock format passthrough (no conversion)

T
AdblockRule
No documentation available
v
AdblockRuleSchema

Schema for a parsed adblock-syntax rule

T
AfterTransformHook

Callback fired synchronously or asynchronously after a transformation successfully completes.

T
AnyDiagnosticEvent

Union type of all possible diagnostic events

c
AsyncTransformation

Abstract base class for async transformations. Use this for transformations that need to fetch external resources or perform I/O.

c
BaseError

Base class for all custom errors in the application. Provides consistent error structure with error codes.

c
BaseFormatter

Base class for output formatters. Extend this class to create custom output formatters.

v
BatchRequestAsyncSchema

Schema for async batch requests (max 100 items)

v
BatchRequestSchema

Schema for BatchRequest validation (worker)

v
BatchRequestSyncSchema

Schema for sync batch requests (max 10 items)

T
BeforeTransformHook

Callback fired synchronously or asynchronously before a transformation processes its rule array.

T
BenchmarkMetrics
No documentation available
v
BenchmarkMetricsSchema

Schema for benchmark metrics that matches the CompilationMetrics interface. Present when benchmark mode is enabled during compilation.

I
BenchmarkResult

Result of a benchmark measurement for a single stage.

I
CacheEvent

Event for cache operations

c
CircuitBreakerOpenError

Circuit breaker error thrown when the circuit is open

I
CircuitBreakerOptions

Circuit breaker configuration options

E
CircuitBreakerState

Circuit breaker states

T
CliArguments
No documentation available
v
CliArgumentsSchema

Schema for CLI arguments (matches ParsedArguments interface in ArgumentParser.ts)

c
CompilationError

Custom error class for compilation errors

I
CompilationResult

Result of compilation with optional metrics and diagnostics.

T
CompilationResultOutput
No documentation available
v
CompilationResultSchema

Schema for compilation result output

f
compile

Convenience function for compiling a filter list. Maintains backward compatibility with the original API.

v
CompileRequestSchema

Schema for CompileRequest validation (worker)

c
CompositeFetcher

Combines multiple fetchers, trying each in order. First fetcher that can handle the source wins.

c
CompressTransformation

Transformation that compresses the final list by removing redundant rules. Also converts /etc/hosts rules to adblock-style rules.

v
ConfigurationSchema

Schema for IConfiguration validation

c
ConfigurationValidator

Validates configuration objects against the expected schema. Uses Zod for runtime validation with TypeScript integration.

c
ConvertToAsciiTransformation

Transformation that converts non-ASCII domain names to Punycode.

f
createChildContext

Creates a child tracing context that inherits from a parent

f
createEventBridgeHook

Create a hook configuration that bridges the transformation hook system into the compiler's ICompilerEvents / CompilerEventEmitter event bus.

f
createEventEmitter

Factory function to create the appropriate emitter. Returns a singleton NoOpEventEmitter if no handlers are provided for efficiency.

f
createLogger

Creates a new logger with the given options

f
createLoggerFromEnv

Creates a logger with configuration from environment variables. Reads the following environment variables:

f
createLoggingHook

Create a hook configuration that logs transformation start/complete/error messages to any object implementing { info, error }.

f
createMetricsHook

Create a hook configuration that records per-transformation timing and rule-count diff data to an arbitrary metrics collector.

f
createNoOpContext

Creates a no-op tracing context (for when diagnostics are disabled)

f
createOpenTelemetryExporter

Creates a new OpenTelemetry diagnostics collector with specified options

f
createSimplePlugin

Creates a simple plugin from a transformation function

f
createTracingContext

Creates a new tracing context

c
DeduplicateTransformation

Transformation that removes duplicate rules while preserving order. Also removes preceding comments when a duplicate rule is removed.

v
f
detectConflicts

Detects conflicts in a list of rules without applying transformation

c
DnsmasqFormatter

Formats rules to dnsmasq format

c
DoHFormatter

Formats rules to DNS-over-HTTPS blocklist format

I
DomainDiff

Domain-level diff information

I
DownloaderPlugin

Custom downloader plugin definition

T
Environment
No documentation available
v
EnvironmentSchema

Schema for Worker environment bindings and runtime env vars

T
EtcHostsRule
No documentation available
v
EtcHostsRuleSchema

Schema for a parsed /etc/hosts-syntax rule

f
evaluateBooleanExpression

Safely evaluates a boolean expression for preprocessor conditions.

c
ExcludeTransformation

Transformation that excludes rules matching specified patterns.

c
FilterCompiler

Main compiler class for hostlist compilation. Orchestrates the entire compilation process using async operations throughout.

c
FilterService

Service for downloading and preparing filter wildcards. Uses fully asynchronous operations for optimal performance.

f
formatOutput

Formats rules to the specified output format

I
FormatterResult

Result of formatting operation

f
generateDiff

Convenience function to generate a diff report

f
generateDiffMarkdown

Convenience function to generate a markdown diff report

f
getKnownPlatforms

Gets all known platform identifiers

v
globalRegistry

Global plugin registry instance

c
HeaderGenerator

Generates headers for filter lists and sources. Follows Single Responsibility Principle - only handles header generation.

E
HealthStatus

Health status levels

c
HostsFormatter

Formats rules to /etc/hosts format

c
HttpFetcher

Fetches content over HTTP/HTTPS using the standard Fetch API. This is the default fetcher for URL-based sources.

v
HttpFetcherOptionsSchema

Schema for HTTP fetcher options

I
IAdblockRuleTokens

Token representation of a parsed adblock rule

I
IBasicLogger

Basic logger interface with essential methods Follows Interface Segregation Principle

I
ICacheStorage

Cache storage interface

I
ICompilationStartEvent

Event emitted when compilation begins, after configuration validation has passed but before any source is downloaded or processed.

I
IConfiguration

Main configuration for the hostlist compiler

I
IContentFetcher

Content fetcher abstraction - provides content from any source. This allows the compiler to work with pre-fetched content or custom fetch implementations.

I
IDetailedLogger

Detailed logger interface with debug capabilities Extends IBasicLogger for advanced logging needs

I
IDownloader

Downloader interface for dependency injection Allows different downloader implementations

I
IEtcHostsRule

Parsed /etc/hosts rule

I
IFileSystem

File system operations interface for dependency injection Allows testing and different implementations

I
IFilterable

Common interface for filterable entities Follows Interface Segregation Principle - shared filter properties

I
IHttpClient

HTTP client interface for dependency injection Allows testing and different HTTP implementations

I
IHttpFetcherOptions

Options for HTTP-based content fetching.

c
IncludeTransformation

Transformation that includes only rules matching specified patterns.

c
InsertFinalNewLineTransformation

Transformation that ensures the file ends with a newline.

c
InvertAllowTransformation

Transformation that inverts blocking rules to allow rules. Adds @@ prefix to non-comment, non-hosts, non-allow rules.

I
IPlatformCompilerOptions

Platform-agnostic compiler configuration that extends the base configuration.

I
IProgressEvent

Event emitted to report compilation progress

I
IRuleModifier

Represents a rule modifier/option

f
isKnownPlatform

Checks if an identifier is a known platform

I
ISource

A source configuration for a filter list

I
ISourceCompleteEvent

Event emitted when a source completes successfully

I
ISourceErrorEvent

Event emitted when a source fails to compile

I
ISourceStartEvent

Event emitted when a source starts downloading

I
IStructuredLog

Structured log entry for production observability Designed for log aggregation systems (CloudWatch, Datadog, Splunk)

I
ITransformable

Common interface for transformable entities Follows Interface Segregation Principle - shared transformation properties

I
ITransformationCompleteEvent

Event emitted when a transformation completes

I
ITransformationContext

Context passed to transformations

I
ITransformationOptions

Options for transformations that can be configured

I
ITransformationStartEvent

Event emitted when a transformation starts

I
IValidationResult

Result of configuration validation

c
JsonFormatter

Formats rules to JSON format

v
logger

Default logger instance

E
LogLevel

Log levels for filtering output

T
LogLevelType

Log level type for structured logging Maps to standard syslog severity levels

c
MemoryCacheStorage

In-memory cache implementation

I
ModuleOverrides

Module-specific log level overrides

c
NetworkError

Custom error class for network errors

c
NoOpEventEmitter

No-op event emitter for when no events are registered. Provides the same interface but does nothing, avoiding overhead. Uses a more elegant approach with frozen empty object.

c
NoOpHookManager

A TransformationHookManager that does absolutely nothing.

I
I
OperationCompleteEvent

Event emitted when an operation completes successfully

I
OperationErrorEvent

Event emitted when an operation encounters an error

I
OperationStartEvent

Event emitted when an operation starts

f
optimizeRules

Optimizes a list of rules

E
OutputFormat

Output format options

v
PACKAGE_INFO

Package metadata for headers and identification

v
PACKAGE_NAME

Package name as published to JSR

I
ParsedHost

Result of parsing a hostname.

I
ParsedRuleInfo

Parsed rule with display-friendly information.

f
parseModuleOverrides

Parses module overrides from environment variable. Expected format: "module1:level1,module2:level2" Example: "compiler:debug,downloader:trace"

I
PerformanceMetricEvent

Event for performance metrics

c
PiHoleFormatter

Formats rules to Pi-hole format (domain list)

v
PlatformCompilerOptionsSchema

Schema for platform compiler options Note: preFetchedContent and customFetcher are not validated as they are runtime objects

c
I
PluginContext

Context provided to plugins during initialization

c
PluginTransformationWrapper

Creates a transformation wrapper from a plugin transformation

T
PreFetchedContent

Pre-fetched content map - allows passing content directly without network/file access. Keys are source identifiers (URLs or names), values are the content strings.

c
PreFetchedContentFetcher

Fetches content from a pre-populated content map. This allows compilation without network or file system access.

v
PREPROCESSOR_DEFAULTS

Preprocessor-related defaults

T
Priority
No documentation available
v
PrioritySchema

Schema for request/job priority level. Shared between CompileRequestSchema, BatchRequestSchema, CliArgumentsSchema, and worker schemas.

c
RemoveCommentsTransformation

Transformation that removes all comment lines from the rules. Comments are lines starting with ! or #

c
RemoveEmptyLinesTransformation

Transformation that removes empty lines from the rules.

c
RemoveModifiersTransformation

Transformation that removes unsupported modifiers from adblock-style rules.

I
RuleDiff

Represents a single rule difference

E
RuleType

Rule types for statistics

v
silentLogger

Silent logger that discards all output (useful for testing)

c
SourceCompiler

Compiles an individual source according to its configuration. Supports tracing and diagnostics for observability.

c
SourceError

Custom error class for source errors

v
SourceSchema

Schema for ISource validation

E
SourceType

Source type for filter lists

c
StructuredLogger

Structured logger implementation for production observability Outputs JSON-formatted logs compatible with log aggregation systems (CloudWatch, Datadog, Splunk, etc.)

c
SyncTransformation

Abstract base class for synchronous transformations. These transformations perform CPU-bound operations without I/O. The sync method is wrapped in a resolved Promise for consistency with async operations.

c
TldUtils

TLD utilities for parsing and validating domain names.

f
traceAsync

Wrapper function for tracing asynchronous operations

E
TraceCategory

Event categories for tracing

E
TraceSeverity

Trace severity levels

f
traceSync

Wrapper function for tracing synchronous operations

I
TracingContext

Context for tracing operations through the compilation pipeline

I
TracingContextOptions

Options for creating a tracing context

c
Transformation

Abstract base class for all transformations. Implements the Strategy pattern for rule transformations. All transformations are fully asynchronous to support streaming and non-blocking operations.

I
TransformationHookConfig

Declarative hook configuration object.

I
TransformationHookContext

Shared context object passed to every hook callback.

c
c
TransformationPipeline

Executes an ordered sequence of named transformations over a rule array, with optional lifecycle hooks, exclusion/inclusion pattern filtering, and event emission.

I
TransformationPlugin

Custom transformation plugin definition

c
TransformationRegistry

Registry for transformation classes. Implements the Registry pattern for managing transformation instances.

E
TransformationType

Enum of all available transformation types

T
TransformErrorHook

Callback fired when a transformation throws an unhandled error.

c
TrimLinesTransformation

Transformation that removes leading and trailing whitespace from lines.

c
UnboundFormatter

Formats rules to Unbound DNS resolver format

v
USER_AGENT

User agent string for HTTP requests

c
ValidateAllowIpTransformation

Validation transformation that allows IP addresses.

c
ValidateTransformation

Transformation that validates rules for DNS blockers. Uses AGTree for robust parsing and validation. Removes invalid rules and their preceding comments.

c
ValidationError

Custom error class for validation errors

v
ValidationErrorSchema

Schema for a single validation error

E
ValidationErrorType

Type of validation error

v
ValidationErrorTypeSchema

Schema for validation error type enum

v
ValidationReportSchema

Schema for validation report

v
ValidationResultSchema

Schema for validation result (compilation result with validation report)

E
ValidationSeverity

Severity level of validation error

v
ValidationSeveritySchema

Schema for validation severity enum

v
VERSION

Package version - should match deno.json Updated automatically by version bump scripts.

I
WorkerCompilationResult

Result of compilation with optional metrics and diagnostics.

T
WorkerCompilationResultOutput
No documentation available
v
WorkerCompilationResultSchema

Schema for worker compilation result (extends CompilationResultSchema with optional metrics)

f
createFormatter

Factory function to create formatters (backward compatible wrapper)

I
IFilterDownloader

Filter downloader interface for dependency injection

I
ILogger

Logger interface for backward compatibility

f
loadPlugin
No documentation available