hitchstory VS cue

Compare hitchstory vs cue and see what are their differences.

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
hitchstory cue
23 109
84 4,765
- 1.2%
9.1 9.8
16 days ago about 7 hours ago
Python Go
GNU General Public License v3.0 or later Apache License 2.0
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.

hitchstory

Posts with mentions or reviews of hitchstory. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-03-27.
  • Hitchstory – Type-safe StrictYAML Python integration testing framework
    1 project | news.ycombinator.com | 22 Apr 2024
  • Winner of the SF Mistral AI Hackathon: Automated Test Driven Prompting
    2 projects | news.ycombinator.com | 27 Mar 2024
    I built something like this too:

    https://github.com/hitchdev/hitchstory/blob/master/examples%...

  • Prompt Engineering Testing Framework
    1 project | news.ycombinator.com | 25 Feb 2024
  • Non-code contributions are the secret to open source success
    10 projects | news.ycombinator.com | 13 Feb 2024
    I took the same approach to "docs are tests and tests are docs" with integration testing when I created this library: https://github.com/hitchdev/hitchstory

    I realized at some point that a test and a how-to guide can and should actually be the same thing - not just for doctests, but for every kind of test.

    It's not only 2x quicker to combine writing a test with writing docs, the test part and the docs part reinforce each other:

    * Tests are more easily understandable when you attach written context intended for human consumption.

    * Docs are better if they come attached to a guarantee that they're valid, not out of date and not missing crucial details.

    * TDD is better if how-to docs are created as a side effect.

  • Ask HN: Are there any LLM projects for creating integration tests?
    1 project | news.ycombinator.com | 12 Feb 2024
    I have created a project for easily writing this type of test with YAML:

    https://github.com/hitchdev/hitchstory

    I dont think that this type of task is really appropriate for an LLM though. It is better to use hard abstractions for the truly deterministic stuff and for other stuff where you may need to do subtle trade offs (e.g. choosing a selector for the search bar) an LLM will generally do a bad job.

  • Should you add screenshots to documentation?
    8 projects | news.ycombinator.com | 14 Dec 2023
    For those interested in the concept of having permanently up-to-date documentation with screenshots I built this testing framework based upon the idea that good documentation can be a autogenerated artefact of good tests:

    https://github.com/hitchdev/hitchstory

  • How to add documentation to your product life cycle
    3 projects | news.ycombinator.com | 9 Oct 2023
    I don't like gherkin. It's it has very awkward syntax, it's not type safe, it's very verbose, it has no ability to abstract scenarios and rather than being a source for generating the documentation it tries to be the documentation.

    Nonetheless, there is a small number of projects where they either work around this or it doesn't matter as much. I find that most people that apply gherkin to their projects find it doesn't work - usually for one of the above reasons.

    I built https://github.com/hitchdev/hitchstory as an alternative that has straightforward syntax (YAML), very strict type safety (StrictYAML), low verbosity, and is explicitly designed as a source for generating documentation rather than trying to be the documentation.

  • Beyond OpenAPI
    12 projects | news.ycombinator.com | 11 Sep 2023
    I built this because I had the same idea: https://github.com/hitchdev/hitchstory

    If the specification can be tested and used to generate docs and can be rewritten based upon program output then the maintenance cost for producing docs like these plunges.

  • Optimizing Postgres's Autovacuum for High-Churn Tables
    1 project | news.ycombinator.com | 2 Sep 2023
    -c fsync=off -c synchronous_commit=off -c full_page_writes=off

    I got the answer from Karen Jex at Djangocon 2023.

    I used it to build some integration tests which exhibit best practices: https://github.com/hitchdev/hitchstory/tree/master/examples/...

    I considered using tmpfs but I wanted to cache the entire database volume and couldnt figure out how to do that with podman.

  • Elixir Livebook is a secret weapon for documentation
    12 projects | news.ycombinator.com | 6 Aug 2023
    This is incredible work.

    To anyone curious, I highly recommend:

    - https://hitchdev.com/hitchstory/approach/

    - https://hitchdev.com/hitchstory/why-not/

    From the overall RDD/BDD type home page:

    - https://hitchdev.com/hitchstory/

    The entire product site is a thing of richly informative beauty.

    ---

    My only question was whether the generated 'docs' snippets would add value over just reading the story in your DASL. Any markdown site generator (such as the chosen Material for MKDocs) can just embed the ```yaml anyway. But then I realized what was generating e.g. …

    - https://hitchdev.com/hitchstory/using/engine/rewrite-story/

    … and how superior that is to typical docs, especially typical docstring or swagger factories.

cue

Posts with mentions or reviews of cue. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-04-29.
  • TypeSpec: A New Language for API-Centric Development
    11 projects | news.ycombinator.com | 29 Apr 2024
    If you are in a situation where you have a backend and you want to expose an API and then you would eventually want a client, you would need format specs as the starting point where server and clients are generated from that one source.

    At the moment, OpenAPI with YAML is the only way to go but you can't easily split the spec into separate files as you would do any program with packages, modules and what not.

    There are third party tools[0] which are archived and the libraries they depend upon are up for adoption.

    In that space, either you can use something like cue language 1] or something like TypeSpec which is purpose built for this so yet, this seems like a great tool although I have not tried it yet myself.

    [0]. https://github.com/APIDevTools/swagger-cli

    [1]. https://cuelang.org/

    EDIT: formating

  • Show HN: Workout Tracker – self-hosted, single binary web application
    6 projects | news.ycombinator.com | 29 Feb 2024
    Where `kube.cue` sets reasonable defaults (e.g. image is /). The "cluster" runs on a mini PC in my basement, and I have a small Digital Ocean VM with a static IP acting as an ingress (networking via Tailscale). Backups to cloud storage with restic, alerting/monitoring with Prometheus/Grafana, Caddy/Tailscale for local ingress.

    [1] https://www.talos.dev/

    [2] https://cuelang.org/

  • Apple releases Pkl – onfiguration as code language
    14 projects | news.ycombinator.com | 3 Feb 2024
    I've been somewhat surprised that CUE bills itself as "tooling friendly" and doesn't yet have a language server- the number one bit of tooling most devs use for a particular language.

    I'm assuming it's becaus CUE is still unstable?

    Anyway, if others are interested in CUE's LSP work, I think https://github.com/cue-lang/cue/issues/142 is the issue to subscribe to

  • Why the fuck are we templating YAML? (2019)
    27 projects | news.ycombinator.com | 23 Jan 2024
    This is where I usually pitch in with "Have your heard of CUELang, our lord and savior?": https://cuelang.org/

    - Not turing complete

  • 10 Ways for Kubernetes Declarative Configuration Management
    23 projects | dev.to | 1 Jan 2024
    CUE: The core problem CUE solves is "type checking", which is mainly used in configuration constraint verification scenarios and simple cloud native configuration scenarios.
  • Lua is a viable alternative for JSON
    1 project | news.ycombinator.com | 4 Nov 2023
    If you really want executable configurations please consider a newer language like https://dascript.org or https://cuelang.org which provide better type safety.

    1- https://news.ycombinator.com/item?id=38030778

  • Writerside – a new technical writing environment from JetBrains
    3 projects | news.ycombinator.com | 23 Oct 2023
    Markdown and XML are nice, but what about more advanced documentation formats like OpenAPI? For one recent project, I set up automatic generation of the OpenAPI docs from (much more compact and flexible) CUE definitions (https://cuelang.org/) - which has the bonus of also being able to test the API against the definitions. JetBrains has a CUE plugin, but it's really barebones (doesn't even support jumping from the usage of a schema to its definition). Of course the possibilities when generating docs are endless (just think of the various syntaxes for doc comments, embedding examples/tests in source code etc.)...
  • Show HN: Config-file-validator – CLI tool to validate all your config files
    3 projects | news.ycombinator.com | 29 Sep 2023
    It doesn't include validators for TOML and INI, but if you're doing JSON and YAML, I would take a look at using or building upon CUE (https://cuelang.org/). It is a different take on schema definition (plus more), and is surprising terse and powerful model.
  • That's a Lot of YAML
    14 projects | news.ycombinator.com | 28 Sep 2023
  • An INI Critique of TOML
    3 projects | news.ycombinator.com | 21 Sep 2023

What are some alternatives?

When comparing hitchstory and cue you can also consider the following projects:

bumblebee - Pre-trained Neural Network models in Axon (+ 🤗 Models integration)

dhall-lang - Maintainable configuration files

testy - test helpers for more meaningful, readable, and fluent tests

jsonnet - Jsonnet - The data templating language

ospec - Noiseless testing framework

terraform - Terraform enables you to safely and predictably create, change, and improve infrastructure. It is a source-available tool that codifies APIs into declarative configuration files that can be shared amongst team members, treated as code, edited, reviewed, and versioned.

jsverify - Write powerful and concise tests. Property-based testing for JavaScript. Like QuickCheck.

starlark-rust - A Rust implementation of the Starlark language

examples - Tests that rewrite themselves. Tests that rewrite your docs.

Protobuf - Protocol Buffers - Google's data interchange format

explorer - Series (one-dimensional) and dataframes (two-dimensional) for fast and elegant data exploration in Elixir

jsonnet-libs - Grafana Labs' Jsonnet libraries