Skip to content

feat: add @tanstack/ai-{framework} package naming for AI library#871

Open
vfshera wants to merge 1 commit intoTanStack:mainfrom
vfshera:feat/add-ai-package-naming
Open

feat: add @tanstack/ai-{framework} package naming for AI library#871
vfshera wants to merge 1 commit intoTanStack:mainfrom
vfshera:feat/add-ai-package-naming

Conversation

@vfshera
Copy link
Copy Markdown

@vfshera vfshera commented Apr 29, 2026

This PR adds proper package naming for the TanStack AI library, using the @tanstack/ai-{framework} pattern (e.g., @tanstack/ai-react, @tanstack/ai-svelte) instead of the standard @tanstack/{framework}-{libraryId} pattern.

@netlify
Copy link
Copy Markdown

netlify Bot commented Apr 29, 2026

👷 Deploy request for tanstack pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 86bd6ba

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 29, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: a2b3c120-9a7d-484f-ab6a-31d22dc755e9

📥 Commits

Reviewing files that changed from the base of the PR and between 03a1d36 and 86bd6ba.

📒 Files selected for processing (1)
  • src/routes/$libraryId/$version.docs.framework.index.tsx

📝 Walkthrough

Walkthrough

The change adds special package-name mapping logic for the "ai" library ID. When the library ID is "ai", the getPackageName function now returns @tanstack/ai-${frameworkValue} instead of following the standard @tanstack/${frameworkValue}-${libraryId} pattern.

Changes

Cohort / File(s) Summary
AI Package Mapping
src/routes/$libraryId/$version.docs.framework.index.tsx
Added conditional logic to handle the "ai" library ID with a custom package-name format pattern.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Poem

🐰 A dash of magic for the AI path,
Where package names follow a different math,
Four little lines, a special case so bright,
Making framework mappings just right! ✨

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately describes the main change: adding a specific package naming pattern for the AI library using @tanstack/ai-{framework} format.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
Review rate limit: 7/8 reviews remaining, refill in 7 minutes and 30 seconds.

Comment @coderabbitai help to get the list of available commands and usage tips.

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.

1 participant