{"id":31642167,"url":"https://github.com/pirmax/tools-analyzer","last_synced_at":"2026-04-17T08:02:36.118Z","repository":{"id":317940781,"uuid":"1067776453","full_name":"pirmax/tools-analyzer","owner":"pirmax","description":"A powerful API service for analyzing technology stacks in repositories, extracting metadata from web pages, and discovering social media links. Built with Bun, Hono, and TypeScript.","archived":false,"fork":false,"pushed_at":"2025-10-01T11:30:21.000Z","size":22,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-02-12T08:08:13.586Z","etag":null,"topics":["analyzer","biome","biomejs","github","hono","honojs","media","metadata","repository","social","social-media","social-network","social-network-analysis","stack","stack-analyzer","tools","typescript","url","website"],"latest_commit_sha":null,"homepage":"http://127.0.0.1:3000/api/*","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pirmax.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-10-01T11:25:39.000Z","updated_at":"2025-10-01T11:32:07.000Z","dependencies_parsed_at":"2025-10-04T02:56:32.955Z","dependency_job_id":"46f08ecb-f933-489f-9723-4b79d64a3d68","html_url":"https://github.com/pirmax/tools-analyzer","commit_stats":null,"previous_names":["pirmax/tools-analyzer"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pirmax/tools-analyzer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pirmax%2Ftools-analyzer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pirmax%2Ftools-analyzer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pirmax%2Ftools-analyzer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pirmax%2Ftools-analyzer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pirmax","download_url":"https://codeload.github.com/pirmax/tools-analyzer/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pirmax%2Ftools-analyzer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31920518,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-16T18:22:33.417Z","status":"online","status_checked_at":"2026-04-17T02:00:06.879Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["analyzer","biome","biomejs","github","hono","honojs","media","metadata","repository","social","social-media","social-network","social-network-analysis","stack","stack-analyzer","tools","typescript","url","website"],"created_at":"2025-10-07T03:56:56.819Z","updated_at":"2026-04-17T08:02:36.077Z","avatar_url":"https://github.com/pirmax.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Tools Analyzer\n\nA powerful API service for analyzing technology stacks in repositories, extracting metadata from web pages, and discovering social media links. Built with Bun, Hono, and TypeScript.\n\n## Features\n\n- 🔍 **Repository Stack Analysis**: Automatically detect technologies, frameworks, and tools used in GitHub repositories\n- 📄 **Metadata Extraction**: Extract comprehensive metadata from any web page including title, description, Open Graph data, and more\n- 🌐 **Social Media Discovery**: Find and extract social media links from websites with occurrence counting\n- 🔐 **API Key Authentication**: Secure endpoints with API key authentication\n- ⚡ **Fast Performance**: Built with Bun for optimal performance\n\n## Installation\n\n### Prerequisites\n\n- [Bun](https://bun.sh/) (version 1.2.2 or higher)\n- Node.js environment variables configuration\n\n### Setup\n\n1. **Clone the repository**\n   ```bash\n   git clone https://github.com/pirmax/tools-analyzer\n   cd stack-analyzer\n   ```\n\n2. **Install dependencies**\n   ```bash\n   bun install\n   ```\n\n3. **Environment Configuration**\n   \n   Create a `.env` file in the root directory with the following variables:\n   ```env\n   NODE_ENV=development\n   PORT=3000\n   API_KEY=your-secret-api-key\n   LOG_LEVEL=info\n   ```\n\n   **Environment Variables:**\n   - `NODE_ENV`: Environment mode (`development` or `production`)\n   - `PORT`: Server port (default: 3000)\n   - `API_KEY`: Required API key for authentication\n   - `LOG_LEVEL`: Logging level (`debug`, `info`, `warn`, `error`)\n\n4. **Start the server**\n   \n   **Development mode (with hot reload):**\n   ```bash\n   bun run dev\n   ```\n   \n   **Production mode:**\n   ```bash\n   bun start\n   ```\n\nThe server will start on `http://localhost:3000` (or your configured PORT).\n\n## API Endpoints\n\nAll endpoints require authentication via the `X-API-Key` header.\n\n### Authentication\n\nInclude your API key in the request headers:\n```\nX-API-Key: your-secret-api-key\n```\n\n### 1. Repository Stack Analysis\n\n**Endpoint:** `POST /api/analyze`\n\nAnalyzes a Git repository to detect the technology stack, frameworks, languages, and tools used.\n\n**Request Body:**\n```json\n{\n  \"repositoryUrl\": \"https://github.com/username/repository\"\n}\n```\n\n**Response:**\n```json\n{\n  \"technologies\": [\n    \"typescript\",\n    \"react\",\n    \"nodejs\",\n    \"webpack\"\n  ],\n  \"details\": {\n    // Detailed analysis results\n  }\n}\n```\n\n**Use Cases:**\n- Technology stack discovery for due diligence\n- Competitive analysis\n- Project assessment and planning\n- Developer skill requirement identification\n\n### 2. Website Metadata Extraction\n\n**Endpoint:** `POST /api/metadata`\n\nExtracts comprehensive metadata from any web page including HTML meta tags, Open Graph data, Twitter Cards, and more.\n\n**Request Body:**\n```json\n{\n  \"url\": \"https://example.com\"\n}\n```\n\n**Response:**\n```json\n{\n  \"title\": \"Page Title\",\n  \"description\": \"Page description\",\n  \"openGraph\": {\n    \"title\": \"OG Title\",\n    \"description\": \"OG Description\",\n    \"image\": \"https://example.com/image.jpg\",\n    \"url\": \"https://example.com\"\n  },\n  \"twitter\": {\n    \"card\": \"summary_large_image\",\n    \"title\": \"Twitter Title\",\n    \"description\": \"Twitter Description\"\n  },\n  \"general\": {\n    \"canonical\": \"https://example.com/canonical\",\n    \"author\": \"Author Name\",\n    \"publisher\": \"Publisher Name\"\n  }\n}\n```\n\n**Use Cases:**\n- SEO analysis and optimization\n- Social media preview generation\n- Content management systems\n- Web scraping and data collection\n\n### 3. Social Media Links Discovery\n\n**Endpoint:** `POST /api/social`\n\nDiscovers and extracts social media links from websites with occurrence counting and profile information.\n\n**Request Body:**\n```json\n{\n  \"url\": \"https://example.com\"\n}\n```\n\n**Response:**\n```json\n{\n  \"twitter\": [\n    {\n      \"url\": \"https://twitter.com/username\",\n      \"user\": \"username\",\n      \"provider\": {\n        \"name\": \"X (Twitter)\",\n        \"value\": \"x\"\n      },\n      \"occurrences\": 3\n    }\n  ],\n  \"linkedin\": [\n    {\n      \"url\": \"https://linkedin.com/in/username\",\n      \"user\": \"username\",\n      \"provider\": {\n        \"name\": \"LinkedIn\",\n        \"value\": \"linkedin\"\n      },\n      \"occurrences\": 1\n    }\n  ],\n  \"tiktok\": [\n    {\n      \"url\": \"https://www.tiktok.com/@username\",\n      \"user\": \"username\",\n      \"provider\": {\n        \"name\": \"TikTok\",\n        \"value\": \"tiktok\"\n      },\n      \"occurrences\": 2\n    }\n  ]\n}\n```\n\n**Supported Social Platforms:**\n- Facebook\n- X (Twitter)\n- Instagram\n- LinkedIn\n- YouTube\n- TikTok\n- GitHub\n- Bluesky\n- Pinterest\n- Threads\n- Mastodon\n- Twitch\n\n**Use Cases:**\n- Contact information discovery\n- Social media audit\n- Competitor social presence analysis\n- Lead generation and outreach\n\n## Error Handling\n\nAll endpoints return appropriate HTTP status codes:\n\n- `200`: Success\n- `401`: Unauthorized (missing or invalid API key)\n- `400`: Bad Request (invalid input)\n- `500`: Internal Server Error\n\nError responses include a descriptive error message:\n```json\n{\n  \"error\": \"Unauthorized\"\n}\n```\n\n## Development\n\n### Project Structure\n\n```\nsrc/\n├── index.ts         # Main server and API routes\n├── env.ts           # Environment configuration\n├── helpers.ts       # Utility functions\n└── tools/\n    ├── analyzer.ts  # Repository stack analysis\n    ├── metadata.ts  # Web page metadata extraction\n    └── social.ts    # Social media links discovery\n```\n\n### Available Scripts\n\n- `bun run dev`: Start development server with hot reload\n- `bun start`: Start production server\n\n### Code Quality\n\nThe project uses Biome for code formatting and linting:\n```bash\nbunx @biomejs/biome check .\nbunx @biomejs/biome format .\n```\n\n## Contributing\n\n1. Fork the repository\n2. Create a feature branch\n3. Make your changes\n4. Run tests and linting\n5. Submit a pull request\n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.\n\n## Support\n\nFor issues, questions, or contributions, please open an issue on the GitHub repository.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpirmax%2Ftools-analyzer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpirmax%2Ftools-analyzer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpirmax%2Ftools-analyzer/lists"}