This document provides operational context, development commands, and design system guidelines for contributors and AI coding agents working on the Layer5 Recognition repository.
The Layer5 Recognition Program site (badges.layer5.io) celebrates community member milestones, contributions, and certifications across Layer5 and Meshery projects through digital badges.
- Framework: Gatsby 5 / React 18
- UI & Styling:
@sistent/sistentcomponent library withstyled-components - Data & State: TanStack React Table, TanStack React Query, local JSON metadata
Use the repository's existing Make targets or npm scripts for local development:
| Task | Make Target | npm Script | Description |
|---|---|---|---|
| Setup | make setup |
npm install |
Installs project dependencies. |
| Develop | make site-dev |
npm start / npm run develop |
Starts the Gatsby development server at http://localhost:8000. |
| Build | make build |
npm run build |
Generates the static production build into public/. |
| Clean | make clean |
npm run clean |
npm run clean removes Gatsby cache/build artifacts; make clean also restarts the site. |
Key directories and files for day-to-day work:
src/src/pages/: Gatsby route files and pages.src/sitecomponents/: Reusable presentation components (e.g.,BadgeGrid,Faq).src/badgesInfo.json: Badge metadata containingslug,label,title,description, and image paths (locationorimageSource).
static/: Static assets, including badge images and icons.gatsby-config.js: Site metadata, Gatsby plugins, and source filesystem configuration.package.json: Node dependencies and build scripts.Makefile: Standard development automation targets.
This repository consumes the Layer5 design system via @sistent/sistent with styled-components.
- Component Reuse: Prefer existing
@sistent/sistentUI primitives before creating custom components. - Design Tokens: Prefer existing Sistent theme/token values over hardcoded brand colors.
- Design Guidance Reference: Consult the canonical Sistent design contract at layer5io/sistent DESIGN.md. Do not create or maintain a separate
DESIGN.mdin this repository. - Version Compatibility: This repository pins
@sistent/sistent@^0.15.12. Because the upstreamDESIGN.mdreflects modern Sistent releases (v0.21.2+), always verify tokens, components, and exported APIs against the locally installed0.15.12package before adopting newer patterns.
- Commit Sign-Off (DCO): Every commit must include a Developer Certificate of Origin sign-off (
git commit -s -m "..."). - Target Branch: Submit pull requests against the
masterbranch. - Verification: Always verify that the project builds cleanly without errors before submitting changes:
npm run build