{"id":44669833,"url":"https://github.com/arach/hostai-scan","last_synced_at":"2026-02-15T01:36:31.344Z","repository":{"id":335758217,"uuid":"1146921838","full_name":"arach/hostai-scan","owner":"arach","description":null,"archived":false,"fork":false,"pushed_at":"2026-02-01T01:57:40.000Z","size":311,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-02-01T10:52:11.017Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://hostai-scan.vercel.app","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/arach.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-01-31T22:32:07.000Z","updated_at":"2026-02-01T01:57:43.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/arach/hostai-scan","commit_stats":null,"previous_names":["arach/hostai-scan"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/arach/hostai-scan","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arach%2Fhostai-scan","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arach%2Fhostai-scan/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arach%2Fhostai-scan/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arach%2Fhostai-scan/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/arach","download_url":"https://codeload.github.com/arach/hostai-scan/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arach%2Fhostai-scan/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29464404,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-15T01:01:38.065Z","status":"ssl_error","status_checked_at":"2026-02-15T01:01:23.809Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-02-15T01:36:29.292Z","updated_at":"2026-02-15T01:36:31.336Z","avatar_url":"https://github.com/arach.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# HostAI Scan\n\nWebsite diagnostic tool for short-term rental (STR) businesses. Scores websites on conversion, performance, SEO, and trust signals.\n\n## Getting Started\n\n```bash\n# Install dependencies\npnpm install\n\n# Set up environment\ncp .env.example .env.local\n\n# Run development server\npnpm dev\n```\n\nOpen [http://localhost:3000](http://localhost:3000)\n\n## Environment Variables\n\n```bash\n# Required - API Keys\nSEMRUSH_API_KEY=           # SEMrush API for SEO metrics\nDATAFORSEO_LOGIN=          # DataForSEO credentials\nDATAFORSEO_PASSWORD=\n\n# Optional\nPAGESPEED_API_KEY=         # Google PageSpeed (works without, but rate-limited)\nADMIN_PASSWORD=            # Admin dashboard access (default: none)\n\n# Database (auto-uses SQLite locally)\nTURSO_DATABASE_URL=        # Turso/LibSQL for production\nTURSO_AUTH_TOKEN=\n\n# Analytics (optional)\nNEXT_PUBLIC_GA_ID=         # Google Analytics 4\n```\n\n## Project Structure\n\n```\nsrc/\n├── app/                   # Next.js App Router\n│   ├── api/              # API routes\n│   │   ├── audit/        # Scan endpoints\n│   │   ├── analytics/    # Tracking endpoints\n│   │   ├── batches/      # Bulk import\n│   │   └── leads/        # Lead management\n│   ├── admin/            # Admin dashboard\n│   └── report/           # Public report pages\n├── components/           # React components\n├── lib/                  # Core logic\n│   ├── audit-storage.ts  # Audit CRUD\n│   ├── analytics.ts      # Event tracking\n│   ├── batch-storage.ts  # Bulk operations\n│   ├── lead-storage.ts   # Lead management\n│   ├── link-storage.ts   # Shareable links + UTM\n│   └── migrations/       # DB schema migrations\n└── types/                # TypeScript definitions\n```\n\n## Key APIs\n\n| Endpoint | Method | Description |\n|----------|--------|-------------|\n| `/api/audit/start` | POST | Start a new scan |\n| `/api/audit/status/[jobId]` | GET | Poll scan progress |\n| `/api/audit/[auditId]` | GET | Get completed audit |\n| `/api/audits` | GET | List all audits |\n| `/api/batches` | POST | Bulk import domains |\n| `/api/leads` | GET/POST | Lead management |\n\n## Running Scans\n\n```bash\n# Start a scan\ncurl -X POST http://localhost:3000/api/audit/start \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"domain\": \"example.com\"}'\n\n# Response: { \"jobId\": \"abc123\", \"status\": \"pending\" }\n\n# Poll for completion\ncurl http://localhost:3000/api/audit/status/abc123\n```\n\n## Admin Dashboard\n\nAccess at `/admin` (requires `ADMIN_PASSWORD` if set).\n\nFeatures:\n- View all scans with raw API data\n- Bulk import via CSV\n- Lead tracking and scoring\n- Analytics overview\n- Database migrations dashboard (`/admin/migrations`)\n- Plans documentation viewer (`/admin/plans`)\n\n## Database\n\n- **Local dev**: SQLite (auto-created at `local.db`)\n- **Production**: Turso/LibSQL (set `TURSO_*` env vars)\n\nMigrations run automatically on startup. Visit `/admin/migrations` to check status or manually run pending migrations.\n\n## Tech Stack\n\n- **Framework**: Next.js 16 (App Router)\n- **Language**: TypeScript\n- **Styling**: Tailwind CSS\n- **Database**: SQLite / Turso\n- **APIs**: PageSpeed Insights, SEMrush, DataForSEO\n\n## Common Tasks\n\n```bash\n# Type check\npnpm tsc --noEmit\n\n# Lint\npnpm lint\n\n# Build for production\npnpm build\n```\n\n## License\n\nPrivate - HostAI\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farach%2Fhostai-scan","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farach%2Fhostai-scan","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farach%2Fhostai-scan/lists"}