Skip to content

feat: add frontend-astro module #6

@ronak-create

Description

@ronak-create

Summary

Add Astro as a frontend option for content-heavy and static sites.

Why

Astro is the dominant choice for documentation sites, marketing pages, and blogs.
It supports React/Vue/Svelte islands, making it a natural fit for Foundation's modular model.


Files to generate

  • src/pages/index.astro
  • src/layouts/Layout.astro
  • astro.config.mjs
  • tsconfig.json
  • public/favicon.svg

Implementation hints

  • Add packages/modules/src/frontend/astro.ts
  • Key deps: astro
  • Integration options (React, Vue, Svelte islands) can be wired via configPatches if those UI modules are also selected — start with the base module only
  • Follow react-vite.ts as the closest structural analogue
  • Register in:
    • index.ts
    • registry-loader.ts
    • graph-definition.ts

Contributor guidance

Refer to CONTRIBUTING.md → "Adding a New Module"


Acceptance criteria

  • foundation create lists Astro as a frontend option
  • Generated project runs astro dev without errors
  • Snapshot test added

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueGood for newcomersmodule: frontendRelated to frontend frameworks, UI libraries, or client-side architecture.new-modulebuild something here

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions