{"id":39099319,"url":"https://github.com/digitalcube/galaxy-react","last_synced_at":"2026-01-17T19:01:31.580Z","repository":{"id":38367517,"uuid":"383112767","full_name":"digitalcube/galaxy-react","owner":"digitalcube","description":null,"archived":false,"fork":false,"pushed_at":"2024-11-15T03:35:56.000Z","size":6841,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":11,"default_branch":"main","last_synced_at":"2026-01-11T17:35:14.293Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://galaxy.digitalcu.be/","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/digitalcube.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-07-05T11:10:58.000Z","updated_at":"2024-11-15T03:35:59.000Z","dependencies_parsed_at":"2024-11-13T06:15:23.765Z","dependency_job_id":null,"html_url":"https://github.com/digitalcube/galaxy-react","commit_stats":null,"previous_names":[],"tags_count":169,"template":false,"template_full_name":null,"purl":"pkg:github/digitalcube/galaxy-react","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digitalcube%2Fgalaxy-react","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digitalcube%2Fgalaxy-react/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digitalcube%2Fgalaxy-react/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digitalcube%2Fgalaxy-react/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/digitalcube","download_url":"https://codeload.github.com/digitalcube/galaxy-react/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digitalcube%2Fgalaxy-react/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28516540,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T18:55:29.170Z","status":"ssl_error","status_checked_at":"2026-01-17T18:55:03.375Z","response_time":85,"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":"2026-01-17T19:01:30.898Z","updated_at":"2026-01-17T19:01:31.565Z","avatar_url":"https://github.com/digitalcube.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# [@galaxy/react] React Component for Galaxy (beta)\n\n## Supported themes\n- AMIMOTO\n- Shifter\n\n## Getting started\n\n### Install\n\n```bash\n$ npm install @galaxy/react bootstrap@4\n```\n\n### Import css\n\n```jsx:src/index.jsx\nimport React from 'react';\nimport ReactDOM from 'react-dom';\nimport 'bootstrap/dist/css/bootstrap.min.css';\nimport '@galaxy/react/dist/css/styles.css';\n\nimport App from './app';\n\nReactDOM.render(\n  \u003cReact.StrictMode\u003e\n      \u003cApp /\u003e\n  \u003c/React.StrictMode\u003e,\n  document.getElementById('root')\n);\n```\n\n## Development\n\n### Setup\n\n```bash\n$ git clone git@github.com:digitalcube/galaxy-react-shifter.git\n$ cd galaxy-react-shifter\n\n$ npm install\n```\n\n### Development commands\n\n```bash\n# Preview Component by Storybook [Recommended]\n$ npm run storybook\n\n# Just watch and build files\n$ npm run start\n\n# Unit test by Jest\n$ npm run test\n\n# Build package\n$ npm run build\n```\n\n### Make a Pull Request\n\n```bash\n$ git checkout -b [feat|fix|chore|breaking-change]/[TOPIC]\n$ git add ./\n$ git commit -m \"[feat|fix|chore|breaking-change] WHAT DID YOU DO\"\n$ git push [YOUR_ORIGIN] [feat|fix|chore|breaking-change]/[TOPIC]\n```\n\n## For Maintainers\n\n### Publish to npm\n\nWe're using `np` to publish the package.\n\n```bash\n$ npm run release\n```\n\n[Docs](https://github.com/sindresorhus/np)\n\n#### [Optional] Manually\n```bah\n$ npm version [patch|minor|major]\n$ npm publish .\n```\n\n# [Appendix] TSDX React w/ Storybook User Guide\n\nCongrats! You just saved yourself hours of work by bootstrapping this project with TSDX. Let’s get you oriented with what’s here and how to use it.\n\n\u003e This TSDX 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\nTSDX scaffolds your new library inside `/src`, and also sets up a [Parcel-based](https://parceljs.org) playground for it inside `/example`.\n\nThe recommended workflow is to run TSDX in one terminal:\n\n```bash\nnpm run start\n```\n\nThis builds to `/dist` and runs the project in watch mode so any edits you save inside `src` causes a rebuild to `/dist`.\n\nThen run either Storybook or the example playground:\n\n### Storybook\n\nRun inside another terminal:\n\n```bash\nnpm run 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\nnpm i\nnpm run start\n```\n\nThe default example imports and live reloads whatever is in `/dist`, so if you are seeing an out of date component, make sure TSDX is running in watch mode like we recommend above. **No symlinking required**, we use [Parcel's aliasing](https://parceljs.org/module_resolution.html#aliases).\n\nTo do a one-off build, use `npm run build`.\n\nTo run tests, use `npm run 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 `npm run 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 visualize 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.tsx       # 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\nTSDX uses [Rollup](https://rollupjs.org) as a bundler and generates multiple rollup configs for various module formats and build settings. See [Optimizations](#optimizations) for details.\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## Optimizations\n\nPlease see the main `tsdx` [optimizations docs](https://github.com/palmerhq/tsdx#optimizations). In particular, know that you can take advantage of development-only optimizations:\n\n```js\n// ./types/index.d.ts\ndeclare var __DEV__: boolean;\n\n// inside your code...\nif (__DEV__) {\n  console.log('foo');\n}\n```\n\nYou can also choose to install and use [invariant](https://github.com/palmerhq/tsdx#invariant) and [warning](https://github.com/palmerhq/tsdx#warning) functions.\n\n## Module Formats\n\nCJS, ESModules, and UMD module formats are supported.\n\nThe appropriate paths are configured in `package.json` and `dist/index.js` accordingly. Please report if any issues are found.\n\n## Deploying the Example Playground\n\nThe Playground is just a simple [Parcel](https://parceljs.org) app, you can deploy it anywhere you would normally deploy that. Here are some guidelines for **manually** deploying with the Netlify CLI (`npm i -g netlify-cli`):\n\n```bash\ncd example # if not already in the example folder\nnpm run build # builds to dist\nnetlify deploy # deploy the dist folder\n```\n\nAlternatively, if you already have a git repo connected, you can set up continuous deployment with Netlify:\n\n```bash\nnetlify init\n# build command: npm run build \u0026\u0026 cd example \u0026\u0026 npm \u0026\u0026 npm run build\n# directory to deploy: example/dist\n# pick yes for netlify.toml\n```\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. TSDX has 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## Publishing to NPM\n\nWe recommend using [np](https://github.com/sindresorhus/np).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdigitalcube%2Fgalaxy-react","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdigitalcube%2Fgalaxy-react","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdigitalcube%2Fgalaxy-react/lists"}