search_swift_packages
Search Swift Package Index for packages by criteria like keywords, author, stars, platforms, license, and activity dates to find dependencies for Swift projects.
Instructions
Search the Swift Package Index for packages matching your criteria.
This is a QUERY tool — read-only, safe to call multiple times.
At least one parameter must be provided. Parameters are combined with AND logic.
Args: query: Free-text search (e.g. "networking", "json parsing"). author: Filter by repository owner (e.g. "apple", "vapor"). Prefix with "!" to exclude (e.g. "!vapor"). keyword: Filter by package keyword tag (e.g. "server", "ui"). Prefix with "!" to exclude (e.g. "!deprecated"). min_stars: Minimum GitHub star count (e.g. 100, 1000). max_stars: Maximum GitHub star count. platforms: Filter by compatible platform(s). Multiple = AND (must support all). Valid: ios, macos, watchos, tvos, visionos, linux. license_filter: License filter. Use "compatible" for App Store compatible, or a specific SPDX ID like "mit", "apache-2.0", "lgpl-2.1". Prefix with "!" to exclude (e.g. "!gpl-3.0"). last_activity_after: ISO8601 date (YYYY-MM-DD). Only packages with maintenance activity after this date. Example: "2024-01-01". last_activity_before: ISO8601 date (YYYY-MM-DD). Only packages with maintenance activity before this date. Combine with last_activity_after for a date window. last_commit_after: ISO8601 date (YYYY-MM-DD). Only packages with commits after this date. last_commit_before: ISO8601 date (YYYY-MM-DD). Only packages with commits before this date. Combine with last_commit_after for a date window. product_type: Filter by product type: library, executable, plugin, or macro. page: Page number for pagination (default 1). Check has_more in the response.
If you are unsure what values are valid for platforms or product_type, call list_search_filters() first. After getting results, use get_package_readme(owner, repo) to read the README of any package that looks interesting.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | No | ||
| author | No | ||
| keyword | No | ||
| min_stars | No | ||
| max_stars | No | ||
| platforms | No | ||
| license_filter | No | ||
| last_activity_after | No | ||
| last_activity_before | No | ||
| last_commit_after | No | ||
| last_commit_before | No | ||
| product_type | No | ||
| page | No |