- Implement full web interface with Go html/template server
- Add GX component library (buttons, dialogs, tables, forms, etc.)
- Create scene/performer/studio/movie detail and listing pages
- Add Adult Empire scraper for additional metadata sources
- Implement movie support with database schema
- Add import and sync services for data management
- Include comprehensive API and frontend documentation
- Add custom color scheme and responsive layout
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
Major Features:
- ✅ Complete TPDB scraper implementation with real API calls
- ✅ Auto-fetch on cache miss: search commands now automatically import from TPDB when not found locally
- ✅ Comprehensive documentation (5 markdown files for Bookstack)
- ✅ Import commands for performers, studios, and scenes
- ✅ Fixed JSON type mismatches (aliases array, studio numeric IDs)
Changes:
1. TPDB Scraper (internal/scraper/tpdb/):
- types.go: Full API response structures with correct types
- PerformerResponse.Aliases: string → []string (TPDB returns array)
- StudioResponse.ID: string → int (TPDB returns numeric IDs)
- SiteInfo.ID: string → int (scenes reference studios by number)
- mapper.go: Maps TPDB responses to internal models
- Converts aliases array to comma-separated string
- Converts numeric studio IDs to strings using strconv.Itoa()
- scraper.go: Real HTTP client with Bearer token auth
- SearchPerformers, SearchStudios, SearchScenes implemented
- GetPerformerByID, GetStudioByID, GetSceneByID implemented
2. CLI Auto-Fetch (cmd/goondex/main.go):
- performer-search: Auto-fetches from TPDB if local DB empty
- studio-search: Auto-fetches from TPDB if local DB empty
- scene-search: Auto-fetches basic metadata (no relationships)
- Graceful handling of missing TPDB_API_KEY
- Import → search again to get local IDs
3. Documentation (docs/):
- INDEX.md: Documentation overview and navigation
- ARCHITECTURE.md: System design, data flow, component diagrams
- DATABASE_SCHEMA.md: Complete schema with relationships and indexes
- CLI_REFERENCE.md: All commands with examples
- TPDB_INTEGRATION.md: API guide, data mapping, best practices
4. Fixes:
- .gitignore: Fixed pattern to allow cmd/goondex/* and cmd/goondexd/*
- README: Updated to reflect TPDB integration and auto-fetch
Testing:
- ✅ performer-search "Riley Reid" - auto-fetched 2 performers, cached
- ✅ studio-search "Brazzers" - auto-fetched 12 studios, cached
- ✅ Aliases now display correctly as comma-separated list
- ✅ Studio IDs properly converted from numeric to string
API Integration:
- Base URL: https://api.theporndb.net
- Authentication: Bearer token via TPDB_API_KEY env var
- Endpoints: /performers, /sites, /scenes
- Rate limiting handled with warnings
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
Clean slate initialization of Goondex - a fast, local-first media indexer.
Features:
- SQLite database with WAL mode and foreign keys
- Full schema for performers, studios, scenes, and tags
- Many-to-many relationships via junction tables
- CRUD stores for all entities with search capabilities
- CLI with performer/studio/scene search commands
- Pluggable scraper architecture with registry
- TPDB client stub (ready for implementation)
- Configuration system via YAML files
- Comprehensive .gitignore and documentation
Architecture:
- cmd/goondex: CLI application with Cobra
- cmd/goondexd: Daemon placeholder for v0.2.0
- internal/db: Database layer with stores
- internal/model: Clean data models
- internal/scraper: Scraper interface and TPDB client
- config/: YAML configuration templates
Database schema includes indexes on common query fields and uses
RFC3339 timestamps for consistency.
Built and tested successfully with Go 1.25.4.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>