CodeVetter · Repo Unpack · Feature catalog
withastro/astro
Astro exposes developer commands alongside site-facing routing, rendering, actions, content, and image capabilities. Interactive components are hydrated according to client directives rather than requiring one application-wide client runtime. Integrations supply framework renderers and deployment-specific behavior. The inspected feature set also includes sessions, caching, internationalization, browser navigation, and font providers, but is not an exhaustive catalog of all workspace products.
- The CLI recognizes add, sync, telemetry, preferences, dev, build, preview, check, create-key, docs, and info, plus help/version behavior.
- astro dev provides stop, status, and logs subcommands, explicit background startup, agent-inferred background startup, and --ignore-lock behavior.
- astro build accepts output-directory, mode, development-output, and force flags; force is documented as clearing content caches for a full rebuild.
- File-based routes include .astro and supported Markdown extensions, with bracket parameters and spread parameters parsed into RoutePart records.
- Matched endpoints execute renderEndpoint(); page routes obtain props and a rendering result before calling renderPage(), including streaming and slot inputs.
- Astro Actions support JSON and FormData handlers with optional Zod input schemas; RPC calls return serialized responses while form calls leave results in locals for page rendering.
- The file content loader reads JSON, YAML, or TOML, accepts custom parsers, validates entries through parseData(), and reloads the collection on watched file changes.
- getCollection() reads stored content and resolves image references; live collections instead call loader.loadCollection() and apply their schema at runtime.
- Browser islands recognize load, idle, visible, media, and only directives, dynamically import component and renderer modules, and dispatch astro:hydrate after hydration.
- The image endpoint parses transformation URLs, loads allowed remote or local sources, invokes the configured image service, and returns transformed bytes with cache and ETag headers.
- astro/fetch exposes composable sessions, redirects, actions, i18n, and cache handlers; navigate() performs browser transitions and warns once when called during server rendering.
- The fontProviders registry exposes Adobe, Bunny, Fontshare, Fontsource, Google, Google Icons, local, and npm provider factories.