Stop wasting time on outdated docs. PackSense fetches real-time package versions from official registries, detects breaking changes, and lets AI set up your entire project automatically β all without leaving VS Code.
When developers ask AI tools like ChatGPT or Claude how to set up a package (e.g., Prisma, Next.js), the AI often gives outdated commands because:
- LLMs are trained on static data with a knowledge cutoff
- Web search may pull from unofficial blogs instead of official docs
- There is no built-in version verification in standard AI chat
PackSense solves this by adding a deterministic verification layer before the AI ever generates a response.
- Type any library name β PackSense searches all major registries simultaneously in real-time
- Fuzzy matching support β
langchinβ findslangchainautomatically - Shows latest version, release date, weekly downloads across ecosystems
| Language | Registry | What's Fetched |
|---|---|---|
| π Python | PyPI | Latest version, dependencies |
| π¦ JavaScript | npm | Latest version, changelog |
| π¦ Rust | Crates.io | Latest stable release |
| π― Dart/Flutter | pub.dev | Latest version, compatibility |
| π Ruby | RubyGems | Latest gem version |
| β Java | Maven Central | Latest artifact |
| π All | GitHub Releases | Breaking changes, migration guide |
- Fetches official GitHub release notes in real-time
- AI summarizes what changed in simple language
- Warns about breaking changes before you upgrade
- Ask anything about any package β AI answers using verified real-time data
- No outdated training data β every response backed by official API results
- Explains concepts, migration steps, and best practices
- Generates correct install command for your ecosystem (
pip install/npm install) - Creates boilerplate starter code with latest syntax
- Auto-generates config files β
.env,requirements.txt,schema.prisma, etc. - Runs everything in terminal with your confirmation
- Shows exactly what will be run before executing anything
- Never touches your files without explicit permission
Developer (VS Code)
β
βΌ
Chat Panel βββββββΊ package.json Scanner
(Side Panel) β
βΌ
npm Registry API + GitHub Releases API
β
βΌ
Structured Context Builder
(verified version data)
β
βΌ
Claude / GPT API
(explanation engine only)
β
βΌ
Confirmation Popup βββΊ [Allow / Cancel]
β
βΌ
ββββββββββββββββββ΄ββββββββββββββββββ
βΌ βΌ
Terminal Runner File Creator
(npm install, npx) (.env, schema.prisma, etc.)
"Latest Prisma setup kardo"
npm Registry β prisma@5.22.0 (latest)
GitHub β Breaking changes from v4 β v5
User Request: Prisma setup
Verified Context:
- Installed: 4.0.0
- Latest: 5.22.0
- Breaking Changes: [migration guide]
βββββββββββββββββββββββββββββββββββββββ
β PackSense wants to: β
β β
β β‘ Run: npm install prisma@5.22.0 β
β β‘ Run: npx prisma init β
β π Create: schema.prisma β
β π Create: .env β
β β
β [β
Allow] [β Cancel] β
βββββββββββββββββββββββββββββββββββββββ
βββββββββββββββββββββββββββββββββββββββ
β π¦ PackSense β
βββββββββββββββββββββββββββββββββββββββ€
β β
react 18.2 β 18.3 β
β β οΈ prisma 4.0 β 5.22 β
β β next 13.0 β 15.1 β
βββββββββββββββββββββββββββββββββββββββ€
β π¬ Ask AI β
β > Latest prisma setup kardo... β
β β
β [Send] [Auto Setup] β
βββββββββββββββββββββββββββββββββββββββ
| Layer | Technology |
|---|---|
| VS Code Extension | TypeScript + VS Code Extension API |
| Package Registry | npm Registry API (registry.npmjs.org) |
| Release Notes | GitHub REST API |
| AI Layer | Claude API / OpenAI GPT API |
| File Operations | VS Code Workspace FS API |
| Terminal Runner | VS Code Terminal API |
packsense/
βββ src/
β βββ extension.ts # Entry point
β βββ scanner/
β β βββ packageScanner.ts # package.json reader
β βββ api/
β β βββ npmRegistry.ts # npm latest version fetcher
β β βββ githubReleases.ts # breaking changes fetcher
β βββ context/
β β βββ contextBuilder.ts # builds structured AI prompt
β βββ ai/
β β βββ aiClient.ts # Claude / GPT API calls
β βββ executor/
β β βββ terminalRunner.ts # runs terminal commands
β β βββ fileCreator.ts # creates config files
β βββ ui/
β βββ chatPanel.ts # VS Code webview chat
β βββ confirmation.ts # confirmation popup
βββ package.json
βββ tsconfig.json
βββ README.md
# Clone the repo
git clone https://github.com/yourusername/packsense.git
cd packsense
# Install dependencies
npm install
# Build the extension
npm run build
# Open in VS Code
code .
# Press F5 to launch Extension Development HostAdd your API key in VS Code settings:
{
"packsense.aiProvider": "claude",
"packsense.apiKey": "your-api-key-here",
"packsense.autoScanOnOpen": true,
"packsense.confirmBeforeExecute": true
}- npm package version checker
- GitHub release notes fetcher
- VS Code chat panel
- Auto terminal command runner
- Auto file creator
- PyPI support (Python packages)
- Support for private registries
- package.json auto-update on confirm
- Multi-package bulk setup
Pull requests are welcome! Please open an issue first to discuss what you'd like to change.
MIT License β free to use, modify, and distribute.
Built with β€οΈ to make developers' lives easier. No more outdated setup headaches.
