Stateless VS ndjson-spec

Compare Stateless vs ndjson-spec and see what are their differences.

Stateless

A simple library for creating state machines in C# code (by dotnet-state-machine)
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
Stateless ndjson-spec
9 6
5,301 633
0.6% 2.8%
6.9 0.0
7 days ago over 1 year ago
C#
GNU General Public License v3.0 or later -
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

Stateless

Posts with mentions or reviews of Stateless. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-06-05.

ndjson-spec

Posts with mentions or reviews of ndjson-spec. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-02-24.
  • Documentation for the JSON Lines text file format
    4 projects | news.ycombinator.com | 24 Feb 2024
    What’s the difference between terminators and separators here? The ndjson spec [0] doesn’t say anything like that, and it seems that ndjson and jsonlines are identical in what documents they accept.

    [0]: https://github.com/ndjson/ndjson-spec

  • Does anyone use JSON files as a database? Best practises? Or should I use a "real" database?
    3 projects | /r/node | 29 Jan 2023
    It's possible to work around this and still use a JSON-ish format. For example, my @broofa/persistentmap project provides an ES6 Map API backed by a persistent append-only file in NDJSON format. (Note: NDJSON isn't really a spec so much as a "convention"). But, honestly,
  • Why isn’t there a decent file format for tabular data?
    13 projects | news.ycombinator.com | 3 May 2022
    ndjson is actually a really pragmatic choice here that should not be overlooked.

    Tabular formats break down when the data stops being tabular. This comes up a lot. People love spread sheets as editing tools but they then end up doing things like putting comma separated values in a cell. I've also seen business people use empty cells to indicate hierarchical 'inheritance". An alternate interpretation of that is that that data has some kind of hierarchy and isn't really row based. People just shoehorn all sorts of stuff into spreadsheets because they are there.

    With ndjson, every line is a json object. Every cell is a named field. If you need multiple values, you can use arrays for the fields. Json has actual types (int, float, strings, boolean). So you can have both hierarchical and multivalued data in a row. The case where all the fields are simple primitives is just the simple case. It has an actual specification too: https://github.com/ndjson/ndjson-spec. I like it because I can stream process it and represent arbitrarily complex objects/documents instead of having to flatten it into columns. The parsing overhead makes it more expensive to use than tsv though. The file size is fine if you use e.g. gzip compression. It compresses really well generally.

    But I also use either tab separated values quite often for simpler data. I mainly like it because google spread sheets provides that as an export option and is actually a great editor for tabular data that I can just give to non technical people.

    Both file formats can be easily manipulated with command line tools (jq, csvkit, sed, etc.). Both can be processed using mature parsers in a wide range of languages. If you really want, you can edit them with simple text editors, though you probably should be careful with that. Tools like bat know how to format and highlight these files as well. Etc. Tools like that are important because you can use them and script them together rather than reinventing wheels.

    Formats like parquet are cumbersome mainly because none of the tools I mention support it. No editors. Not a lot of command line tools. No formatting tools. If you want to inspect the data, you pretty much have to write a program to do it. I guess this would be fixable but people seem to be not really interested in doing that work. Parquet becomes nice when you need to process data at scale and in any case use a lot of specialized tooling and infrastructure. Not for everyone in other words.

    Character encoding is not an issue with either tsv or ndjson if you simply use UTF-8, always. I see no good technical reason why you should use anything else. Anything else should be treated as a bug or legacy. Of course a lot of data has encoding issues regardless. Shit in, shit out basically. Fix it at the source, if you can.

    The last point is actually key because all of the issues with e.g. csv usually start with people just using really crappy tools to produce source data. Switching to a different file format won't fix these issues since you still deal with the same crappy tools that of course do not support this file format. Anything else you could just fix to not suck to begin with. And if you do, it stops being an issue. The problem is when you can't.

    Nothing wrong with tsv if you use UTF-8 and a some nice framework that generates properly escaped values and does all the right things. The worst you can say about it is that there are a bit too many choices here and people tend to improvise their own crappy data generation tools with escaping bugs and other issues. Most of the pain is self inflicted. The reason csv/tsv are popular is that you don't need a lot of frameworks / tools. But of course the flipside is that DYI leads to people introducing all sorts of unnecessary issues. Try not to do that.

  • Has UML died without anyone noticing?
    4 projects | /r/programming | 25 Apr 2021
    Newline-separated JSON is pretty close. It's not exactly a "standard" standard like something the IETF defines, but it's pretty easy to work with anyhow.
  • json to csv on google cloud fusion
    1 project | /r/googlecloud | 16 Feb 2021

What are some alternatives?

When comparing Stateless and ndjson-spec you can also consider the following projects:

Automatonymous - A state machine library for .Net - 100% code - No doodleware

hsv5 - HTML5 Based Alternative to CSV, TSV, JSONL, etc

Appccelerate - State Machine - A .net library that lets you build state machines (hierarchical, async with fluent definition syntax and reporting capabilities).

tplant - Typescript to plantuml

MassTransit - Distributed Application Framework for .NET

rson - Rust Object Notation

LiquidState - Efficient asynchronous and synchronous state machines for .NET

odiff - The fastest pixel-by-pixel image visual difference tool in the world.

Sourcetrail - Sourcetrail - free and open-source interactive source explorer

parquet-wasm - Rust-based WebAssembly bindings to read and write Apache Parquet data

Sprache - A tiny, friendly, C# parser construction library

node-skeleton - Starter skeleton for Node applications