Ask HN: What's a batteries-included framework that's React-first?

10 points by vimota 1 year ago | 11 comments
What's the closest thing to Rails, Laravel or Django but works really well with React or Svelte like Nextjs?

Doesn't seem like it exists - why not? React/Svelte clearly won on the frontend, but nextjs leaves a lot to be desired on the full stack DX. I'm looking for something more opinionated and full-featured like the traditional frameworks but that has first class support for modern frontend.

  • hot_town 1 year ago
    What you're looking for is Wasp -- https://wasp-lang.dev

    It's a true full-stack framework and even bills itself as a "Rails-like fullstack framework for React, NodeJS, & Prisma"

    It manages all the boilerplatey stuff for you like Auth, Routes, Jobs, TypeSafety, Email sending, Deployments

    • dudus 1 year ago
      I really like Astro and Quik.

      If you want to take a step further start from a template like astrowind.

      It's opinionated performant and works really well with react, Svelte, or any other fe framework. You can even mix and match them.

      But for what you are looking for you are better served by combining it with firebase or a firebase clone.

      • dudboi 1 year ago
        Nextjs feels like the de facto framework. Throw on Prisma and you should be all set. When you say it leaves a lot to be desired, what specifically do you think is lacking?
        • vimota 1 year ago
          There's a clear philosophical difference between a framework like NextJS and Rails/Django/Laravel. The former takes the approach of expecting users to integrate various third party libraries (ie. Prisma, PassportJS, ReactAdmin, etc) while the latter has it a lot of features built in as framework primitives and defaults.

          Some of those features: * ORM and DB migrations * Auth * Admin interface * Form handling and validation * Email sending * Background jobs

          Which is why you end up needing so many different SaaS templates for Nextjs that tie all these different libraries together into a pre-built package.

          • hot_town 1 year ago
            Exactly. Wasp, https://wasp-lang.dev, is the only framework in the React/Node/Prisma space that's taking this opinionated approach to full-stack development.

            For example, you get full-stack auth by just adding this to your config file:

            `auth.methods: { email: {}, google: {} }`

            Then you on-the-fly Auth UI components and all the necessary hooks

            • aosaigh 1 year ago
              "Convention over configuration" and it seems to be a dying philosophy unfortunately. Ember.js is probably the closest in the JavaScript world.
          • meiraleal 1 year ago
            It is node.js. You compose it with the libraries you want. No fullstack NodeJS backend got enough traction to be a name the community recommend.
          • vimota 1 year ago
            inertiajs.com is one interesting approach to solving this by making React work somewhat natively in Rails/Laravel/Django - are there others?
            • JLCarveth 1 year ago
              Deno's Fresh uses Preact
              • vimota 1 year ago
                Deno's Fresh is certainly a cool project! But I would say it's even further on the NextJS/bare-bones side of the spectrum.
                • 1 year ago