Hacker News new | ask | show | jobs
by LrnByTeach 3149 days ago
Good list to ponder trade off Node js Express packages , all in one place !!!!!

> But still a bunch that I haven't gotten to googling and still need to decide on what to choose:

    logging (morgan vs winston)

    validation (express-validator, joi)

    auth (passport jwt, local, social)

    session storage (redis vs keeping it in database?)

    database (mongo/mongoose vs 
pg/knex/bookshelf/sequelize, graphql)

    storage (s3 vs gcs)

    ajax requests (request vs axios)

    mail (mailgun, sendgrid, mailchimp)

    error handlers

    rate limiting

    geo ip
1 comments

For those who don't have too too much time to spend comparing stacks, looking at download trends is sometimes a decent heuristic for weeding out which you might not want to throw into a production system yet. Shameless plug for a site I made to help visualize that

logging - morgan vs winston - popularities seem similar, although winston has a bit of a lead: https://npmcharts.com/compare/morgan,winston

validation - express-validator vs joi - joi no question: https://npmcharts.com/compare/express-validator,joi

SQL ORMs - sequelize and knex were neck and neck for a while, but sequelize seems to have pulled ahead in the last couple months. bookshelf is way behind. https://npmcharts.com/compare/knex,bookshelf,sequelize