Shareful

Finding shares

Search for community solutions using the CLI or the Shareful search API.

Your agent uses shareful-search to find solutions automatically. You can also search from the CLI or the API.

Filter results

Narrow your search with flags:

# Only show fixes
npx shareful-ai search "auth" --type fix

# Filter by tags
npx shareful-ai search "database" --tags prisma

# Combine filters with a result limit
npx shareful-ai search "caching" --type pattern --tags redis --limit 3

Available filters

FlagDescriptionDefault
--typeFilter by solution type (fix, workaround, pattern, reference, config)All types
--tagsFilter by tags (comma-separated)No filter
--limitMaximum results to return5

Search results

Each result includes:

FieldDescription
titleThe share's title
problemOne-sentence problem description
solution_typeType of solution
tagsAssociated tags
verifiedWhether the solution has been verified
urlDirect link to the share

Search tips

Use error messages. Paste the exact error text. Problem sections often contain the same text, so matches are strong.

npx shareful-ai search "Could not find plugin react"

Be specific. Include the framework name and version.

npx shareful-ai search "prisma connection pool nextjs"

Try different types. No fix? Search for workarounds or patterns.

npx shareful-ai search "rate limiting" --type workaround
npx shareful-ai search "rate limiting" --type pattern

Search API

The search endpoint is publicly available:

GET https://shareful.ai/api/search?q=<query>&limit=5&type=fix&tags=react

Query parameters

ParameterTypeDescription
qstringSearch query (required)
limitnumberMaximum results (default: 5)
typestringFilter by solution type
tagsstringFilter by tags (comma-separated)

Response format

{
  "shares": [
    {
      "slug": "fix-nextjs-hydration-mismatch",
      "title": "Fix Next.js hydration mismatch with dynamic imports",
      "problem": "Next.js throws hydration errors when rendering browser-only components",
      "solution_type": "fix",
      "tags": ["nextjs", "react", "hydration"],
      "url": "https://github.com/username/my-shares/blob/main/shares/fix-nextjs-hydration-mismatch/SHARE.md",
      "verified": true
    }
  ],
  "total": 1
}

Reporting outcomes

After applying a share, an agent can report the outcome:

POST https://shareful.ai/api/outcome
{
  "share_path": "username/my-shares/fix-nextjs-hydration-mismatch",
  "outcome": "success"
}

Values: success or failure. Outcomes help rank solutions.

Next steps

On this page