{"id":35790338,"url":"https://github.com/pyyupsk/npm-ts-template","last_synced_at":"2026-01-21T07:55:14.099Z","repository":{"id":332413257,"uuid":"1128024854","full_name":"pyyupsk/npm-ts-template","owner":"pyyupsk","description":"Zero-config TypeScript library template with Bun, tsdown, Biome, Vitest, and automated releases via Changesets","archived":false,"fork":false,"pushed_at":"2026-01-07T06:23:28.000Z","size":392,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-01-13T19:59:16.519Z","etag":null,"topics":["biome","bun","changesets","library","npm","template","typescript","vitest"],"latest_commit_sha":null,"homepage":"https://pyyupsk.github.io/npm-ts-template/","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/pyyupsk.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":["pyyupsk"]}},"created_at":"2026-01-05T02:56:30.000Z","updated_at":"2026-01-07T06:23:31.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/pyyupsk/npm-ts-template","commit_stats":null,"previous_names":["pyyupsk/npm-ts-template"],"tags_count":3,"template":true,"template_full_name":null,"purl":"pkg:github/pyyupsk/npm-ts-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyyupsk%2Fnpm-ts-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyyupsk%2Fnpm-ts-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyyupsk%2Fnpm-ts-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyyupsk%2Fnpm-ts-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pyyupsk","download_url":"https://codeload.github.com/pyyupsk/npm-ts-template/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyyupsk%2Fnpm-ts-template/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28629917,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-21T04:47:28.174Z","status":"ssl_error","status_checked_at":"2026-01-21T04:47:22.943Z","response_time":86,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["biome","bun","changesets","library","npm","template","typescript","vitest"],"created_at":"2026-01-07T08:08:00.141Z","updated_at":"2026-01-21T07:55:14.087Z","avatar_url":"https://github.com/pyyupsk.png","language":"TypeScript","funding_links":["https://github.com/sponsors/pyyupsk"],"categories":[],"sub_categories":[],"readme":"# npm-ts-template\n\n[![CI](https://github.com/pyyupsk/npm-ts-template/actions/workflows/ci.yml/badge.svg)](https://github.com/pyyupsk/npm-ts-template/actions/workflows/ci.yml)\n[![npm version](https://img.shields.io/npm/v/@pyyupsk/npm-ts-template)](https://www.npmjs.com/package/@pyyupsk/npm-ts-template)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n\nZero-config TypeScript library template with Bun, tsdown, Prettier, ESLint, Vitest, and git-cliff.\n\n## Features\n\n- **TypeScript 5.x** with `@tsconfig/strictest` for maximum type safety\n- **Dual ESM/CJS** output via tsdown with automatic type declarations\n- **Prettier** for consistent code formatting\n- **ESLint** with SonarJS, JSDoc enforcement, and import sorting\n- **Vitest** for fast testing with v8 coverage (80% threshold)\n- **Lefthook** for pre-commit hooks (lint + typecheck)\n- **git-cliff** for automated changelog generation\n- **GitHub Actions** for CI/CD with manual release workflow\n- **VitePress** documentation site\n\n## Quick Start\n\n1. Click **[Use this template](https://github.com/pyyupsk/npm-ts-template/generate)** to create your repository\n\n2. Clone and install:\n\n   ```bash\n   git clone https://github.com/YOUR_USERNAME/YOUR_REPO.git\n   cd YOUR_REPO\n   bun install\n   ```\n\n3. Configure repository settings:\n\n   ```bash\n   ./scripts/setup-repo.sh\n   ```\n\n4. Add required secrets in GitHub Settings → Secrets → Actions:\n   - `NPM_TOKEN` - npm automation token\n   - `GH_PAT` - Personal access token with `repo` scope\n\n5. Update `package.json` with your package details and start coding in `src/index.ts`\n\n## Scripts\n\n| Script                  | Description                       |\n| ----------------------- | --------------------------------- |\n| `bun run build`         | Build ESM/CJS bundles to `dist/`  |\n| `bun run dev`           | Build in watch mode               |\n| `bun run test`          | Run tests                         |\n| `bun run test:coverage` | Run tests with coverage report    |\n| `bun run lint`          | Check code quality with ESLint    |\n| `bun run lint:fix`      | Auto-fix linting issues           |\n| `bun run format`        | Format code with Prettier         |\n| `bun run typecheck`     | TypeScript type checking          |\n| `bun run knip`          | Find unused code and dependencies |\n| `bun run docs:dev`      | Start documentation dev server    |\n\n## Project Structure\n\n```\n├── src/                 # Source code\n│   └── index.ts         # Library entry point\n├── tests/               # Test files\n├── docs/                # VitePress documentation\n├── scripts/             # Utility scripts\n│   └── setup-repo.sh    # Repository configuration script\n├── .github/\n│   ├── workflows/       # CI/CD workflows\n│   └── dependabot.yml   # Dependency updates\n├── eslint.config.ts     # ESLint configuration\n├── tsconfig.json        # TypeScript configuration\n├── tsdown.config.ts     # Build configuration\n└── cliff.toml           # Changelog configuration\n```\n\n## Releasing\n\nReleases are triggered manually via GitHub Actions:\n\n1. Go to **Actions** → **Release**\n2. Click **Run workflow**\n3. Select version type (`patch`, `minor`, `major`)\n\nThe workflow automatically:\n\n- Bumps version in `package.json`\n- Generates `CHANGELOG.md` with git-cliff\n- Publishes to npm with provenance\n- Creates GitHub release\n\n## Documentation\n\n📚 **[View Full Documentation](https://pyyupsk.github.io/npm-ts-template/)**\n\n## Prerequisites\n\n- [Bun](https://bun.sh/) (latest)\n- [Node.js](https://nodejs.org/) \u003e= 20\n- [GitHub CLI](https://cli.github.com/) (for setup script)\n\n## License\n\nThis project is licensed under the [MIT License](LICENSE) - free for personal and commercial use.\n\nCopyright © 2026 [pyyupsk](https://github.com/pyyupsk)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpyyupsk%2Fnpm-ts-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpyyupsk%2Fnpm-ts-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpyyupsk%2Fnpm-ts-template/lists"}