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.

Astro DB

168 pointsby MatthewPhillipsabout 1 year ago

18 comments

snideabout 1 year ago
Comments coming from a years-long Astro user that loves it. I use it to power my own website. I&#x27;m familiar with this space because I also work at Xata (take that as a disclosure).<p>This looks like a pretty simple data solution that might work for Astro&#x27;s audience (content sites and hobbyists). They&#x27;ve split the hosting into their studio product to provide a way to earn revenue. Essentially you host the DB with them and can access it remotely, but could also host it however you want, you&#x27;d just lose the Studio editor.<p>The Studio editor itself is pretty basic at the moment with a table view and a way to check SQL calls. You can&#x27;t build schemas in the UI yet and what you get is mostly a dev wrap of existing tools (like Drizzle) that let you interact with your DB. Their demo shows the limitations here, with things like &quot;email&quot; not being able to validate in the studio editor. My guess is that&#x27;s coming later, but I might have missed it in the docs. Either way, it&#x27;s nice that your config is stored at the code layer.<p>Most of these small websites that Astro is great fit need small CMS systems, and studio doesn&#x27;t look to provide any way to deal with images (at least on first check) so that&#x27;s sort of a bummer. You&#x27;d need to wire up some references with Cloudflare I guess. Still reading here, but it&#x27;d be cool if that came natively. Storing, retrieving and resizing images is a pain. The column types allowed are pretty small (text, number, bool, date, json).<p>While simple. It looks like it&#x27;ll be relatively speedy with retrieval because of it.<p>Right now though, as an actual CMS editor (which my guess is what most Astro folks really want) Studio feels way to simple to tell a client to use. I&#x27;m interested to see whether they go more in the direction of a generic database store (implied from the name) or more of a CMS to compete with the natural pairings of Contentful, Statamic and others. Webhooks as a launch feature is great! That&#x27;ll help folks out.<p>Either way. I love this team and their perspective. They build cool stuff, open source a lot of it (check out Starlight for docs), and I&#x27;m excited to see where this one goes over time. Congrats on the launch.<p>Now I need to update my Astro site to 4.5 :)
评论 #39687062 未加载
评论 #39684862 未加载
drewdaabout 1 year ago
I get that all of the current generation of front-end&#x2F;back-end frameworks promised their investors that they&#x27;d figure out how to sell developer services, rather than just offer open-source components with some extra commercial support options...<p>But I do wonder how this type of thing will actually compete against a billion headless CMSes and a million PaaSes already on the market...
评论 #39684851 未加载
amadeuspagelabout 1 year ago
Love that they use comments as an example. I miss this with many static blogs. HN comments are great, but I sometimes want to read a discussion between people who&#x27;ve actually read the article.
MatthewPhillipsabout 1 year ago
Hey, I&#x27;m one of Astro&#x27;s co-creators, happy to take any questions on Astro DB you may have!
评论 #39684528 未加载
davepeckabout 1 year ago
I dig Astro and use it to build my blog and several other tiny mostly-static sites. I&#x27;m not sure that the hosted database service fills a need I have but, in general, supported SQL integration seems like a useful addition.<p>As an aside: there are days when I wish I could avoid using the Astro component model entirely, do everything in Preact (or whatever), and still use the `client:*` directives when appropriate. I realize this is easier said than done and also probably not a reasonable thing for Astro itself to try and target -- but moving between Astro components and framework components always has just enough friction that it&#x27;s something I think I&#x27;d enjoy using.
评论 #39683986 未加载
DrDroopabout 1 year ago
How is something like this or other services like cloudflare&#x27;s D1 an actual scalable solution for any serious app? Is it the pattern where you give every customer, team or &quot;workspace&quot; it&#x27;s own database and manage this through some distributed kv store? I am just trying to understand how this is a relevant solution and not some weird SQLlite fetishism you see going around.
ssernikkabout 1 year ago
A lot of Astro news for the last 2 days:<p>- 4.5 release<p>- Volar $10,000 grant<p>- Astro Studio&#x2F;DB
评论 #39684427 未加载
dfreireabout 1 year ago
So what&#x27;s the added value over Turso + Drizzle?
评论 #39683147 未加载
byt3h3adabout 1 year ago
Astro on a roll lately! Excited for the rest of Launch Week<p><a href="https:&#x2F;&#x2F;x.com&#x2F;astrodotbuild&#x2F;status&#x2F;1767294849848582202" rel="nofollow">https:&#x2F;&#x2F;x.com&#x2F;astrodotbuild&#x2F;status&#x2F;1767294849848582202</a>
LostLocalManabout 1 year ago
What do they do to mitigate the roundtrip latency introduced by using a hosted database on a separate network? Is the idea that you wouldn&#x27;t use this if you have pages that do many queries to render?
评论 #39684458 未加载
seabassabout 1 year ago
The ORM API is very reminiscent of Drizzle, which I think was a great call on Astro&#x27;s side. I have so far only used Astro for SSG, but seeing code like this [1] has me interested to see how far it can go for SSR tasks that you might currently use metaframeworks such as Next&#x2F;Nuxt&#x2F;SolidStart&#x2F;SvelteKit for.<p>[1] <a href="https:&#x2F;&#x2F;docs.astro.build&#x2F;en&#x2F;guides&#x2F;astro-db&#x2F;#insert" rel="nofollow">https:&#x2F;&#x2F;docs.astro.build&#x2F;en&#x2F;guides&#x2F;astro-db&#x2F;#insert</a>
评论 #39684335 未加载
tutfbhufabout 1 year ago
I&#x27;m currently thinking about using either Astro or SvelteKit for my next project. Astro DB suggests that Astro aims to be more than just a static site builder. However, all over the internet, I read that Astro is primarily a static site builder, and if I want to build a fully-featured web application, I should use something like Next.js or SvelteKit. Now, I&#x27;m a little bit confused where Astro DB fits into this picture.
评论 #39684011 未加载
gigatexalabout 1 year ago
Interesting and even more compelling pricing, indeed a very generous free tier.<p>I only wish this wasn&#x27;t a javascript heavy thing and that I could interface with it in my language of choice. But as it says on the tin this is integrated well for the greater Astro ecosystem.
评论 #39689490 未加载
oDotabout 1 year ago
Slightly tangential -- anyone knows how does libSQL compare to upstream SQLite for shipping with a desktop app or in the browser via wasm?<p>Edit: I&#x27;ve read the readme, hoping for a take from anyone who gave it a try
dosplatosabout 1 year ago
Personally, I love Astro and use it personally (and at work). I hope this turns out as a great start to generating revenue.
factormetaabout 1 year ago
so it is basically using libSQL instead of SQLlite?
评论 #39685256 未加载
评论 #39684357 未加载
nsonhaabout 1 year ago
why are they calling a CMS a DB?
pmcfabout 1 year ago
Not to be confused with Astra DB, Cassandra as a Service.. <a href="http:&#x2F;&#x2F;astra.datastax.com" rel="nofollow">http:&#x2F;&#x2F;astra.datastax.com</a>
评论 #39688364 未加载