{"id":14483623,"url":"https://github.com/maxgfr/typescript-swc-starter","last_synced_at":"2026-02-09T23:07:17.104Z","repository":{"id":37026071,"uuid":"466772818","full_name":"maxgfr/typescript-swc-starter","owner":"maxgfr","description":"A minimalist typescript swc starter that generate cjs and esm package","archived":false,"fork":false,"pushed_at":"2025-04-07T17:53:33.000Z","size":3665,"stargazers_count":31,"open_issues_count":4,"forks_count":7,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-07T18:44:16.810Z","etag":null,"topics":["boilerplate","cjs","dotenv","eslint","esm","jest","node","nodejs","nodemon","prettier","rust-compiler","starter","starter-kit","swc","typescript","unbuild"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/typescript-swc-starter","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/maxgfr.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2022-03-06T15:12:40.000Z","updated_at":"2025-04-07T15:08:59.000Z","dependencies_parsed_at":"2024-04-15T11:50:04.390Z","dependency_job_id":"ed585afd-96ce-4608-ad36-7736b538a784","html_url":"https://github.com/maxgfr/typescript-swc-starter","commit_stats":null,"previous_names":[],"tags_count":9,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxgfr%2Ftypescript-swc-starter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxgfr%2Ftypescript-swc-starter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxgfr%2Ftypescript-swc-starter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxgfr%2Ftypescript-swc-starter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maxgfr","download_url":"https://codeload.github.com/maxgfr/typescript-swc-starter/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247713121,"owners_count":20983680,"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","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":["boilerplate","cjs","dotenv","eslint","esm","jest","node","nodejs","nodemon","prettier","rust-compiler","starter","starter-kit","swc","typescript","unbuild"],"created_at":"2024-09-03T00:01:55.053Z","updated_at":"2026-02-09T23:07:17.093Z","avatar_url":"https://github.com/maxgfr.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"# typescript-swc-starter\n\n[![Build](https://github.com/maxgfr/typescript-swc-starter/actions/workflows/build.yml/badge.svg)](https://github.com/maxgfr/typescript-swc-starter/actions/workflows/build.yml)\n[![Test](https://github.com/maxgfr/typescript-swc-starter/actions/workflows/test.yml/badge.svg)](https://github.com/maxgfr/typescript-swc-starter/actions/workflows/test.yml)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n\nA minimalist TypeScript boilerplate using [SWC](https://swc.rs/) for blazing-fast compilation. Generates both `cjs` and `esm` modules.\n\n## ✨ Features\n\n- ⚡ **SWC** - Super-fast TypeScript/JavaScript compiler\n- 📦 **Dual package** - Outputs both CommonJS and ES Modules\n- 🧪 **Jest** - Testing with SWC for speed\n- 🎨 **Biome** - Fast linting and formatting\n- 🔄 **Nodemon** - Hot reload during development\n- 🚀 **Semantic Release** - Automated versioning and publishing\n- 🔒 **Husky + lint-staged** - Pre-commit hooks\n\n## 📋 Prerequisites\n\n- Node.js \u003e= 24\n- pnpm\n\n## 🚀 Getting Started\n\n```sh\n# Clone the repository\ngit clone https://github.com/maxgfr/typescript-swc-starter\ncd typescript-swc-starter\n\n# Install dependencies\npnpm install\n```\n\n## 📜 Scripts\n\n### Development\n\n```sh\npnpm dev          # Run in development mode with hot reload\npnpm develop      # Run source code with SWC register\n```\n\n### Testing\n\n```sh\npnpm test           # Run tests\npnpm test:watch     # Run tests in watch mode\npnpm test:coverage  # Run tests with coverage\n```\n\n### Linting \u0026 Formatting\n\n```sh\npnpm lint       # Lint code with Biome\npnpm lint:fix   # Lint and fix issues\npnpm format     # Check formatting\npnpm format:fix # Format code\npnpm check      # Run both lint and format checks\npnpm check:fix  # Fix both lint and format issues\n```\n\n### Building\n\n```sh\npnpm build       # Compile with SWC\npnpm bundle      # Bundle for distribution (cjs + esm)\npnpm clean       # Clean build artifacts\n```\n\n### Running Built Code\n\n```sh\npnpm start:cjs   # Run CommonJS build\npnpm start:esm   # Run ES Module build\n```\n\n## 📦 Publishing to npm\n\nThis project uses OIDC for npm publishing - no `NPM_TOKEN` required!\n\n1. Go to your npm package's access page: `https://www.npmjs.com/package/\u003cpackage-name\u003e/access`\n2. Set your details and trust publisher\n\n![NPM Access Settings](https://raw.githubusercontent.com/maxgfr/typescript-swc-starter/main/.github/assets/token.png)\n\n## 📖 Usage\n\n```ts\nimport { sayHello } from 'typescript-swc-starter';\n\nsayHello();\n```\n\n## 📄 License\n\nMIT © [maxgfr](https://github.com/maxgfr)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxgfr%2Ftypescript-swc-starter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaxgfr%2Ftypescript-swc-starter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxgfr%2Ftypescript-swc-starter/lists"}