Nango provider catalog integration.
Fetches and processes provider configurations from the official Nango provider catalog hosted on GitHub. Provides functions to integrate with the local Tango provider database.
Summary
Functions
Gets the complete Nango provider catalog from the official GitHub repository.
Gets a specific provider configuration from the catalog.
Suggests similar provider names based on input.
Functions
Gets the complete Nango provider catalog from the official GitHub repository.
Returns a map of provider configurations parsed from the YAML file.
Examples
iex> Tango.Catalog.get_catalog()
{:ok, %{"github" => %{...}, "google" => %{...}}}
Gets a specific provider configuration from the catalog.
Examples
iex> Tango.Catalog.get_provider("github")
{:ok, %{"display_name" => "GitHub", ...}}
iex> Tango.Catalog.get_provider("nonexistent")
{:error, :not_found}
Suggests similar provider names based on input.
Uses Jaro distance and substring matching to find similar providers.
Examples
iex> Tango.Catalog.suggest_similar("git")
["github"]