TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Blitz.js Now in Beta (Batteries Included Framework Built on Next.js)

262 pointsby flybayerover 4 years ago

29 comments

iynover 4 years ago
I&#x27;ve been tinkering with redwood.js for the last couple of months. I quite like it and it definitely speeds things up, compared to rolling out everything yourself. But since this is alpha-grade, there have been a lot of breaking changes -- which I totally understand, but it&#x27;s been PITA to work on upgrades vs my side project. To the point: how does the upgrade situation looks like with Blitz.js? What are the plans for breaking changes now that&#x27;s in a beta? Also, what would be the biggest differences between redwood &amp; blitz (besides blitz being based on next)?<p>Lastly, thank you for working on this project&#x2F;problem, definitely a lot of potential here. I&#x27;ve also seen that you really care about the community around the project, which is awesome!
评论 #26168093 未加载
yepthatsrealityover 4 years ago
A framework of framework of frameworks. Good job JS community!
评论 #26177086 未加载
评论 #26176381 未加载
cwackerfussover 4 years ago
I have been a tad skeptical about how Blitz.js would accomplish &quot;batteries-included&quot; elegantly, but 5 min into reading the (very thorough) docs and it seems like a fantastic amount of abstraction to work with. You&#x27;re a genius flybayer!<p>2 questions:<p>1. How the docs read right now, I&#x27;m cautious about the &quot;recipes&quot; concept. It&#x27;s not clear why I&#x27;d need to use a recipe to install Tailwind instead of installing Tailwind via NPM. I&#x27;d love the docs to explain what &quot;coupling,&quot; if any, occurs with Blitz &lt;&gt; a recipe&#x27;s dependencies, so I can better understand what I&#x27;m opting into by choosing the framework.<p>2. Is there a roadmap for API-only implementation, like Rails? If I want to use some of my Blitz endpoints from another client is that possible?<p>Thanks!
评论 #26169257 未加载
jrumbutover 4 years ago
This sounds very cool but the code sample on the front page didn&#x27;t have instant appeal for me.<p>Once I Googled a little and found out what it was doing it looked awesome, but it was very noisy if you don&#x27;t know the components of Blitz.<p>Compare it to this code from early in the ActiveRecord guide:<p>&quot;class Product &lt;<p><pre><code> ApplicationRecord </code></pre> end&quot;
评论 #26173205 未加载
quaffapintover 4 years ago
The one thing that was holding me back from going forward with Blitz is the rapid amount of changes, so this is very exciting. I&#x27;m using NextJS with NextAuth and Prisma right now, but I want it more integrated with more of a server aspect to host. Blitz is such a great idea.<p>Congrats on the beta!
akbar501over 4 years ago
TL;DR Give Blitz a try.<p>I&#x27;ve been developing my app with Blitz. It has been an extremely productive framework to work with.<p>The following are a few of the productivity boosts that I like:<p>1. It includes authentication plus there&#x27;s a good library for authorization (blitz-guard) so auth is a breeze.<p>2. The generator is helpful when I started with Blitz, but use it less now.<p>3. The community is friendly and helpful. ex. Check out this post on skeleton loaders <a href="https:&#x2F;&#x2F;andreas.fyi&#x2F;engineering&#x2F;nextjs-auth-skeleton-loaders" rel="nofollow">https:&#x2F;&#x2F;andreas.fyi&#x2F;engineering&#x2F;nextjs-auth-skeleton-loaders</a><p>4. The integration with Prisma is buttery smooth. In your UI code you call a function that has the database access. Blitz converts the function calls into API calls and runs your database code on the server. When Prisma is not enough you can drop to `db.$queryRaw` to write SQL directly.<p>5. Personally, I dislike fiddling with 800 libraries to get a project up and running. Blitz includes Jest, Prettier, and everything else you need so on so that you&#x27;re productive from day 1.
评论 #26177296 未加载
jack_rimintonover 4 years ago
I love how similar this is to Rails, specifically the generate commands.<p>I&#x27;m going to enjoy playing with this! well done
aogailiover 4 years ago
Reminds of Meteor 2.0<p><a href="https:&#x2F;&#x2F;blog.meteor.com&#x2F;meteor-2-0-is-here-867b0ab4f8df" rel="nofollow">https:&#x2F;&#x2F;blog.meteor.com&#x2F;meteor-2-0-is-here-867b0ab4f8df</a>
randtrain34over 4 years ago
I&#x27;ve tinkered with this in side projects and it&#x27;s really a joy to work with. The setup for a basic CRUD app w&#x2F; GraphQL and Auth&#x2F;plugins&#x2F;CSS frameworks takes ~1minute, and the generated code is pretty extensible.
domanoover 4 years ago
Is there a possibility to scale Blitz.js based applications? It seems as if there is some stateful behaviour to achieve the deep integration of logic between back- and frontend. Would scaling be possible with sticky sessions?
评论 #26173271 未加载
html5webover 4 years ago
Just tried it my my team, it looks promising. You can literally make the full stack app in 5 minutes using Blitz. It supports SQLite, PostgreSQL an MySQL out of the box.
quangvover 4 years ago
Reminds me of Meteor 2.0 except built upon Next.js<p>Interesting to see where it go, +1 for a batteries included RoR like framework for JS&#x2F;TS.
siquickover 4 years ago
This is pretty cool but the thing that all JS frameworks seems to miss out is an admin area. Why?<p>This is one of the main reasons I&#x27;ll continue to pick Django as a back-end. Django + DRF does pretty much everything you would ever need from a framework with the added bonus of a fully working and customizable admin straight out the box.
评论 #26173519 未加载
评论 #26178246 未加载
helloiloveyouover 4 years ago
Amazing!! The idea to generate an API when compiling is very good.<p>The only thing that is holding me back is that as far as I understand Prisma doesn&#x27;t support cascading deletes.<p>Meaning that if I have to delete a user, then I have to manually delete all his projects, comments, posts, etc... which is not nice.
评论 #26168839 未加载
virancheeover 4 years ago
Can a backend for Cloudflare Workers become available?<p>Workers does not support Node APIs (<a href="https:&#x2F;&#x2F;developers.cloudflare.com&#x2F;workers&#x2F;learning&#x2F;how-workers-works" rel="nofollow">https:&#x2F;&#x2F;developers.cloudflare.com&#x2F;workers&#x2F;learning&#x2F;how-worke...</a>)<p>There is documentation of deploying a NextJS app (<a href="https:&#x2F;&#x2F;developers.cloudflare.com&#x2F;pages&#x2F;how-to&#x2F;deploy-a-nextjs-site" rel="nofollow">https:&#x2F;&#x2F;developers.cloudflare.com&#x2F;pages&#x2F;how-to&#x2F;deploy-a-next...</a>)
评论 #26180059 未加载
xeon06over 4 years ago
Been using in hobby projects for a bit now, absolutely fantastic framework, especially the data handling. It also gives you a few goodies by default that Next.js doesn&#x27;t.
connectsnkover 4 years ago
What does the `Zero-API` data layer abstraction imply? Asking because I want to understand if the frontend and backend can be deployed on different web servers.
评论 #26175017 未加载
aericsonover 4 years ago
Amazing how fast this is moving, congrats! Looking forward to seeing it being used more broadly.<p>Just saw that they have links to &quot;Made with blitz&quot; on their wiki in case anyone is interested: <a href="https:&#x2F;&#x2F;github.com&#x2F;blitz-js&#x2F;blitz&#x2F;wiki#-made-with-blitz-include-link-to-repo-if-open-source" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;blitz-js&#x2F;blitz&#x2F;wiki#-made-with-blitz-incl...</a>
jacktheturtleover 4 years ago
Been dabbling with this framework back and forth. Excited to see it in a stable spot. Finally gonna build a medium sized project on it now.
dyejeover 4 years ago
&gt; At build time, that function import is swapped out with an auto generated HTTP API.<p>This was surprising to me, I thought it would be focused on SSR.
iandevover 4 years ago
This sounds very interesting to me as my team has had some real struggles figuring out how to deal with things like authentication in Next.js. In one case, we&#x27;ve rolled our own oauth with a completely separate express api. In another, we still haven&#x27;t quite decided. I&#x27;ve been on the lookout for a sort of Node equivalent of Rails.
评论 #26173009 未加载
loosetypesover 4 years ago
In the spirit of Rails, does Blitz include a repl analogous to irb? Something that automatically loads in your models and maybe config?<p>It’s been a while since I’ve used Rails but that interactive environment was my favorite way to get familiar with activerecord models.
评论 #26176931 未加载
ryanlanciauxover 4 years ago
This is one of the things I&#x27;m most excited about for frontend development. Glad to see it&#x27;s in beta!<p>Will have to give this more use on something beyond &quot;Hello World&quot; soon.
chaostheoryover 4 years ago
Does blitz have typescript support? I’ve looked everywhere on the site and there’s no mention which is a bad sign. It’s too hard to build large apps with vanilla JavaScript
评论 #26168045 未加载
评论 #26176769 未加载
markehover 4 years ago
Blitz is a huge time saver for our team&#x27;s productivity!
asidialiover 4 years ago
Awesome work! Love the stack.<p>How does this compare with Supabase?
评论 #26168192 未加载
yumrajover 4 years ago
How does this compare with Sails, which also seems like a full stack MVC framework..<p>I&#x27;m not too well-versed in the JS world.
supert56over 4 years ago
I hadn’t heard of Blitz until now but am loving the look of it. Congrats on the beta!
quaffapintover 4 years ago
he