Skip to content
This repository has been archived by the owner on Jun 21, 2023. It is now read-only.
/ curated Public archive

Curated list of libraries by JetRockets

License

Notifications You must be signed in to change notification settings

jetrockets/curated

Repository files navigation

Curated list of libraries used by JetRockets

Contribution is welcome! Please read CONTRIBUTING.md for details.

Active Record Extensions

https://github.com/jhawthorn/discard

Allows marking ActiveRecord objects as discarded, and provides scopes for filtering.

🟢 Pros

  • Allows to soft-delete ActiveRecord records.
  • Does not pollute ActiveRecord::Base automatically. You can include Discard::Model into any model you want.
  • Does not override any existing ActiveRecord methods.

We've used acts_as_paranoid and paranoia in the past. The both are great libraries, however they both override some ActiveRecord methods. Besides this you can run into issues when working with associations. Discard seems to be a better alternative.

Curators

Authentication

https://github.com/binarylogic/authlogic

An unobtrusive ruby authentication library based on ActiveRecord.

🟢 Pros

  • We've been usi Authlogic for since 2010 and always had a great experience with it
  • It is easy to use and provides a simple, clean API for handling authentication.
  • It is flexible and customizable, allowing developers to modify the behavior of the authentication process to meet their specific needs.
  • It is well documented and has an active community of developers.
  • Allows to maintain multiple sessions.

🟡 Cons

  • There is no built-in support for 2FA (two-factor authentication).
  • You need two implement all authentication logic yourself. Requires a lot of boilerplate code.
  • Tightly coupled to Rails. It is not possible to use it outside of Rails.

Curators

Authorization

https://github.com/palkan/action_policy

Authorization framework for Ruby/Rails application

🟢 Pros

  • Pre-checks allow to avoid a lot of boilerplate code.
  • Caching allows to avoid unnecessary database queries.
  • Can be included into any class, not only controllers.

ActionPolicy is offen called "Pundit on steroids". If you already use Pundit, you can easily migrate to ActionPolicy.

Curators

CSS

https://www.npmjs.com/package/tailwindcss

A utility-first CSS framework for rapidly building custom user interfaces.

🟢 Pros

  • Optimization using PurgeCSS. No extra CSS in the build, just what you use
  • Removes the need for me to come up with “names of things”, just figure it out with classes and get beauty
  • Small Learning Curve

🟡 Cons

  • HTML and Styling are mixed

You need to remember to put the reusing styles in a separate CSS file and use @apply.

Tailwind CSS has many benefits in terms of maintainability, efficiency, and development speed. In addition to all of that, it has a fantastic ecosystem of UI elements and pre-existing designs. You can use comprehensive documentation and free tutorial videos on YouTube. Although it has a few limitations, Tailwind’s extensive library of CSS classes is useful for developers looking to improve their applications or websites.

Curators