Skip to content

Instantly share code, notes, and snippets.

@misenhower
Last active March 29, 2024 06:33
Show Gist options
  • Star 71 You must be signed in to star a gist
  • Fork 10 You must be signed in to fork a gist
  • Save misenhower/572f2121056edc380fe3b4ba047d0614 to your computer and use it in GitHub Desktop.
Save misenhower/572f2121056edc380fe3b4ba047d0614 to your computer and use it in GitHub Desktop.

Laravel alternatives in NodeJS

These are alternative packages/frameworks in NodeJS that cover some of the primary features in Laravel. This is by no means a comprehensive list of Laravel features (or a comprehensive list of NodeJS alternatives).

Depending on your perspective, this list either shows how it's possible to switch from Laravel to NodeJS or shows why you'd want to stay with Laravel 😃


Full stack framework alternatives: Nest, Adonis


Package alternatives:

Laravel (or Symfony) Feature NodeJS Alternative
Request routing/handling express, koa
Authentication passport, bcrypt, bcryptjs
Configuration dotenv, node-convict
Dependency injection Do I need dependency injection in NodeJS? (Stack Overflow)
ORM TypeORM, Sequelize, Objection
DB migrations (Simple migrations can be run automatically with Sequelize or Objection)
Sequelize CLI, graphql-migrate, knex
Collections ES functions, lodash
Logging winston, debug
Queues Redis-based: Bee Queue, kue
Other: better-queue, node-rethinkdb-job-queue
Caching node-cache
Blade (HTML templating) nunjucks, hbs, etc.
Mail nodemailer
Unit tests mocha + chai
Dusk (browser tests) puppeteer
Artisan commands Inquirer for interactive commands
Task scheduling cron
Input validation graphql-constraint-directive (example)
GraphQL: Lighthouse, laravel-graphql Apollo Server, graphql-yoga
objection-graphql
@essivision
Copy link

essivision commented Sep 13, 2020

very good
Please add other technologies

@saeedvaziry
Copy link

What about Laravel API Resources?

https://laravel.com/docs/8.x/eloquent-resources

@epikoder
Copy link

Nice work, funny how everything you are looking for is in one framework 😆

@1isten
Copy link

1isten commented Feb 3, 2021

Thanks for sharing. For blade, how about Pug and EJS?

@firatdgn
Copy link

What about AdonisJS?

@GarryOne
Copy link

GarryOne commented Jun 7, 2022

To the ORMs we can easily add Prisma (https://www.prisma.io/)

@demoraisj
Copy link

Deep Kit will be an awesome alternative

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment