
Product
Rust Support Now in Beta
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
@syntropylog/types
Advanced tools
Shared types for the SyntropyLog ecosystem.
New in this version:
This package contains the fundamental types used across the SyntropyLog ecosystem. These types are designed to be shared between the main library and future modules like adapters and serializers.
npm install @syntropylog/types
import {
JsonValue,
LogMetadata,
ILogger,
IContextManager,
RedisValue
} from '@syntropylog/types';
// Use types in your implementations
const metadata: LogMetadata = {
userId: '123',
operation: 'create',
timestamp: Date.now()
};
// Implement interfaces
class MyLogger implements ILogger {
// Implementation...
}
JsonValue
- Any value that can be safely serialized to JSONSerializableData
- Union type for all data types that can be serializedLogMetadata
- Type for log metadata objectsLogBindings
- Type for log bindings attached to logger instancesLogRetentionRules
- Type for retention rulesLogFormatArg
- Type for format argumentsLogArguments
- Type for logging method argumentsILogger
- Base interface for logger implementationsContextValue
- Type for values that can be stored in contextContextData
- Type for context data structureContextConfig
- Type for context configuration optionsIContextManager
- Base interface for context manager implementationsRedisValue
- Type for Redis valuesRedisListElement
- Type for Redis list elementsRedisSetMember
- Type for Redis set membersRedisSortedSetMember
- Type for Redis sorted set membersRedisHashValue
- Type for Redis hash field valuesRedisCommandOptions
- Type for Redis command optionsSerializedData
- Type for serialization result dataSerializationContextConfig
- Type for serialization context configurationSanitizationConfig
- Type for sanitization configurationSerializationPipelineContext
- Type for pipeline contextSerializationResult
- Type for serialization resultSerializationMetadata
- Type for serialization metadataSerializationMetrics
- Type for serialization metricsComplexityDistribution
- Type for complexity distribution metricsSerializerDistribution
- Type for serializer distribution metricsTimeoutStrategyDistribution
- Type for timeout strategy distribution metricsLogEntry
- Type for log entry structureLoggerOptions
- Type for logger optionsLoggerDependencies
- Type for logger dependencies# Build the package
npm run build
# Clean build artifacts
npm run clean
MIT
FAQs
Shared types for SyntropyLog ecosystem
The npm package @syntropylog/types receives a total of 11 weekly downloads. As such, @syntropylog/types popularity was classified as not popular.
We found that @syntropylog/types demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.