21 unstable releases (4 breaking)

0.4.5 Jul 18, 2025
0.4.3 Jun 26, 2025
0.3.2 Mar 24, 2025
0.1.14 Nov 29, 2024
0.1.13 Jun 18, 2024

#143 in Compression

Download history 12/week @ 2025-09-23 25/week @ 2025-09-30 16/week @ 2025-10-07 40/week @ 2025-10-14 22/week @ 2025-10-21 3/week @ 2025-10-28 1/week @ 2025-12-09

1,270 downloads per month
Used in post-archiver-utils

BSD-3-Clause

300KB
6.5K SLoC

Post archiving and management system

Overview

This crate provides functionality for managing and archiving posts from various platforms, with support for authors, tags, files, and comments. It implements a flexible data model that can handle different content types and maintain relationships between entities.

Features

  • utils: Enables utility functions and manager functionality
  • importer: Enables post importing capabilities
  • typescript: Generates TypeScript type definitions

Core Types

The system is built around several core types:

  • Author: Content creators with optional aliases
  • Alias: Alternative names for authors
  • Post: Content entries that can contain text and files
  • [Tag]: Categorical labels for content organization
  • Collection: Grouping of posts, authors, and tags
  • FileMeta: File metadata and storage management
  • Platform: Information about the platform from which posts are archived
  • Comment: Nested discussion threads

PostArchiver

Types for Archiver A simple unify post archive. Docs.rs

Input

Output

Install

For Rust

cargo add post-archiver

For TypeScript

npm add -D post-archiver

Import you need types

import type { Post } from "post-archiver"

Build

For Rust

cargo build

For TypeScript

cargo test -F=typescript
node gen-types.mjs

You will get files in bindings

Dependencies

~2.7–7.5MB
~141K SLoC