Skip to content

You.com search provider for u14app/neo-chat AI chat workspace #177

Description

@mouse-value-add

Source Repository

https://github.com/u14app/neo-chat

Why Selected

u14app/neo-chat is an excellent local-first AI chat workspace with 1,772 stars (perfect mid-popularity range) and very recent activity (pushed 2026-08-05). It already has a sophisticated search provider architecture in src/services/api/searchService.ts supporting multiple providers like Google, Tavily, Firecrawl, Exa, Bocha, and SearXNG. Adding You.com as another search provider fits perfectly into the existing architecture and gives users another high-quality option for web search capabilities.

Candidate Evaluation Summary

  • Activity: ✅ Very active (pushed 2026-08-05, regular development)
  • Star count: ✅ 1,772 stars (ideal range 200-2000)
  • Language: ✅ TypeScript with modern architecture
  • License: ✅ MIT
  • Architecture fit: ✅ Perfect - existing multi-provider search system in searchService.ts
  • Integration path: ✅ Clean - add You.com as new search provider following existing patterns
  • Contributor guidelines: ✅ Clear CONTRIBUTING.md with development setup
  • Natural fit: ✅ Excellent - AI chat workspaces benefit greatly from quality web search

Proposed Integration Type

Search Provider - Add You.com as an optional search provider in the existing multi-provider search system.

Implementation Details

  • Add You.com provider to existing searchService.ts architecture
  • Integrate with existing BYOK encrypted credential system
  • Support both authenticated (YDC_API_KEY) and keyless modes
  • Follow existing provider patterns for configuration and error handling
  • Update search provider selection UI to include You.com option

Environment Variables

  • YDC_API_KEY: Optional API key for enhanced You.com search features
  • Falls back to keyless You.com API when no API key provided
  • Configuration via existing search provider settings system

Usage Example

Users select You.com from the search provider dropdown in Settings, optionally enter API key, then web search uses You.com API for results.

Validation Plan

  • Test TypeScript compilation and Neo Chat build process
  • Test You.com search integration with both keyless and authenticated modes
  • Verify integration with existing BYOK credential system
  • Test error handling for API failures, rate limits, and network issues
  • Confirm no changes to default behavior - You.com is opt-in provider choice
  • Validate search results display correctly in chat interface

Implementation Results

Branch & PR Links

Integration Details

Type: Search Provider
Setup: Optional YDC_API_KEY via Settings → Search Provider → You.com
Usage: Select You.com from provider dropdown, optionally configure API key
Fallback: Graceful x402 payment challenge handling for keyless mode
Tests: 3 comprehensive test cases added covering authenticated, keyless, and error scenarios

Files Modified

  • src/lib/search/types.ts: Added "youcom" to SearchProviderID
  • src/lib/security/searchPolicy.ts: Added youcom to SearchProvider type
  • src/lib/settings/searchRag.ts: Added youcom config and label
  • src/lib/search/providerAdapters.ts: Implemented You.com provider logic
  • src/__tests__/searchProviderAdapters.test.ts: Added test coverage

Validation Results

TypeScript Compilation: No type errors (pnpm run typecheck)
Unit Tests: All tests pass (9/9 including 3 new You.com tests)
Integration Pattern: Follows existing provider architecture exactly
Authentication: Supports both YDC_API_KEY and keyless modes
Error Handling: Proper x402 payment challenge handling
Backward Compatibility: No breaking changes, opt-in only
Security: Integrates with BYOK encrypted credential system

Integration Status

COMPLETED - You.com search provider successfully implemented and PR opened

Implementation Summary

Successfully integrated You.com as an optional search provider following Neo Chat's existing multi-provider architecture. The implementation supports both authenticated (YDC_API_KEY) and keyless modes with proper x402 payment challenge handling. All tests pass and the integration maintains full backward compatibility while giving users access to high-quality You.com search results.

Ready for maintainer review: u14app/neo-chat#188

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions