{"id":15723476,"url":"https://github.com/jokester/typescript-boilerplate","last_synced_at":"2025-07-16T05:10:50.524Z","repository":{"id":40211938,"uuid":"77277413","full_name":"jokester/typescript-boilerplate","owner":"jokester","description":"Start writing stuff in TypeScript without bothered by configurations","archived":false,"fork":false,"pushed_at":"2025-07-13T16:17:21.000Z","size":5463,"stargazers_count":34,"open_issues_count":3,"forks_count":4,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-07-14T03:44:30.774Z","etag":null,"topics":["hacktoberfest","hono","nextjs","nodejs","preact","react","template","trpc","typescript","vite"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/jokester.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,"zenodo":null}},"created_at":"2016-12-24T10:09:32.000Z","updated_at":"2025-03-31T04:46:32.000Z","dependencies_parsed_at":"2024-02-11T09:27:16.867Z","dependency_job_id":"951e02f5-a8d3-42a6-91a5-221103ae5422","html_url":"https://github.com/jokester/typescript-boilerplate","commit_stats":null,"previous_names":[],"tags_count":7,"template":true,"template_full_name":null,"purl":"pkg:github/jokester/typescript-boilerplate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jokester%2Ftypescript-boilerplate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jokester%2Ftypescript-boilerplate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jokester%2Ftypescript-boilerplate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jokester%2Ftypescript-boilerplate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jokester","download_url":"https://codeload.github.com/jokester/typescript-boilerplate/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jokester%2Ftypescript-boilerplate/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265483750,"owners_count":23774267,"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":["hacktoberfest","hono","nextjs","nodejs","preact","react","template","trpc","typescript","vite"],"created_at":"2024-10-03T22:11:51.712Z","updated_at":"2025-07-16T05:10:50.502Z","avatar_url":"https://github.com/jokester.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# typescript-boilerplate\n\nTypeScript templates I use to immediately start doing something, with opinionated configuration.\n\n## How To Use\n\nIf you need monorepo:\n\nstart with the whole repo , duplicate or remove variant subpackages as needed\n\nelse:\n\nstart with a package subdirectory, or download ejected zip / tar.xz from Github releases.\n\n## Variants\n\n### `nextjs`, for a frontend + server monolith\n\nBased on [create-next-app template](https://github.com/vercel/next.js/tree/canary/packages/create-next-app/templates/app/ts).\n\nPlugins:\n\n- A hand-roll alternative to [next-compose-plugins](https://github.com/cyrilwanner/next-compose-plugins)\n- [next-bundle-analyzer](https://github.com/zeit/next-plugins/tree/master/packages/next-bundle-analyzer)\n\nLibraries:\n\n- [trpc](https://trpc.io/docs/client/nextjs/setup) for typed API\n- [tailwindcss](https://tailwindcss.com/docs/installation/using-postcss)\n- No CSS or UI libraries. User can freely bring own UI libraries.\n- util libraries: [clsx](https://github.com/lukeed/clsx) [foxact](https://foxact.skk.moe/) [lodash-es](https://www.npmjs.com/package/lodash-es) [@jokester/ts-commonutil](https://github.com/jokester/ts-commonutil)\n\nNot configured for serverless or SSG, I don't use Next.js for them.\n\n### `preact-spa`, for frontend-only SPA\n\nbased on [create-vite template](https://github.com/vitejs/vite/tree/main/packages/create-vite/template-preact-ts)\n\nLibraries:\n\n- [tailwindcss](https://tailwindcss.com)\n- [react-helmet]()\n- [preact-router]()\n\nIf you need to host built assets with path rewriting,\ncheck `hono-worker` variant,\nor [serve-handler](https://github.com/vercel/serve-handler) ([example](https://github.com/jokester/limb/blob/master/server/main.ts)).\n\n### `hono`, for node.js or edge servers\n\n- based on [hono](https://github.com/honojs/hono)\n- Capable of hosting SPA created by `preact-spa`\n\n### `empty`, an empty npm package\n\n- Can be used for any purpose, a new library or CLI or else.\n\n## Conventions shared by all variants\n\nAll the variants contains a similar set of configurations and npm scripts:\n\n- `tsconfig.json`\n- `jest` / `ts-jest` for testing\n- `gts` `prettier` `eslint` for linting and formatting\n- `npm dev`\n- `npm typecheck` / `npm typecheck:watch`\n- `npm lint` / `npm lint:fix`\n- `npm test` / `npm test:watch` / `npm test:coverage`\n- `npm build` / `npm analyze`\n\nThe principles behind current (opinionated) settings are:\n\n- Be strict as possible in TypeScript.\n- Be close to upstream defaults\n\n## Obsolete Variants\n\n- `obsolete/web-gatsby`\n- `obsolete/craco-react`\n- `obsolete/aws-api-gateway`\n- `obsolete/mobile-react-native`\n- `obsolete/web-tsup`\n  - Browser-only React SPA with [egoist/tsup](https://github.com/egoist/tsup)\n\n## LICENSE\n\n- MIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjokester%2Ftypescript-boilerplate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjokester%2Ftypescript-boilerplate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjokester%2Ftypescript-boilerplate/lists"}