{"id":30377038,"url":"https://github.com/firecrawl/npx-generate-llmstxt","last_synced_at":"2026-03-05T12:01:52.461Z","repository":{"id":281043245,"uuid":"943396642","full_name":"firecrawl/npx-generate-llmstxt","owner":"firecrawl","description":"Generate LLMs.txt files from any website using the CLI + Firecrawl","archived":false,"fork":false,"pushed_at":"2025-03-06T16:59:27.000Z","size":86,"stargazers_count":37,"open_issues_count":0,"forks_count":5,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-18T19:02:31.962Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://docs.firecrawl.dev/features/alpha/llmstxt","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/firecrawl.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2025-03-05T16:34:09.000Z","updated_at":"2025-07-21T07:57:50.000Z","dependencies_parsed_at":"2025-03-06T17:56:42.461Z","dependency_job_id":null,"html_url":"https://github.com/firecrawl/npx-generate-llmstxt","commit_stats":null,"previous_names":["mendableai/npx-generate-llmstxt","firecrawl/npx-generate-llmstxt"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/firecrawl/npx-generate-llmstxt","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/firecrawl%2Fnpx-generate-llmstxt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/firecrawl%2Fnpx-generate-llmstxt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/firecrawl%2Fnpx-generate-llmstxt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/firecrawl%2Fnpx-generate-llmstxt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/firecrawl","download_url":"https://codeload.github.com/firecrawl/npx-generate-llmstxt/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/firecrawl%2Fnpx-generate-llmstxt/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30123729,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-05T11:11:57.947Z","status":"ssl_error","status_checked_at":"2026-03-05T11:11:29.001Z","response_time":93,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2025-08-20T16:01:24.112Z","updated_at":"2026-03-05T12:01:52.457Z","avatar_url":"https://github.com/firecrawl.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# generate-llmstxt\n\nA simple NPX package that generates LLMs.txt files using the Firecrawl API. Specify the URL you want and it creates two files in your specified output directory (defaults to 'public' folder):\n- `llms.txt`: Contains a summary of the LLM-related content\n- `llms-full.txt`: Contains the full text content\n\n## Usage\n\nYou can run this package using NPX without installing it. There are two ways to provide your Firecrawl API key:\n\n### 1. Using Command Line Arguments\n\n```bash\nnpx generate-llmstxt --api-key YOUR_FIRECRAWL_API_KEY\n```\n\n### 2. Using Environment Variables\n\nCreate a `.env` file in your project root and add your API key:\n\n```env\nFIRECRAWL_API_KEY=your_api_key_here\n```\n\nThen run the command without the --api-key option:\n\n```bash\nnpx generate-llmstxt\n```\n\n### Options\n\n- `-k, --api-key \u003ckey\u003e` (optional if set in .env): Your Firecrawl API key\n- `-u, --url \u003curl\u003e` (optional): URL to analyze (default: https://example.com)\n- `-m, --max-urls \u003cnumber\u003e` (optional): Maximum number of URLs to analyze (default: 50)\n- `-o, --output-dir \u003cpath\u003e` (optional): Output directory path (default: 'public')\n\n### Examples\n\n```bash\n# Using command line argument with default output directory\nnpx generate-llmstxt -k your_api_key -u https://your-website.com -m 20\n\n# Using .env file with default output directory\nnpx generate-llmstxt -u https://your-website.com -m 20\n\n# Specifying a custom output directory\nnpx generate-llmstxt -k your_api_key -u https://your-website.com -o custom/path/to/output\n\n# Using .env file and custom output directory\nnpx generate-llmstxt -u https://your-website.com -o content/llms\n```\n\n## Requirements\n\n- Node.js 14 or higher\n- A valid Firecrawl API key (via command line or .env file)\n\n## Output\n\nThe package will create two files in your specified output directory (defaults to 'public'):\n\n1. `llms.txt`: Contains a summary of the LLM-related content\n2. `llms-full.txt`: Contains the full text content\n\n## Future Improvements\n\n- [ ] Local version\n\n## License\n\nMIT \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffirecrawl%2Fnpx-generate-llmstxt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffirecrawl%2Fnpx-generate-llmstxt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffirecrawl%2Fnpx-generate-llmstxt/lists"}