Skip to content

LLM Resources

What is it structium? ​

BANNER

structium is a JavaScript Library for Serialize and deserialize any data structure in any environment (browser, node, bun, deno, etc).

Usage ​

Libary usage ​

js
import { markdown } from 'structium'

const data = markdown.deserialize(`
# Example Markdown

This is an example Markdown document.
[Read more](https://structium.pigeonposse.com)`
)

console.log(data)

Individual usage ​

js
import { deserialize } from '@structium/toml'

const data = deserialize(`
name = "Alice"
age = 30
city = "New York"

[address]
street = "123 Main St"
zip = "10001"

hobbies = ["reading", "hiking", "painting"]
`)
console.log(data)

CLI usage ​

bash
npx structium yaml deserialize -i https://example.com/data.yaml -o data.json

Included tools ​

Structium includes the following tools:

Do you want to add a new tool? Contribute

Why structium? ​

The main idea of Structium is to unify all file serialization and deserialization tools into a single ecosystem, compatible with any development environment. Each Structium library will focus exclusively on these two functions: serialization and deserialization, without adding additional features. The goal is to maximize cost, size, and performance.

Therefore, if you're looking for functionality outside of this focus, Structium won't be the right solution.

The intention is for developers to find Structium a reliable, lightweight, and well-maintained source for serialization and deserialization tools.

More information ​