Codables – Swift-Inspired, Declarative JSON Serialization
Posted2 months agoActiveabout 2 months ago
github.comTechstory
calmpositive
Debate
20/100
JSON SerializationTypescriptSwift
Key topics
JSON Serialization
Typescript
Swift
The post introduces Codables, a Swift-inspired JSON serialization library for TypeScript, and sparks a discussion about its uniqueness and potential use cases.
Snapshot generated from the HN discussion
Discussion Activity
Moderate engagementFirst comment
N/A
Peak period
6
Day 10
Avg / period
3.5
Key moments
- 01Story posted
Nov 4, 2025 at 8:34 AM EST
2 months ago
Step 01 - 02First comment
Nov 4, 2025 at 8:34 AM EST
0s after posting
Step 02 - 03Peak activity
6 comments in Day 10
Hottest window of the conversation
Step 03 - 04Latest activity
Nov 14, 2025 at 7:52 AM EST
about 2 months ago
Step 04
Generating AI Summary...
Analyzing up to 500 comments to identify key contributors and discussion patterns
ID: 45810853Type: storyLast synced: 11/20/2025, 2:21:16 PM
Want the full context?
Jump to the original sources
Read the primary article or dive into the live Hacker News thread when you're ready.
Yes. And SuperJSON is great; I use it a lot. However, things got tricky for me when I had really complex data types, covered with many model classes, often deeply nested and referencing each other, where I needed to serialize it all from/to JSON and save it on the disk. I had to essentially maintain two formats of my data - "serializable data" and TypeScript classes matching this data. It was quite a pain.
I've tried to solve it with modern decorators, making the entire process more declarative and having way less boilerplate.
Happy to hear your feedback!
Interactive playground - https://codableslib.com/playground Github: https://github.com/pie6k/codables