Skip to content

feat: migrate to scrapegraph-js SDK#11

Merged
VinciGit00 merged 3 commits intomainfrom
feat/typed-api-responses
Feb 17, 2026
Merged

feat: migrate to scrapegraph-js SDK#11
VinciGit00 merged 3 commits intomainfrom
feat/typed-api-responses

Conversation

@FrancescoSaverioZuppichini
Copy link
Member

@FrancescoSaverioZuppichini FrancescoSaverioZuppichini commented Feb 17, 2026

Summary

  • Replace internal API layer (scrapegraphai.ts, schemas.ts, types/index.ts) with the official scrapegraph-js SDK
  • Remove zod dependency — all validation and types now come from the SDK
  • All 11 commands import directly from scrapegraph-js instead of the internal wrapper
  • env.ts bridges JUST_SCRAPE_* env vars → SGAI_* so the SDK picks up CLI-specific config
  • Net -1003 lines of code deleted

Test plan

  • tsc --noEmit passes
  • bun run lint passes
  • bun run build succeeds
  • bun test passes (smoke test)
  • Manual test: bun run dev credits with a real API key
  • Manual test: bun run dev smart-scraper <url> -p <prompt>

🤖 Generated with Claude Code

Remove zod, schemas, types, and the hand-rolled API client in favor
of the official scrapegraph-js SDK. All commands now import directly
from the package. env.ts bridges JUST_SCRAPE_* vars to SGAI_* so
the SDK picks up CLI-specific config.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@VinciGit00 VinciGit00 merged commit fdbfc39 into main Feb 17, 2026
3 checks passed
@VinciGit00 VinciGit00 deleted the feat/typed-api-responses branch February 17, 2026 15:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants