Tango.Catalog (tango v0.1.2)

Copy Markdown View Source

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

get_catalog()

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" => %{...}}}

get_provider(provider_name)

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}

suggest_similar(input)

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"]