{"id":19446866,"url":"https://github.com/knitkode/koine","last_synced_at":"2025-10-19T11:27:10.720Z","repository":{"id":38842043,"uuid":"479024894","full_name":"knitkode/koine","owner":"knitkode","description":"Opinionated typescript library for rapid and high quality web development","archived":false,"fork":false,"pushed_at":"2025-01-14T19:45:04.000Z","size":16582,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-18T18:21:42.895Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/knitkode.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-04-07T14:40:18.000Z","updated_at":"2025-01-14T19:45:08.000Z","dependencies_parsed_at":"2023-02-15T23:45:33.615Z","dependency_job_id":"d65bcea7-921a-4d80-b4a8-1da2a0184df3","html_url":"https://github.com/knitkode/koine","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knitkode%2Fkoine","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knitkode%2Fkoine/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knitkode%2Fkoine/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knitkode%2Fkoine/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/knitkode","download_url":"https://codeload.github.com/knitkode/koine/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250738188,"owners_count":21479145,"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":[],"created_at":"2024-11-10T16:15:28.195Z","updated_at":"2025-10-19T11:27:10.606Z","avatar_url":"https://github.com/knitkode.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Koine\n\nThis project was generated using [Nx](https://nx.dev).\n\n## Getting started\n\n```bash\nnpm i @koine/next\n# or\nnpm i @koine/react\n# or\nnpm i @koine/utils\n# or\nnpm i @koine/api\n# or\nnpm i @koine/browser\n# or\nnpm i @koine/dom\n# or\nnpm i @koine/i18n\n```\n\n## Dev notes\n\n## Github actions\n\n- See this [discussion](https://github.com/orgs/community/discussions/24990) and the [`CodeQL` action repo](https://github.com/github/codeql-action) regarding the ability to publish multiple actions from the same monorepo.\n\n## Nxplugins used\n\n- [@jscutlery/semver](https://github.com/jscutlery/semver)\n\n### Folder organization\n\nDeep import paths considered as public and safe always need a folder with an `index.ts` file (see e.g. the [`@koine/next/app` folder](./packages/next/app/)). Once bundled these folders will contain an automatically generated `package.json` file that will help bundlers getting the right `cjs`/`esm` version of the file and correctly applying tree shaking.\n\n\u003e Most problems solved by this structure emerged in the `@koine/next` package when using the `app` and `document` wrapper. Without this structure [next.js](https://nextjs.org/) was not compiling the files correctly. Same for all components, the best _tree-shaked_ output is obtained with the `esm` as in the current folder organization, inspired by [`@mui` packages](https://github.com/mui/material-ui) build output.\n\n### Logging\n\nUse `console.log` only for internal development, all other _public_ logging should use either `console.info`, `console.warn` or `console.error`. Their messages should always follow this syntax `[@koine/{package}:{function}] some details`. Most of the time these logging should be wrapped in an `if` condition to be eliminated in production code (`if (process.env[\"NODE_ENV\"] === \"development\") { ... }`).\n\n### React components structure\n\n- About the react component object dot notation (e.g. `Dialog.Root`) see [@headless-ui technique](https://github.com/tailwindlabs/headlessui/blob/main/packages/%40headlessui-react/src/components/dialog/dialog.tsx#L550)\n\n- About storybook having problmes to generate docs from props @see:\n  - https://github.com/storybookjs/storybook/issues/5073\n  - https://github.com/storybookjs/storybook/issues/12292\n\n### Optimization\n\n- TODO: check wether deep default imports from `react-use` affect tree shaking\n- TODO: look whether adding functions from [ts-is-present](https://github.com/robertmassaioli/ts-is-present) lib to `@koine/utils`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fknitkode%2Fkoine","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fknitkode%2Fkoine","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fknitkode%2Fkoine/lists"}