possiblearyal/scolt ? reverse-engineered prompt

Reverse engineered prompt

Build me a small TypeScript library that takes nested JSON and turns it into a compact column style text format like the examples in the README.

It should handle plain values, arrays, nested objects, arrays of objects, repeated objects, and shared nested data by reusing the same referenced block instead of repeating it. I want the output to look readable, with top level fields prefixed by symbols like # and reusable nested groups prefixed by @, so duplicate structures only show up once and the rest point back to them.

Please include a simple public class or function I can call from JavaScript, plus a few examples that match the README behavior. Make sure it works nicely with mixed data types, nulls, optional fields, and deep nesting. If anything is unclear, use the current docs or look at the examples and make the implementation consistent with that style.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab