{"id":30133978,"url":"https://github.com/dansnow/typescript-library-starter","last_synced_at":"2025-08-10T20:42:06.509Z","repository":{"id":305459977,"uuid":"1022947017","full_name":"DanSnow/typescript-library-starter","owner":"DanSnow","description":null,"archived":false,"fork":false,"pushed_at":"2025-07-20T07:35:59.000Z","size":178,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-20T09:25:31.091Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/DanSnow.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}},"created_at":"2025-07-20T07:34:30.000Z","updated_at":"2025-07-20T07:36:02.000Z","dependencies_parsed_at":"2025-07-20T09:25:47.996Z","dependency_job_id":"4e2d8451-19b2-4dd0-aabf-1ce2cfc47b72","html_url":"https://github.com/DanSnow/typescript-library-starter","commit_stats":null,"previous_names":["dansnow/typescript-library-starter"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/DanSnow/typescript-library-starter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DanSnow%2Ftypescript-library-starter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DanSnow%2Ftypescript-library-starter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DanSnow%2Ftypescript-library-starter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DanSnow%2Ftypescript-library-starter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DanSnow","download_url":"https://codeload.github.com/DanSnow/typescript-library-starter/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DanSnow%2Ftypescript-library-starter/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269786254,"owners_count":24475700,"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-08-10T02:00:08.965Z","response_time":71,"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-08-10T20:42:04.598Z","updated_at":"2025-08-10T20:42:06.495Z","avatar_url":"https://github.com/DanSnow.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TypeScript Library Starter Template\n\nThis repository provides a robust starter template for building TypeScript libraries, featuring a comprehensive development setup for building, testing, linting, and documentation. It leverages a monorepo structure for efficient management of multiple packages.\n\n## ✨ Features\n\n*   **TypeScript**: Strongly typed JavaScript for enhanced code quality and maintainability.\n*   **Unbuild**: A powerful and flexible build system for TypeScript libraries, configured for clean builds and declaration generation.\n*   **Vitest**: A fast and modern testing framework with built-in coverage reporting.\n*   **Ultracite \u0026 Biome**: Integrated for lightning-fast formatting and linting, ensuring consistent code quality and adherence to best practices.\n*   **Moon**: A high-performance monorepo management tool that orchestrates builds, tests, and other tasks across workspaces.\n*   **Astro + Starlight**: A modern static site generator for creating beautiful, performant, and accessible documentation.\n\n## 🚀 Getting Started\n\n### Prerequisites\n\n*   [Node.js](https://nodejs.org/) (v22 or later recommended)\n*   [pnpm](https://pnpm.io/) (v8 or later recommended)\n\n### Installation\n\n1.  Clone the repository:\n    ```bash\n    pnpx giget gh:DanSnow/typescript-library-starter\n    cd typescript-library-starter\n    ```\n2.  Install dependencies using pnpm:\n    ```bash\n    pnpm install\n    ```\n\n## 📦 Development\n\nThis project uses `moon` to manage tasks across the monorepo.\n\n### Building the Library\n\nTo build the core library:\n\n```bash\npnpm build # or moon run build\n```\n\nThis command uses `unbuild` to compile the TypeScript source code into `dist/` directory.\n\n### Running Tests\n\nTo run tests for the library:\n\n```bash\npnpm test # or moon run test\n```\n\nThis command uses `vitest` to execute tests and generate coverage reports.\n\n### Linting and Formatting\n\nThis project uses `Biome` with `Ultracite` rules for code formatting and linting.\n\nTo check for linting issues and format the code:\n\n```bash\npnpm biome check --write --unsafe\n```\n\n### Documentation\n\nThe documentation site is built with Astro and Starlight.\n\n1.  To start the local development server for the documentation:\n    ```bash\n    cd docs\n    pnpm dev\n    ```\n    The documentation will be available at `http://localhost:4321`.\n\n2.  Documentation files are located in `docs/src/content/docs/`. You can add new `.md` or `.mdx` files here.\n\n## 📂 Project Structure\n\n```\n.\n├── docs/                 # Astro + Starlight documentation site\n├── src/                  # Core library source code\n│   ├── __tests__/        # Vitest test files\n│   └── index.ts          # Main entry point for the library\n├── biome.jsonc           # Biome configuration, extending Ultracite rules\n├── build.confg.ts        # Unbuild configuration for library compilation\n├── moon.yml              # Moon monorepo task runner configuration\n├── package.json          # Root package.json with project metadata and scripts\n├── pnpm-lock.yaml        # pnpm lockfile\n├── pnpm-workspace.yaml   # pnpm workspace configuration for monorepo\n├── tsconfig.json         # TypeScript configuration for the root project\n└── vitest.config.ts      # Vitest configuration for testing\n```\n\n## 📄 License\n\nThis project is licensed under the [MIT License](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdansnow%2Ftypescript-library-starter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdansnow%2Ftypescript-library-starter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdansnow%2Ftypescript-library-starter/lists"}