{"id":27883353,"url":"https://github.com/zsakowitz/esbuild-template","last_synced_at":"2026-01-24T19:07:02.828Z","repository":{"id":288800698,"uuid":"969216591","full_name":"zsakowitz/esbuild-template","owner":"zsakowitz","description":null,"archived":false,"fork":false,"pushed_at":"2025-04-19T16:53:02.000Z","size":26,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-05T06:15:18.602Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zsakowitz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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-04-19T16:48:37.000Z","updated_at":"2025-04-19T16:53:05.000Z","dependencies_parsed_at":"2025-04-24T00:31:53.853Z","dependency_job_id":null,"html_url":"https://github.com/zsakowitz/esbuild-template","commit_stats":null,"previous_names":["zsakowitz/esbuild-template"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zsakowitz/esbuild-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zsakowitz%2Fesbuild-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zsakowitz%2Fesbuild-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zsakowitz%2Fesbuild-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zsakowitz%2Fesbuild-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zsakowitz","download_url":"https://codeload.github.com/zsakowitz/esbuild-template/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zsakowitz%2Fesbuild-template/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28734832,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-24T17:51:25.893Z","status":"ssl_error","status_checked_at":"2026-01-24T17:50:48.377Z","response_time":89,"last_error":"SSL_read: 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":[],"created_at":"2025-05-05T06:15:18.091Z","updated_at":"2026-01-24T19:07:02.814Z","avatar_url":"https://github.com/zsakowitz.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"This is a single-page application template which uses esbuild, tailwindcss,\nTypeScript, and Bun.\n\n## Your code\n\n- `src/index.ts`: where you write your code\n- `src/index.dev.html`: the development HTML template\n- `src/index.prod.html`: the production HTML template\n- `src/index.postcss`: your CSS\n\n**Run `bun tw` and `bun esb` in separate terminals to start developing.**\n\n## Other files\n\n- `src/index.dist.d.css.ts`: a declaration file so TypeScript knows\n  `index.dist.css` exists and can be imported without causing an error\n\n## Generated files\n\n- `src/index.postcss.css`: the compiled postcss and tailwind code (this isn't in\n  `dist` so that esbuild doesn't override it accidentally)\n- `dist/...`: esbuild's output directory\n\nMake sure to import `src/index.postcss.css` into your main JavaScript file; this\nis how esbuild knows where to get your CSS from.\n\n## Running the project\n\nTo develop locally, run `bun tw` and `bun esb` in two separate terminals. If you\nthink you won't make any CSS modifications, you can just run `bun dev` instead,\nwhich will rebuild the CSS once, then switch to `bun esb`.\n\nTo deploy the project, execute `bun run build` to generate the `dist` directory,\nthen serve the entire `dist/` directory.\n\n## Code-splitting\n\nesbuild code-splitting is enabled, so asynchronous `import(...)` statements will\nwork. This means, however, that import order is not guaranteed to be stable. See\nhttps://esbuild.github.io/api/#splitting for more information.\n\nImports will work correctly if you avoid cyclic imports (multiple files\nimporting each other in a chain). To check the project for cyclic imports, run\n`bun lint:cycles`.\n\n## Icons\n\nUse https://realfavicongenerator.net/ to generate these files:\n\n- apple-touch-icon.png\n- favicon-96x96.png\n- favicon.ico\n- favicon.svg\n- site.webmanifest\n- web-app-manifest-192x192.png\n- web-app-manifest-512x512.png\n\nThen, put all those files into a top-level `icon` directory, and change the\n\"build:icon\" script in the package.json to:\n\n```sh\ncp -R icon dist/icon \u0026\u0026 cp icon/favicon.ico dist/favicon.ico\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzsakowitz%2Fesbuild-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzsakowitz%2Fesbuild-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzsakowitz%2Fesbuild-template/lists"}