r/astrojs • • 1d ago Bravo

Built my wife's portfolio in Astro. Her only request for it was to be space themed

Post image
174 Upvotes

My wife asked me to build her a portfolio site and she had one request: make it space. She also loves video games, so there's a bit of Fallout in there too, but it only shows up after you send the contact form.

Built with Astro and hosted on Cloudflare.

The illustration took the longest by far, getting it to feel right took way more rounds than the actual build.

https://kayleighsengupta.com/


r/astrojs • • 1d ago

CLI vs API for an Astro storefront?

8 Upvotes

Im planning a small storefront with Astro and want to keep things as simple as possible. Whop has a CLI that lets you manage products and pricing from the terminal so Im considering pulling product data at build time and embedding the checkout on each product page.Would you go with this approach or use the API to fetch product data dynamically?


r/astrojs • • 1d ago

Do designers and developers still need to hand-code their portfolios in 2026/27?

2 Upvotes

Hardly anyone seems to hand code anymore, and I'm seeing a lot of vibe coded websites and portfolios. So what are the expectations for portfolios these days? Is it fine to use AI to bring a creative idea to life, or should we stick to what we can build ourselves?


r/astrojs • • 2d ago

Learn to build sites with astro

13 Upvotes

Seeking some advice on learning to build sites with astro. Coming with page builder background..Wordpress, Elementor, Bricks

Where to start with astro. How are you converting sites with astro?

Any beginner tutorials anywhere?


r/astrojs • • 2d ago

What kind of site would you NOT build with Astro?

21 Upvotes

I’ve been moving a lot of Wordpress sites to Astro and have been incredibly happy with them. I was wondering if there was a limit to what you would build on this framework.

I have one large site (1000+) pages with millions of monthly visits. It’s becoming unwieldy to manage in Wordpress and I keep being tempted to make the move but I worry that it would end up ruining my life.

What’s the largest site you’ve built on Astro?


r/astrojs • • 3d ago

I ported 10 remark/rehype plugins to Sätteri so they work in Astro 7

3 Upvotes

Astro 7 switched the default markdown processor to Sätteri. It's a lot faster, but it doesn't run remark or rehype plugins, so if you use rehype-katex, rehype-slug, rehype-autolink-headings etc. you're either stuck on the unified() escape hatch or rewriting them.

I needed a few of these for my own site and ended up doing ten:

  • satteri-slug (rehype-slug)
  • satteri-autolink-headings (rehype-autolink-headings)
  • satteri-katex (rehype-katex)
  • satteri-mathjax (rehype-mathjax)
  • satteri-sanitize (rehype-sanitize)
  • satteri-breaks (remark-breaks)
  • satteri-github (remark-github)
  • satteri-mdx-frontmatter (remark-mdx-frontmatter)
  • satteri-validate-links (remark-validate-links)
  • satteri-citation (rehype-citation)

Tests compare the output against the original plugin, so switching should not change your HTML.

The README also lists the plugins you don't need anymore because Sätteri does it natively. remark-gfm, remark-frontmatter, smartypants, directive, wiki links, sub/sup and a few more.

One thing that tripped me up: Astro adds heading ids after your hast plugins run, so anything that relies on ids (autolink, TOC stuff) sees nothing. Put satteri-slug first.

Demo site (built with Astro 7): https://satteri-plugins.js.org/ Repo: https://github.com/Ashish-CodeJourney/satteri-plugins


r/astrojs • • 3d ago

Oxfmt now supports formatting .astro files!

Thumbnail
elian.codes
31 Upvotes

For those using Oxfmt or Vite+ in their Astro projects, you can now format .astro files too!

It’s disabled by default, but enabling it is as simple as adding astro: true to your formatter config.

One small gotcha: you also need to install astrojs/compiler-rs as a dev dependency.

Under the hood, Oxfmt uses prettier-plugin-astro, so you no longer need a separate Prettier setup just for your Astro files.

Oxlint still only lints the script parts of .astro files, though. No template linting yet.

I wrote a short blog post about setting it up on my own website, including some before/after examples and configuration options:

https://elian.codes/blog/26-12-02-formatting-astro-files-with-oxfmt


r/astrojs • • 4d ago

Starquix v0.3.0: Import WordPress sites and ask an agent for changes

Post image
16 Upvotes

Hey everyone! After the original post a few people reached out asking how to import WordPress sites and is there a better way for clients to make changes.

tl;dr – yes.

  1. Import any WordPress website from URL.
  2. Ask a bot in Telegram to do small changes (5$/month Cloudflare worker).

Demos are in the comments. To support please share your feedback, star the repo, and tell your friends.

https://github.com/Mayhopar/Starquix/


r/astrojs • • 4d ago

Material 3 expressive site fully spec implemented in web with astrojs

Thumbnail
varifocal.github.io
5 Upvotes

Well i was making a site to host links for the android roms i was building and ended up liking the material 3 expressive style too much...


r/astrojs • • 4d ago

Jump from var(--font-body) in a component to the font entry in astro.config.ts

2 Upvotes

If an Astro font entry sets cssVariable to "--font-body", you can use that name throughout your stylesheets. A search for a CSS declaration comes up empty because the name lives in astro.config.ts.

I maintain CSS Variables, a language server that reads those font entries. Here’s a small way to try it in an Astro project with Fonts configured:

  1. In an existing font entry in astro.config.ts, set cssVariable to "--font-body".
  2. In a component’s <style> block, start typing font-family: var(--font and select --font-body.
  3. Use Go to Definition on --font-body. It takes you back to the font entry in the config.

The server reads the config without executing it. A literal name like "--font-body" works even before you start the Astro dev server.

The project page has the Zed and VS Code extensions and a screenshot of workspace completion in Zed. https://subagentura.tech/css-variables/


r/astrojs • • 4d ago

Google recent updates

0 Upvotes

Just wondering how your Astro websites performing after the recent Google update which seems to have killed many websites.


r/astrojs • • 6d ago

I made a free tool to try 1,400+ shadcn/ui blocks on a page and export it as an Astro project

Post image
32 Upvotes
I make shadcn/ui blocks at themes.dev, and with 1,400+ of them a grid of screenshots stopped being useful. So I built Studio: you put blocks on a page in the browser, see them live, and export a plain Astro project.

What the export looks like:
- src/pages/index.astro says which design shows each section
- your text lives in JSON (src/content/pages/index.json), checked by a schema at build time
- the blocks are source code in src/components, your style is shadcn/ui tokens in global.css

You can also type in your current site and it picks up your logo, colours and fonts, or press S on a section to flip through the other designs of that kind. Your text stays.

Free, no account, pages stay in your browser: https://www.themes.dev/studio/

I'd really like feedback from Astro people on the export. What would you change about the structure?

r/astrojs • • 6d ago

Academic Pages — Astro Edition: A modern Astro 7 + Tailwind v4 port of the classic Jekyll academicpages template (now in the Astro Themes directory)

Post image
19 Upvotes

r/astrojs • • 6d ago

I built cookieless analytics for Astro sites: one script tag, keeps sessions across ClientRouter navigation

Post image
50 Upvotes

I'm an SEO, and the cookieless analytics I used before kept losing referrers and navigation inside a visit and lacked integration with GSC and a proxy metric for "search result satisfaction", so I built my own.

(I also hate cookie banners which is why it's cookieless)...

What it does:

  • Counts visits without cookies and writes nothing to the visitor's device (no cookie, localStorage, sessionStorage or IndexedDB).
  • Still reports sessions: entry and exit pages, pages per session, bounce rate, duration, first-touch source.
  • The script is about 3 KB gzipped, loaded from your own site.
  • Works with Astro's ClientRouter. The session ID lives in a JS variable and survives navigation without a page load. A full page load starts a new ID, and the server joins it to the running visit through a daily-rotating salted hash.

How it works with Astro: add the script tag to your layout. Events go to an EmDash instance (a CMS built on Astro and Cloudflare), where the reports live. That instance runs on your own Cloudflare account, with the data in your own D1 or Postgres. If you don't already use EmDash, there's a one-click Cloudflare deploy for a fresh one. So it isn't a drop-in dashboard for a static Astro site on its own..

Trade-offs:

  • No cross-day returning visitors, because the salt changes daily.
  • Two people behind one shared network address, with the same browser and device type, can merge into one session.
  • No heatmaps or session replay.

Free, Apache-2.0. Source and docs: https://github.com/infinitnet/cookieless-analytics

I'd like feedback on the setup for a plain Astro site, especially whether the EmDash requirement is a dealbreaker.

...and if anyone wants to contribute PRs, those would be more than welcome too!


r/astrojs • • 6d ago

Your remark/rehype plugins don't run on Astro 7's Sätteri – drop-in ports

3 Upvotes

Astro 7 moved to Sätteri, a Rust Markdown engine. It's fast, but it has its own AST, so rehype-katex, rehype-slug, rehype-sanitize etc. stop working.

I ported the 10 most-used ones. Each is tested against the original plugin's output, so it's a swap, not a rewrite: slug, autolink-headings, katex, mathjax, sanitize, breaks, github, mdx-frontmatter, validate-links, citation.

The README also has a table of plugins you can just delete, because Sätteri has them built in (gfm, frontmatter, smartypants, directive…).

Live demo: https://satteri-plugins.js.org Repo: https://github.com/Ashish-CodeJourney/satteri-plugins

Which plugin is blocking your upgrade? I'll port the next most-requested one.


r/astrojs • • 5d ago

Cyber Monday: my Astro templates are $149 lifetime (normally $499), and each one comes with a free open source CMS wired in

0 Upvotes

I make Velocity the starter kit and CMS for Astro sites, Premium is a set of Astro templates (11 so far) for real businesses: real estate, restaurant, law firm, construction, auto detail and more. Today they're $149 for lifetime access to all of them and all future templates, instead of $499. Use code CYBERMONDAY150 at checkout.

What makes them different from most template packs: each one also comes in a version already wired to Velocity CMS, our open source (MIT) CMS. Your client can click on the page and edit text and photos, and form submissions land in a built-in CRM. You can also use the plain static version. It's your choice.

https://deployvelocity.com

Deal: https://deployvelocity.com/premium

The CMS itself is free whether you buy or not: https://github.com/Velocity-Astro/velocity-cms

Happy to answer anything, including what's still rough. It's just me maintaining this, and the CMS is in open beta.


r/astrojs • • 7d ago

TenonCMS - A monolithic headless CMS for Astro, Nuxt and Tanstack-Start

Post image
36 Upvotes

Hi everyone!

Maybe you have already seen my post on r/webdev, but I figured it would also make sense to post this here.

I've been working as a freelancer for SMBs for the last few years. Often my clients asked and required a CMS and since I dislike working with Wordpress, I used a setup of Nuxt and Astro depending on clients and requirements with a headless cms.

While that worked well, it always felt like I had to choose between easy setup (3rd party hosted cms with a vendor lock-in risk) or a second service i had to run, deploy and maintain. Markdown and fully static also were not ideal for my use case. PayloadCMS is good, but I usually don't write react and Nextjs feels heavy.

This is why I built TenonCMS which is a CMS Package you can just install into your vite-based app. It's essentially a plug-and-play package that you can use with Astro, Nuxt and Tanstack Start or any other vite-based framework. It even supports being headless if you want to use it with a different language or stack.

It is entirely free and MIT licenced.

Some notable features:

  • Content modeling: In Typescript (so code as a config)
  • Supported Frameworks: Astro, Nuxt, Tanstack Start
  • Supported DBs: SQLite, Turso, Postgres, PGlite, Durable Objects
  • Supported Deployment Targets: Node, Cloudflare (DO), Vercel
  • Drafts and versions: drafts, scheduled publishing and a version history
  • Localization: localized content and a localized admin
  • Pages and SEO: Prebuilt, extensible presets that allow nested pages, SEO fields, sitemap, robots.txt and menus
  • Live preview: a visual editor and an admin bar on your own pages
  • Media: a media library with image transformations (Local + S3)
  • Users and access: password, passkey, magic link or email code, with roles, invites, access rules and API keys
  • Operations: Email (SMTP, CF Email Service), background jobs, cron schedules, webhooks, backup and restore
  • Customization: your own fields, admin pages, styles and plugins
  • HTTP API: a REST API with a typed browser client, for a frontend on another origin
  • CLI: Scaffold your application fast with a starter template and create backups, etc. with it

Website: TenonCMS

Repo: https://github.com/SuddenDev/TenonCMS

Astro has first class support and is one of the main frameworks I wanted to support.

Feel free to try it out! I'm happy to get some feedback and users!

If you have any feature requests, let me know. PR and contribution welcome!


r/astrojs • • 7d ago

I recreated a macOS desktop with Astro and Vue

Post image
4 Upvotes

I'm built a small Mac app, and I wanted people to be able to see how it works without installing anything.

So I recreated a macOS interface in the browser: a desktop cluttered with files, a Finder window, and the app's radial menu.

The page itself is static HTML. The whole demo is one Vue island, hydrated with client:media.

On phones the island never loads, so they get a short video instead and no demo JavaScript. On desktop it's about 80 KB of JavaScript gzipped for Vue and the demo together.

Most of the app's actions work: sorting by category or date, renaming, removing duplicates, and converting. Each action shows a preview first, and ⌘Z undoes everything.

You can try it here: https://anplasay.com/demo


r/astrojs • • 8d ago

I made a free visual editor that allows you to design in your codebase, because I’ve had enough of bad UIs made by AI

Thumbnail
github.com
35 Upvotes

Hey guys, my name is Andrea 👋 still undecided if I'm more a dev or a designer, but for sure a nerdy girl who loves building tools :)

I'd just like to show a new side project of mine, a free, open source "Figma inside your codebase" for people coding with AI agents

Click an element in your running app, change spacing/colors/states visually, and it writes the diff into your actual source.

Works next to Claude Code and Cursor, no AI credits, no lock-in. Apache 2.0.
npx feega to try it or download the extension for VS Code / Cursor / Windsurf etc.

Feedback super welcome, especially the harsh kind!!!
Repo: GitHub.com/andreabuttarelli/feega
Website: Feega.app
Docs: docs.feega.app

Happy coding! 🌈💕


r/astrojs • • 7d ago

WTF is Astrojs?

0 Upvotes

I have never heard of Astrojs. just today casually I set my agent with some info information to create a website with requirements of Framer motion, and animations and set it to scaffold the app accordingly. The go to choice for my agents till now were nextjs. I was took note of this framework 'Astro' and just proceeded to keep building and customize. before submitting my sitemap in gsc, just wanted to run a simple PageSpeed and was literally shocked to see almost perfect scores on every category. something that used to take me so much time and correctios in nextjs to get a better score was easily done like oneshot with astrojs. Really impressed, now really planning on converting all my sites and other clients site to astrojs. kudos to the team behind it!

attaching the scores as proof: https://pagespeed.web.dev/analysis/https-blanquine-com/um8fuzfbiz1iv7u9rhazxq?form_factor=mobile


r/astrojs • • 8d ago

I built goastro, a local visual editor for Astro Markdown and MDX

23 Upvotes

I wanted a simpler way to make content edits on my Astro sites. Fix a typo, change a publish date, or swap an image, then see exactly what changed before saving. So I built goastro.

Run it from your Astro project and it opens an editor in your browser. Your content stays in the .md and .mdx files already in your repo. The editor runs locally, with no account, no telemetry, and no content uploads.

  • Write or edit the source. Edit headings, links, lists, and images visually, or switch to the raw Markdown. Frontmatter fields like dates and tags have their own form.
  • Keep your MDX components intact. Visual edits preserve components, imports, and HTML as written.
  • Review before saving. You get a diff before each save, and goastro backs up the original file.
  • Preview the actual page. After saving, you can see the page rendered by your Astro dev server. You publish through your usual workflow.

It’s MIT-licensed and available on npm. To try it, run this from your Astro project with Node.js 22.18 or newer.

npx u/goastro/goastro

It also opens plain Markdown and MDX folders, so you can point it at a docs/ folder.

Try the browser demo · GitHub · npm

If you edit an Astro site regularly, what would still send you back to your code editor? I’d especially like to hear which MDX patterns or frontmatter setups I should test next.


r/astrojs • • 11d ago

Rebuilt our company site with Astro 7 + Tailwind v4: SK/EN i18n, Pagefind, a contact API sidecar, self-hosted deploy

Post image
49 Upvotes

I rebuilt the website of the company I work for (ictsolutions.net) from a Hugo theme on GitHub Pages to Astro 7 + Tailwind v4. A few things that might be useful if you're building something similar:

i18n. Slovak at /, English at /en, linked with hreflang. On the first visit an inline script in <head> picks the language from navigator.languages and redirects to the hreflang counterpart before paint, so there's no flash. A manual switch is stored and always wins, and crawlers are skipped so both versions get indexed.

Static output + one small API. The site is fully static, served by nginx. The only dynamic part is the contact form: a ~300-line Node sidecar verifies Cloudflare Turnstile and creates a ticket in our helpdesk (FreeScout) via its API. Traefik routes /api/contact to it. All secrets stay in that container.

Design tokens. Brand colours, radii, shadows and type live in Tailwind v4's @theme, so the whole site pulls from one place.

Blog. Pagefind for search (indexes the built HTML, no server), Satori for OG images.

Deploy. GitHub Actions builds Docker images to GHCR, and a self-hosted runner deploys them to our VM: develop goes to a preview, a release tag goes to prod. Production never runs :latest.

Migration. nginx has a 301 map for every old Hugo URL and the old PDFs. nginx matches the decoded URI, so file names with spaces and diacritics go into the config as-is, no %20.

I wrote up the details on my blog: https://rebjak.com/en/blog/new-ictsolutions-website/

Happy to answer questions about any of it.


r/astrojs • • 10d ago

Using GitLab as a CMS for Astro websites

10 Upvotes

Do you see much value in connecting a dedicated CMS to an Astro website?

As far as I understand, most CMS solutions for Astro are essentially user-friendly editors for the md/mdx files used in content collections.

In other words, an Astro CMS is not quite the same as something like WordPress, where you can see a near-final version of the page while editing. I've tried Decap and TinaCMS, although that was at least six months ago.

At the moment, GitLab itself, together with the source code repository, seems like the best CMS for Astro in my case. We have a simple agreement that the content manager can only create and edit blog posts written in md/mdx. All changes are made directly in the main branch, after which the site is automatically built and deployed to production.

What do you think? Am I missing any major advantages that a dedicated Astro CMS would bring to this workflow?


r/astrojs • • 11d ago

Can this be done with astro?

2 Upvotes

We're revamping the site for our product launch.

And we are planning to move away from Framer, and are considering Astro.

But, I'm not sure how this thing can be done.

The idea is, we have pages that requires aimated illustrations (coded).

The number of illustrations are high so we want scalable implementation.

Main bottleneck: we don't want to spend time changing each just bcoz our product UI changed.

There are two types of images:

  1. Chat mockups - where we show conversations based on context and situations
  2. Product showcase - where we give a realistic view of product while zooming in and showing stuff.

So, can this be done in a scalable way??

PS. I know this sounds a bit like programmatic SEO but for illustrations.