stimulus-use
Roda
Our great sponsors
stimulus-use | Roda | |
---|---|---|
9 | 21 | |
1,374 | 2,029 | |
3.5% | - | |
8.7 | 8.0 | |
3 days ago | 6 days ago | |
JavaScript | Ruby | |
MIT License | MIT License |
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.
stimulus-use
-
A powerful search feature with what Rails provides out of the box
You can see that I added a dependency here: stimulus-use.
-
Discover Symfony UX’s Twig Components. UI without JS or BS.
“stimulus-use: Add composable behaviors to your Stimulus controllers, like debouncing, detecting outside clicks and many other things.
-
RVTWS: a Ruby stack for modern web apps
Actually, Stimulus is pretty cool because you can compose multiple pre-built behaviors into one Stimulus controller, for a sort of functional approach to component behaviors. The tradeoff is that a growing web of Stimulus controllers (plus HTML data attributes associated with them) can become complex and hard to understand.
-
Tailwind style CSS transitions with StimulusJS
The stimulus-use project is a collection of reusable behaviors for Stimulus. If you are familiar with React, this project is similar to React’s hooks system, but for Stimulus controllers.
-
Pagination and infinite scrolling with Rails and the Hotwire stack
To make using the IntersectionObserver API easier, we will add the wonderful stimulus-use package to our application. This is not a requirement, but it does simplify the code a bit.
-
Upgrade to Stimulus 3, say bye to IE11, and celebrate 🎉
Finally, as we recently added the Stimulus-Use library to our project, we made sure to upgrade it to current beta which supports Stimulus 3.
-
Migrating Selenium system tests to Cuprite
For example, we have a few ”live search“ fields, backed by back-end Fetch requests, on some pages. The live search function was usually triggered by the keyup event and Cuprite was such a fast typewriter that it frequently sent multiple requests almost at once. If some of the responses got a bit late or out of sync, the front-end JavaScript code began hitting issues. We solved this by adopting a technique called debouncing and, frankly, we should have done this since the beginning. By the way, we used the useDebounce module from the marvelous Stimulus-use library to achieve this.
Roda
- Ask HN: What is your go-to stack for the web?
-
Web Frameworks actively maintained in 2023?
Roda (roda.jeremyevans.net)
-
There's SQL in my Ruby
Jeremy also maintains an awesome web framework called Roda. It's lightweight, fast, and easy to use when you don't need the heft of Rails.
-
Ask HN: Who's using Ruby web development without Ruby on Rails (RoR)?
I've been on the Roda [0] and Sequel [1] framework for over 10 years now across various projects. Even after all these years, starting a project in this stack feels like a breath of fresh air even compared to the newer language/frameworks that jabe come out since.
Jeremy Evans is the creator and maintainer of both of these Ruby gems and is super helpful in resolving ask kinda of issues.
-
rodauth-omniauth released: login & registration with multiple external providers
My memory is failing me on the specifics, but I posted this issue on roda, which then led to this other issue in omniauth, plus 2 MRs on omniauth and rack-protection for doc updates.
-
Is rails the right choice for a junior dev?
You could pick up a framework like Phoenix, or Remix (the newest kid on the block) and I'm sure you'd get plenty far with either - and if you want ruby, try Roda. You might not have ready made tools with the newer frameworks, so watch out for that. But they have the advantage of doing thing slightly differently.
-
What It Took to Build a Rails Integration for Rodauth
Even though Rodauth is built on top of Roda and Sequel, it can work as a Rack middleware in any Ruby web framework. In the beginning, there was a demo app showing how Rodauth can be used in Rails, which leveraged the (now discontinued) roda-rails gem. However, the integration felt fairly raw, and definitely lacked the ergonomics Rails developers are used to.
-
Sinatra vs. Roda, what's your take?
I'm a big fan of Sinatra, but recently I came across Roda which is by Jeremy Evan's whose wonderful ORM gem Sequel I've used in several projects. Looking at the documentation, Roda seems quite nice and performance gain is always appreciated.
- What do you use ruby for?
-
RVTWS: a Ruby stack for modern web apps
For anything but a large app, Roda is well worth considering. It's not the easiest for beginners, due to its philosophy of being bare-bones by default but highly extendable. But it's gradually becoming integrated into Bridgetown, whose batteries-included approach is making Roda much more accessible.
What are some alternatives?
Ruby on Rails - Ruby on Rails
Hanami - The web, with simplicity.
Sinatra - Classy web-development dressed in a DSL (official / canonical repo)
Cuba - Rum based microframework for web development.
Capybara - Acceptance test framework for web applications
Padrino - Padrino is a full-stack ruby framework built upon Sinatra.
rack-app - minimalist framework for building rack applications
falcon - A high-performance web server for Ruby, supporting HTTP/1, HTTP/2 and TLS.
react-on-rails - Integration of React + Webpack + Rails + rails/webpacker including server-side rendering of React, enabling a better developer experience and faster client performance.
Syro - Simple router for web applications
dropzone - Dropzone is an easy to use drag'n'drop library. It supports image previews and shows nice progress bars.
utopia - A content-centric Ruby/Rack based web framework.