npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@breadstone/ziegel-platform-serialization

v0.0.9

Published

Includes a set of serialization providers. (Json, Xml)

Readme

@breadstone/ziegel-platform-serialization

MIT License TypeScript npm

Advanced serialization and deserialization services for the ziegel platform. Provides JSON, XML, binary serialization with custom formatters and type preservation for enterprise applications.

Serialization: Enterprise serialization with multiple formats, type preservation, and custom serializers.

🚀 Overview

@breadstone/ziegel-platform-serialization provides:

  • Multiple Formats: JSON, XML, Binary, and custom serialization formats
  • Type Preservation: Maintain TypeScript types during serialization/deserialization
  • Custom Serializers: Extensible serializer system for complex objects
  • Schema Validation: Built-in validation during deserialization
  • Performance Optimization: Efficient serialization with streaming support
  • Decorator Support: Attribute-based serialization configuration

📦 Installation

npm install @breadstone/ziegel-platform-serialization
# or
yarn add @breadstone/ziegel-platform-serialization

🧩 Features & Usage Examples

JSON Serialization

import { JsonSerializer, Serializable, SerializeProperty } from '@breadstone/ziegel-platform-serialization';

@Serializable()
class User {
  @SerializeProperty({ name: 'user_id' })
  id: number;
  
  @SerializeProperty()
  name: string;
  
  @SerializeProperty({ ignore: true })
  password: string;
}

const serializer = new JsonSerializer();
const json = serializer.serialize(user);
const deserializedUser = serializer.deserialize<User>(json, User);

XML Serialization

import { XmlSerializer, XmlElement, XmlAttribute } from '@breadstone/ziegel-platform-serialization';

@XmlElement('Person')
class Person {
  @XmlAttribute()
  id: number;
  
  @XmlElement()
  name: string;
  
  @XmlElement('contact-info')
  email: string;
}

const xmlSerializer = new XmlSerializer();
const xml = xmlSerializer.serialize(person);

Custom Serializers

import { SerializerBase, ISerializationContext } from '@breadstone/ziegel-platform-serialization';

class DateSerializer extends SerializerBase<Date> {
  serialize(value: Date, context: ISerializationContext): string {
    return value.toISOString();
  }
  
  deserialize(value: string, context: ISerializationContext): Date {
    return new Date(value);
  }
}

Binary Serialization

import { BinarySerializer } from '@breadstone/ziegel-platform-serialization';

const binarySerializer = new BinarySerializer();
const buffer = binarySerializer.serialize(complexObject);
const restored = binarySerializer.deserialize<ComplexObject>(buffer, ComplexObject);

📚 Package import points

import {
    // JSON Serialization
    JsonSerializer,
    Serializable,
    SerializeProperty,
    
    // XML Serialization
    XmlSerializer,
    XmlElement,
    XmlAttribute,
    
    // Binary Serialization
    BinarySerializer,
    
    // Custom Serializers
    SerializerBase,
    ISerializationContext,
    
    // Configuration
    SerializationOptions
} from '@breadstone/ziegel-platform-serialization';

📚 API Documentation

For detailed API documentation, visit: API Docs

Related Packages

  • @breadstone/ziegel-platform: Core platform services
  • @breadstone/ziegel-core: Foundation utilities and type definitions

License

MIT

Issues

Please report bugs and feature requests in the Issue Tracker


Part of the ziegel Enterprise TypeScript Framework