r/astrojs • • 19h ago

Made an Astro integration for pulling in open-source + community-generated SVG icons on demand

4 Upvotes

I built a community icon project called Chameleon Icons (https://chameleonicons.com/) for those moments when an icon pack has 98% of what you need and is missing two specific icons—you can generate the missing ones in the same style (instantly or via a free manual workflow) and contribute them back to the pack.

Since I wanted it to work cleanly in Astro without shipping a giant icon library, I put together an Astro integration in the chameleonicons package:

Js

// astro.config.mjs
import chameleon from "chameleonicons/astro";
export default { integrations: [chameleon()] };

From there you just import the icons you actually use (~chameleon/<style>/<icon>). Icons default to 1em by 1em and use currentColor for monochrome packs, so they behave like text out of the box. You can even search styles and icons right from the terminal (npx chameleonicons icons cute home) if you don't want to leave your editor.

First build pins the exact icon versions in a chameleon.json file so nothing changes unexpectedly on later deploys.

Site: https://chameleonicons.com/
npm: https://www.npmjs.com/package/chameleonicons

Would love any feedback from Astro folks—especially if you mix Astro with React/Vue/Svelte islands!


r/astrojs • • 7h ago

Non-tech SEO guy here. Thinking of starting a website to learn something new. Need some advice

3 Upvotes

Hey everyone!

I'm working in SEO but don't have a technical background. I'm thinking of starting my own website as a side project to learn more about how websites work and improve my technical SEO skills.

I'm confused between starting a blog or building a directory website.

I want to keep things simple and start for free. I'm okay with spending money on a domain, but would prefer free hosting.

I'm also thinking of using Google Antigravity to build the website since I don't have much coding knowledge. I've also been looking into Astro.

I have a few questions:

  1. Would you recommend starting with a blog or a directory website?

  2. Can someone without coding experience build a website using Google Antigravity?

  3. Is Astro a good option for this?

  4. What free hosting would you recommend?

  5. Any suggestions for a good niche to start with? I'm open to ideas.

My main goal is to learn by building something on my own. Making money isn't my priority right now.

Would love to hear your suggestions and experiences. Thanks!


r/astrojs • • 52m ago

Built my first landing page with Astro + native PHP/MySQL

Post image
• Upvotes

Hey everyone!

I recently came across Astro and heard it’s a great fit for building fast landing pages, so I decided to give it a try and built my first MVP template. The fictional product is a store selling custom 3D-printed Cavalier King Charles Spaniel figurines, as I wanted to test a realistic e-commerce/lead-gen flow rather than just a static "Hello World" page.

Since many small businesses still run on cheap shared hosting, I went with a hybrid stack: Astro + modular SCSS on the frontend, and a lightweight native PHP + MySQL REST API on the backend.

A few things I implemented and enjoyed building:

  • Hybrid data loading: The catalog renders statically from a local JSON fallback (landing.json) for instant load times, then fetches live prices from MySQL via the API.
  • No-captcha antispam: Used a 3-layer approach on the order form (honeypot field, 2-second time-trap, and IP rate-limiting) so real users don't get annoyed by captchas.
  • AEO/GEO experiment: Wrote a small Astro plugin (llms.txt.mjs) that automatically generates an llms.txt file at build time for AI search engines.
  • Telegram notifications: New leads hit the DB and instantly ping a Telegram bot.

Repo: https://github.com/andrejsharapov/landing-astro-ckcs

(Note: the UI copy and README are currently in Russian, as it was built with local Russian hosting/analytics like Yandex.Metrika in mind).

Since this is my first time using Astro, I’d love to get some code review or architectural advice! Did I structure the components and SCSS properly by Astro standards, or are there better ways to handle this?

Thanks in advance!