Skip to content

feat: add SvelteKit route detection to node types #1

@xiapeli

Description

@xiapeli

Summary

FlowMaster currently supports Next.js and Astro route detection, but SvelteKit projects are not fully recognized. SvelteKit uses a file-based routing system under src/routes/ with conventions like +page.svelte, +layout.svelte, +server.ts, and +page.server.ts.

What needs to happen

  1. Detect SvelteKit projects (look for svelte.config.js or svelte.config.ts)
  2. Parse src/routes/ directory structure
  3. Map SvelteKit route files to appropriate node types:
    • +page.svelte → Page node
    • +layout.svelte → Layout node
    • +server.ts → API endpoint node
    • +page.server.ts → Server load function node
    • +error.svelte → Error boundary node
  4. Handle route groups (group) and parameter routes [param]

Relevant files

  • flowmaster.md — the skill file where node types and detection logic are defined

Getting started

  1. Read through flowmaster.md to understand existing node type definitions
  2. Look at how Next.js routes are currently detected as a reference
  3. Add SvelteKit-specific patterns following the same conventions

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions