AI Friendly Badge

Website footer badge signalling AI "friendliness"

About This Project

AI-Friendly-Badge is a small, reusable footer badge that tells both human visitors and AI systems that a website welcomes AI crawling, indexing, and training. The badge displays a package icon with the label "AI Training Friendly" and a details line linking to the site's ai.txt and llms.txt files, which provide machine-readable AI permissions and structured site information respectively. The project is intended to make a site's stance on AI access explicit rather than leaving it implicit.

The component is distributed in two forms: an Astro component with configurable props for file paths, text, and custom classes, and a framework-agnostic HTML and CSS version. Styling is controlled through CSS variables, with separate values provided for dark and light backgrounds, and the icon includes a subtle pulse animation. The implementation emphasises accessibility through focus states, ARIA labels, and semantic HTML, and it is responsive across screen sizes. The repository is primarily HTML and is tagged with astro, svg, and frontend-components.

The badge is most useful to website owners who want to publish an explicit AI permissions policy and display it in a visible, consistent way, such as personal sites, blogs, and documentation sites built with Astro or plain HTML. It is released under the MIT License.

Project Details

Tags

ai-trainingastrobadgesfrontend-componentssvg

Explore More Projects