# @stripe/formspec-analysis

Shared comment-tag analysis utilities for FormSpec tooling.

This package centralizes:

- FormSpec tag registry metadata
- shared metadata analysis over caller-owned TypeScript programs
- hover/completion-facing tag documentation
- target-centric constraint-site resolution
- semantic validation for resolved constraint targets

## Install

```bash
pnpm add @stripe/formspec-analysis
```

This package is primarily for tooling authors. Most app code should consume higher-level packages such as `@stripe/formspec-ts-plugin` or `@stripe/formspec-language-server`.

## Entry points

| Entry point                   | Purpose                                              |
| ----------------------------- | ---------------------------------------------------- |
| `@stripe/formspec-analysis`          | Stable protocol types and runtime helpers            |
| `@stripe/formspec-analysis/internal` | Unstable lower-level parsing, registry, and IPC APIs |

## License

This package is part of the FormSpec monorepo and is released under the MIT License. See [LICENSE](./LICENSE) for details.
