ActionHero VS cls-hooked

Compare ActionHero vs cls-hooked and see what are their differences.

ActionHero

Actionhero is a realtime multi-transport nodejs API Server with integrated cluster capabilities and delayed tasks (by actionhero)

cls-hooked

cls-hooked : CLS using AsynWrap or async_hooks instead of async-listener for node 4.7+ (by Jeff-Lewis)
Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
ActionHero cls-hooked
6 1
2,387 745
0.2% -
9.2 0.0
4 days ago about 2 months ago
TypeScript JavaScript
Apache License 2.0 BSD 2-clause "Simplified" License
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.

ActionHero

Posts with mentions or reviews of ActionHero. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-01-08.
  • 10 Node.js Frameworks Every Developer Should Know
    9 projects | dev.to | 8 Jan 2023
    ActionHero.js is one of the most well-known API frameworks. It will help you quickly develop scalable and reusable Node.js API servers for your projects. ActionHero acts as a toolkit that will allow you to build such API servers that will initially work together with existing applications and platforms. With tens of thousands of users, you can always find the right answers and ideas to ensure a daily efficient workflow with ActionHero.
  • Using Typescript to create a Robust API between your frontend and backend
    3 projects | dev.to | 19 May 2021
    Two of the major components of the @grouparoo/core application are a Node.js API server and a React frontend. We use Actionhero as the API server, and Next.JS for our React site generator. As we develop the Grouparoo application, we are constantly adding new API endpoints and changing existing ones.
  • Deferring Side-Effects in Node.js until the End of a Transaction
    5 projects | dev.to | 17 May 2021
    At Grouparoo, we use Actionhero as our Node.js API server and Sequelize for our Object Relational Mapping (ORM) tool - making it easy to work with complex records from our database. Within our Actions and Tasks, we often want to treat the whole execution as a single database transaction - either all the modifications to the database will succeed or fail as a unit. This is really helpful when a single activity may create or modify many database rows.
  • Ask HN: How Long Is Your CI Process?
    5 projects | news.ycombinator.com | 1 May 2021
    Hard to say without knowing /what/ you want to accomplish in your CI process, so maybe some open source examples will help:

    * A "complex" library (node-resque). In CI (CircleCI) we install deps, compile Typescript to JS, test on 3 versions of node, and build docs. 4 min w/ some parallelization https://app.circleci.com/pipelines/github/actionhero/node-re...

    * A web server framework (actionhero): In CI(Github Actions) we install deps, compile Typescript to JS, test on 3 versions of node, and build docs. 7 min w/ some parallelization https://github.com/actionhero/actionhero/actions/runs/801273...

    * A Monorepo (Grouparoo): In CI (CircleCI) we install deps, compile Typescript to JS, run migrations, check licenses, test UIs, CLI tools, Plugins, and try out a few different databases. 5 minutes with rather extreme parallelization https://app.circleci.com/pipelines/github/grouparoo/grouparo...

cls-hooked

Posts with mentions or reviews of cls-hooked. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2021-05-17.
  • Deferring Side-Effects in Node.js until the End of a Transaction
    5 projects | dev.to | 17 May 2021
    The solution to our problem comes from a wonderful package called cls-hooked. Using the magic of AsyncHooks, this package can tell when certain code is within a callback chain or promise. In this way, you can say: "for all methods invoked within this async function, I want to keep this variable in scope". This is pretty wild! If you opt into using Sequelize with CLS-Hooked, every SQL statement will check to see if there is already a transaction in scope... You don't need to manually supply it as an argument!

What are some alternatives?

When comparing ActionHero and cls-hooked you can also consider the following projects:

Sequelize - Feature-rich ORM for modern Node.js and TypeScript, it supports PostgreSQL (with JSON and JSONB support), MySQL, MariaDB, SQLite, MS SQL Server, Snowflake, Oracle DB (v6), DB2 and DB2 for IBM i.

Express - Fast, unopinionated, minimalist web framework for node.

axios - Promise based HTTP client for the browser and node.js

fastify - Fast and low overhead web framework, for Node.js

loopback-next - LoopBack makes it easy to build modern API applications that require complex integrations.

Nest - A progressive Node.js framework for building efficient, scalable, and enterprise-grade server-side applications with TypeScript/JavaScript 🚀

AdonisJs Framework - AdonisJS is a TypeScript-first web framework for building web apps and API servers. It comes with support for testing, modern tooling, an ecosystem of official packages, and more.

AWS Lambda Router for NodeJS - AWS Lambda router for NodeJS

Koa - Expressive middleware for node.js using ES2017 async functions

feathers - The API and real-time application framework

node - Node.js JavaScript runtime ✨🐢🚀✨

Nuxt.js - Nuxt is an intuitive and extendable way to create type-safe, performant and production-grade full-stack web apps and websites with Vue 3. [Moved to: https://github.com/nuxt/nuxt]