view_component
Roda
Our great sponsors
view_component | Roda | |
---|---|---|
74 | 21 | |
3,148 | 2,037 | |
1.3% | - | |
9.0 | 8.0 | |
about 19 hours ago | 7 days ago | |
Ruby | 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.
view_component
- Things I wish I knew before moving 50K lines of code to React Server Components
-
Supercharged table component built with ViewComponent
When searching for examples of table components built with the ViewComponent gem, I was surprised to find none. After some inquiries, I came across examples that worked like this:
-
More expressive APIs for View Components
View components offer two primary ways to interact with the component: passing arguments to the initializer and using slots:
- Have you been using ViewComponent. What advantages do you see in it?
-
How can I integrate VueJS into a rails 7 application? What is the workflow?
For example, splitting out views into partials? Or the new ViewComponent feature that's becoming quite popular - https://viewcomponent.org/
- Helpers vs Components
-
Vanilla Rails view components with partials | Stanko K.R.
I used to do "pure ruby" approach to that -- but basically wound up realizing I was re-inventing github's view_component. Their design goals were similar enough to what I was trying to do, that it made more sense just to use that, rather than try to re-invent it myself.
-
Gnarly Learnings from March 2023
ViewComponent
- Os benefĂcios de componentizar as views do Rails
-
Does anyone kind of miss simpler webpages?
The linked one is my Rails implementation, written for ViewComponent. The official version uses Nunjucks.
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.
[0]: https://roda.jeremyevans.net/
[1]: https://sequel.jeremyevans.net/
-
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?
Stimulus - A modest JavaScript framework for the HTML you already have
Ruby on Rails - Ruby on Rails
turbo-rails - Use Turbo in your Ruby on Rails app
Hanami - The web, with simplicity.
Tailwind CSS - A utility-first CSS framework for rapid UI development.
Sinatra - Classy web-development dressed in a DSL (official / canonical repo)
cypress-rails - Helps you write Cypress tests of your Rails app
Cuba - Rum based microframework for web development.
hotwire-rails - Use Hotwire in your Ruby on Rails app
Padrino - Padrino is a full-stack ruby framework built upon Sinatra.
i18n-tasks - Manage translation and localization with static analysis, for Ruby i18n
rack-app - minimalist framework for building rack applications