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

@ -34,7 +34,7 @@ The CLI asks for just your package name and uses sensible defaults for everythin
```bash
$ pnpmx @tpmjs/create-basic-tools
┌ create-tpmjs-tool
┌ create-tpmjs
◇ Package name
@myorg/content-tools

View file

@ -18,7 +18,7 @@ import * as logger from './utils/logger.js';
* Runs the interactive CLI workflow
*/
export async function runInteractiveCLI(): Promise<GenerationResult> {
clack.intro(logger.bold('create-tpmjs-tool'));
clack.intro(logger.bold('create-tpmjs'));
// Only ask for package name
const name = await clack.text({

View file

@ -18,7 +18,7 @@ export function generatePackageJson(config: GeneratorConfig): string {
dev: 'tsup --watch',
'type-check': 'tsc --noEmit',
},
keywords: ['tpmjs-tool', 'ai-sdk', packageInfo.category],
keywords: ['tpmjs', 'ai-sdk', packageInfo.category],
author: packageInfo.author || '',
license: packageInfo.license,
tpmjs: {