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
1,270 downloads per month
Used in post-archiver-utils
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 functionalityimporter: Enables post importing capabilitiestypescript: Generates TypeScript type definitions
Core Types
The system is built around several core types:
Author: Content creators with optional aliasesAlias: Alternative names for authorsPost: Content entries that can contain text and files- [
Tag]: Categorical labels for content organization Collection: Grouping of posts, authors, and tagsFileMeta: File metadata and storage managementPlatform: Information about the platform from which posts are archivedComment: Nested discussion threads
PostArchiver
Types for Archiver A simple unify post archive. Docs.rs
Input
Output
- PostArchiverViewer
- Code by your self
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