{"id":29875547,"url":"https://github.com/agentlab/ldkg-ui-charts","last_synced_at":"2025-07-31T02:17:00.618Z","repository":{"id":46226471,"uuid":"354787646","full_name":"agentlab/ldkg-ui-charts","owner":"agentlab","description":"LDKG Charts UI Components","archived":false,"fork":false,"pushed_at":"2022-03-01T18:21:26.000Z","size":8421,"stargazers_count":0,"open_issues_count":5,"forks_count":0,"subscribers_count":5,"default_branch":"main","last_synced_at":"2024-03-26T05:22:04.362Z","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":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/agentlab.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-04-05T09:50:17.000Z","updated_at":"2024-03-26T05:22:04.362Z","dependencies_parsed_at":"2022-09-15T15:50:42.698Z","dependency_job_id":null,"html_url":"https://github.com/agentlab/ldkg-ui-charts","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/agentlab/ldkg-ui-charts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agentlab%2Fldkg-ui-charts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agentlab%2Fldkg-ui-charts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agentlab%2Fldkg-ui-charts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agentlab%2Fldkg-ui-charts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/agentlab","download_url":"https://codeload.github.com/agentlab/ldkg-ui-charts/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agentlab%2Fldkg-ui-charts/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267977728,"owners_count":24175221,"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","status":"online","status_checked_at":"2025-07-31T02:00:08.723Z","response_time":66,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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-07-31T02:16:49.083Z","updated_at":"2025-07-31T02:17:00.605Z","avatar_url":"https://github.com/agentlab.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rollup React w/ Storybook User Guide\n\nCongrats! You just saved yourself hours of work by bootstrapping this project with Rollup. Let’s get you oriented with what’s here and how to use it.\n\n\u003e This setup is meant for developing React component libraries (not apps!) that can be published to NPM. If you’re looking to build a React-based app, you should use `create-react-app`, `razzle`, `nextjs`, `gatsby`, or `react-static`.\n\n\u003e If you’re new to TypeScript and React, checkout [this handy cheatsheet](https://github.com/sw-yx/react-typescript-cheatsheet/)\n\n## Commands\n\nRollup scaffolds your new library inside `/src`, and also sets up a [CRA-based](https://create-react-app.dev) playground for it inside `/example`.\n\nThe recommended workflow is to run Rollup in one terminal:\n\n```bash\nyarn start # or yarn start\n```\n\nThis builds to `/es` and runs the project in watch mode so any edits you save inside `src` causes a rebuild to `/es`.\n\nThen run either Storybook or the example playground:\n\n### Storybook\n\nRun inside another terminal:\n\n```bash\nyarn storybook\n```\n\nThis loads the stories from `./stories`.\n\n\u003e NOTE: Stories should reference the components as if using the library, similar to the example playground. This means importing from the root project directory. This has been aliased in the tsconfig and the storybook webpack config as a helper.\n\n### Example\n\nThen run the example inside another:\n\n```bash\ncd example\nyarn install # to install dependencies\nyarn start # or yarn start\n```\n\nThe default example imports and live reloads whatever is in `/es`, so if you are seeing an out of date component, make sure Rollup is running in watch mode like we recommend above. **No symlinking required**, we use aliasing.\n\nTo do a one-off build, use `yarn build`.\n\nTo run tests, use `yarn test`.\n\n## Configuration\n\nCode quality is set up for you with `prettier`, `husky`, and `lint-staged`. Adjust the respective fields in `package.json` accordingly.\n\n### Jest\n\nJest tests are set up to run with `yarn test`.\n\n### Bundle analysis\n\nCalculates the real cost of your library using [size-limit](https://github.com/ai/size-limit) with `npm run size` and visulize it with `npm run analyze`.\n\n#### Setup Files\n\nThis is the folder structure we set up for you:\n\n```txt\n/example\n  index.html\n  index.tsx       # test your component here in a demo app\n  package.json\n  tsconfig.json\n/src\n  index.ts       # EDIT THIS\n/test\n  blah.test.tsx   # EDIT THIS\n/stories\n  Thing.stories.tsx # EDIT THIS\n/.storybook\n  main.js\n  preview.js\n.gitignore\npackage.json\nREADME.md         # EDIT THIS\ntsconfig.json\n```\n\n#### React Testing Library\n\nWe do not set up `react-testing-library` for you yet, we welcome contributions and documentation on this.\n\n### Rollup\n\nWe use [Rollup](https://rollupjs.org) as a bundler and generates multiple rollup configs for various module formats and build settings.\n\n### TypeScript\n\n`tsconfig.json` is set up to interpret `dom` and `esnext` types, as well as `react` for `jsx`. Adjust according to your needs.\n\n## Continuous Integration\n\n### GitHub Actions\n\nTwo actions are added by default:\n\n- `main` which installs deps w/ cache, lints, tests, and builds on all pushes against a Node and OS matrix\n- `size` which comments cost comparison of your library on every pull request using [size-limit](https://github.com/ai/size-limit)\n\n## Module Formats\n\nESModule format is supported.\n\nThe appropriate paths are configured in `package.json` and `es/index.js` accordingly. Please report if any issues are found.\n\n## Deploying the Example Playground\n\nThe Playground is just a simple [CRA](https://create-react-app.dev) app, you can deploy it anywhere you would normally deploy that.\n\n## Named Exports\n\nPer Palmer Group guidelines, [always use named exports.](https://github.com/palmerhq/typescript#exports) Code split inside your React app instead of your React library.\n\n## Including Styles\n\nThere are many ways to ship styles, including with CSS-in-JS. We have no opinion on this, configure how you like.\n\nFor vanilla CSS, you can include it at the root directory and add it to the `files` section in your `package.json`, so that it can be imported separately by your users and run through their bundler's loader.\n\n## Usage with Lerna\n\nWhen creating a new package with Rollup within a project set up with Lerna, you might encounter a `Cannot resolve dependency` error when trying to run the `example` project. To fix that you will need to make changes to the `package.json` file _inside the `example` directory_.\n\nThe problem is that due to the nature of how dependencies are installed in Lerna projects, the aliases in the example project's `package.json` might not point to the right place, as those dependencies might have been installed in the root of your Lerna project.\n\nChange the `alias` to point to where those packages are actually installed. This depends on the directory structure of your Lerna project, so the actual path might be different from the diff below.\n\n```diff\n   \"alias\": {\n-    \"react\": \"../node_modules/react\",\n-    \"react-dom\": \"../node_modules/react-dom\"\n+    \"react\": \"../../../node_modules/react\",\n+    \"react-dom\": \"../../../node_modules/react-dom\"\n   },\n```\n\nAn alternative to fixing this problem would be to remove aliases altogether and define the dependencies referenced as aliases as dev dependencies instead. [However, that might cause other problems.](https://github.com/palmerhq/tsdx/issues/64)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagentlab%2Fldkg-ui-charts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fagentlab%2Fldkg-ui-charts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagentlab%2Fldkg-ui-charts/lists"}