feat: add --content-type filter to extension search
Opened by swampadmin · 4/17/2026
Problem
swamp extension search has no way to filter by content type. Users looking for community datastore or driver extensions must search by keyword and manually inspect results.
Currently ExtensionSearchParams only supports q, collective, platform[], label[], sort, perPage, and page — no content type filter.
Expected Behavior
# Find extensions containing custom datastores
swamp extension search --content-type datastore --json
# Find extensions containing custom drivers
swamp extension search --content-type driver --json
# Combine with keyword search
swamp extension search gcs --content-type datastore --jsonValid content types: models, workflows, vaults, datastores, drivers.
Why This Matters
The extension pipeline fully supports pushing and pulling datastores and drivers (PRs #745-#750). The swamp-extension-datastore and swamp-extension-driver skills both guide users to run swamp extension search datastore or swamp extension search driver as the first step before creating a custom implementation. Without a content type filter, these searches rely on keyword matching which is unreliable — an extension named @myorg/postgres wouldn't match the keyword "datastore" even though it is one.
Implementation Notes
src/infrastructure/http/extension_api_client.ts— addcontentType?: stringtoExtensionSearchParamssrc/cli/commands/extension_search.ts— add--content-typeoption- Requires corresponding support in swamp-club's search API (
routes/api/v1/extensions/search.ts) - The
contentTypesarray is already denormalized on extensions viaderiveContentTypes()in swamp-club, so the server-side filter should be straightforward
Related
- swamp-club issue: systeminit/swamp-club#281 (add datastore/driver support to club UI)
- swamp PR: #752 (extension datastore/driver skills)
Open
No activity in this phase yet.
Sign in to post a ripple.