feat: add npm-like features to tool detail page and update keyword to tpmjs

- Add download trend sparkline chart showing 30-day download history
- Add bundle size component with minified/gzipped sizes via bundlephobia proxy
- Add more install commands: yarn, bun, deno (in addition to npm, pnpm)
- Change discovery keyword from "tpmjs-tool" to "tpmjs" across entire codebase
- Update sync endpoints to use new keyword
- Update all documentation and package.json files

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Ajax Davis 2025-12-29 21:30:42 +10:00
parent 6c28f01633
commit f24eebc196
42 changed files with 426 additions and 97 deletions

View file

@ -907,7 +907,7 @@ const providers: Record<ExecutionProvider, (toolId: string, params: any, env?: a
'aws-lambda': async (toolId, params, env) => {
const lambda = new AWS.Lambda();
const result = await lambda.invoke({
FunctionName: `tpmjs-tool-${toolId.replace('::', '-')}`,
FunctionName: `tpmjs-${toolId.replace('::', '-')}`,
Payload: JSON.stringify({ params, env }),
}).promise();
return JSON.parse(result.Payload as string);

View file

@ -377,7 +377,7 @@ packages/registryExecute/
"types": "./dist/index.d.ts"
}
},
"keywords": ["tpmjs", "tpmjs-tool", "ai-sdk", "vercel-ai", "tools", "registry", "search"],
"keywords": ["tpmjs", "tpmjs", "ai-sdk", "vercel-ai", "tools", "registry", "search"],
"peerDependencies": {
"ai": "^4.0.0",
"zod": "^3.0.0"
@ -402,7 +402,7 @@ packages/registryExecute/
"types": "./dist/index.d.ts"
}
},
"keywords": ["tpmjs", "tpmjs-tool", "ai-sdk", "vercel-ai", "tools", "registry", "execute"],
"keywords": ["tpmjs", "tpmjs", "ai-sdk", "vercel-ai", "tools", "registry", "execute"],
"peerDependencies": {
"ai": "^4.0.0",
"zod": "^3.0.0"

View file

@ -98,7 +98,7 @@ Tools declare their capabilities via a `tpmjs` field in package.json:
{
"name": "@myorg/web-scraper",
"version": "1.0.0",
"keywords": ["tpmjs-tool"],
"keywords": ["tpmjs"],
"tpmjs": {
"category": "web-scraping",
"frameworks": ["vercel-ai"],