{"id":30955944,"url":"https://github.com/Trapar-waves/llm-template","last_synced_at":"2025-09-11T12:06:43.407Z","repository":{"id":288524917,"uuid":"968415599","full_name":"Trapar-waves/llm-template","owner":"Trapar-waves","description":"A template for LLM development integrating AI tools, TypeScript, Zod validation, and development utilities like Vitest and Rslib.","archived":false,"fork":false,"pushed_at":"2025-09-05T01:05:19.000Z","size":1057,"stargazers_count":0,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-05T02:36:36.882Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/Trapar-waves.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-04-18T03:48:31.000Z","updated_at":"2025-09-05T01:03:52.000Z","dependencies_parsed_at":"2025-05-14T07:28:51.997Z","dependency_job_id":"57d29b2a-5bd1-46f9-956a-02d9370e43a2","html_url":"https://github.com/Trapar-waves/llm-template","commit_stats":null,"previous_names":["trapar-waves/llm-template"],"tags_count":23,"template":false,"template_full_name":null,"purl":"pkg:github/Trapar-waves/llm-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Trapar-waves%2Fllm-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Trapar-waves%2Fllm-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Trapar-waves%2Fllm-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Trapar-waves%2Fllm-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Trapar-waves","download_url":"https://codeload.github.com/Trapar-waves/llm-template/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Trapar-waves%2Fllm-template/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274632588,"owners_count":25321251,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-11T02:00:13.660Z","response_time":74,"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":[],"created_at":"2025-09-11T12:02:30.389Z","updated_at":"2025-09-11T12:06:43.399Z","avatar_url":"https://github.com/Trapar-waves.png","language":"TypeScript","funding_links":[],"categories":["Starter"],"sub_categories":["Rslib Starter"],"readme":"# @trapar-waves/llm-template\n\n![npm version](https://img.shields.io/npm/v/@trapar-waves/llm-template)\n![npm dm](https://img.shields.io/npm/dm/@trapar-waves/llm-template)\n![License](https://img.shields.io/github/license/Trapar-waves/llm-template)\n![GitHub last commit](https://img.shields.io/github/last-commit/Trapar-waves/llm-template)\n![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/Trapar-waves/llm-template/release.yml)\n![Renovate](https://img.shields.io/badge/renovate-enabled-blue)\n\n---\n\n[中文](/readme/README-CN.md) | [日本語](/readme/README-JP.md) | [Русский язык](/readme/README-RU.md)\n\n\u003e A production-ready template for LLM (Large Language Model) application development, integrating AI tools, TypeScript type safety, Zod validation, and modern dev utilities.\n\n## ✨ Features\n\n- **Type Safety:** Leverages TypeScript to improve code quality and reduce runtime errors.\n- **Fast Development Workflow:** Utilizes Vite for quick server starts and hot module replacement.\n- **Optimized Builds:** Employs Rslib for efficient library bundling and optimized production outputs.\n- **AI Integration:** Pre-configured with `@ai-sdk/openai` and `ai` for seamless interaction with large language models.\n- **Robust Validation:** Utilizes Zod for runtime schema validation, ensuring data integrity.\n- **Focus on Testing:** Includes Vitest for fast and reliable unit testing.\n- **Code Consistency:** Enforces code style and quality using Prettier and Antfu's ESLint configuration.\n- **Environment Management:** Uses `dotenv` for secure configuration of API keys and environment-specific settings.\n- **Cross-Platform Paths:** Employs `pathe` for consistent file path handling across different operating systems.\n\n## 💻 Tech Stack\n\nKey technologies used in this project include:\n\n- **Language:** TypeScript\n- **LLM Framework:** AI SDK (`@ai-sdk/openai`, `ai`)\n- **Validation:** Zod\n- **Testing Framework:** Vitest\n- **Build Tool:** Rslib\n- **Development Server:** Vite\n- **Code Quality:** ESLint (Antfu's config), Prettier\n- **Utilities:** Dotenv, Pathe\n\nSee the [package.json](package.json) for a full list of dependencies.\n\n## 🚀 Getting Started\n\nFollow these instructions to get the project running locally.\n\n### Prerequisites\n\nEnsure you have the following installed:\n\n- Node.js (\u003e= 18.x recommended)\n- Package manager (npm, yarn, or pnpm)\n\n```bash\nnode -v\nnpm -v\n```\n\n### Installation\n\nRun script\n\n```bash\npnpm create trapar-waves\n```\n\nInstall dependencies\n\n```bash\nnpm install\nyarn install\npnpm install\n```\n\n### Available Scripts\n\nCommon scripts available via `npm run \u003cscript\u003e`, `yarn \u003cscript\u003e`, or `pnpm \u003cscript\u003e`:\n\n- `build`: Creates a production-ready build using Rslib.\n- `build:watch`: Creates a production-ready build using Rslib in watch mode.\n- `lint`: Checks the code for style and errors using ESLint.\n\nExample:\n\n```bash\n# Create production build\nnpm run build\n```\n\n## 🛠️ Usage\n\nThis template provides a foundational structure for building LLM applications. It includes:\n\n- A basic project structure with `src/` directory.\n- Integration with OpenAI API through `@ai-sdk/openai`.\n- Example usage of `ai` and `zod` for generating structured output.\n- Configuration for building and testing with Rslib and Vitest.\n\nDevelopers can extend this template by adding their own prompts, models, and application logic within the `src/` directory.\n\n## 🤝 Contributing\n\nContributions are welcome and greatly appreciated! Please follow these steps to contribute:\n\n1. Fork the repository\n2. Create your feature branch (`git checkout -b feature/amazing-feature`)\n3. Commit your changes (`git commit -m 'Add some amazing feature'`)\n4. Push to the branch (`git push origin feature/amazing-feature`)\n5. Open a Pull Request\n\n## 📄 License\n\nDistributed under the MIT License. See `LICENSE` file for more information.\n\n## 👤 Author\n\n- **Rikka:** (admin@rikka.cc)\n- **GitHub Profile:** [Muromi-Rikka](https://github.com/Muromi-Rikka)\n\n## 🔗 Links\n\n- **Repository:** [https://github.com/Trapar-waves/llm-template](https://github.com/Trapar-waves/llm-template)\n- **Homepage:** [https://github.com/Trapar-waves/llm-template](https://github.com/Trapar-waves/llm-template)\n- **Issues:** [https://github.com/Trapar-waves/llm-template/issues](https://github.com/Trapar-waves/llm-template/issues)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FTrapar-waves%2Fllm-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FTrapar-waves%2Fllm-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FTrapar-waves%2Fllm-template/lists"}