scafoldr/scafoldr

🚀 Enhancement: Dynamic Framework Fetching

Open

#63 opened on Aug 5, 2025

 (0 comments) (0 reactions) (0 assignees)TypeScript (19 forks)auto 404
backendfrontendgood first issue

Repository metrics

Stars
 (65 stars)
PR merge metrics
 (PR metrics pending)

Description

Problem

Framework selector uses hardcoded list. Adding new frameworks requires frontend changes.

Solution

  • Create GET /frameworks endpoint and fetch frameworks dynamically.

Tasks

Backend:

  • Add /frameworks endpoint in core/src/api/
  • Use existing list_available_generators() function
  • Return framework metadata from template configs

Frontend:

  • Update FrameworkSelector to fetch from API
  • Add loading state and error handling
  • Fallback to hardcoded list if API fails

API Response:

  {
    "frameworks": [
      {"id": "nodejs-express-js", "name": "Node.js + Express", "icon": "🟢"},
      {"id": "java-spring", "name": "Java + Spring Boot", "icon": "☕"}
    ]
  }

Files:

  • core/src/api/routes.py
  • web/src/features/framework-selector/components/FrameworkSelector.tsx

Contributor guide