{"id":32706651,"url":"https://github.com/contractrabbit/cr-components","last_synced_at":"2026-05-01T23:39:22.297Z","repository":{"id":321430965,"uuid":"1085694046","full_name":"contractrabbit/cr-components","owner":"contractrabbit","description":"Contract Rabbit Shadcn Component Library","archived":false,"fork":false,"pushed_at":"2025-12-12T14:38:25.000Z","size":229,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-01T23:38:58.488Z","etag":null,"topics":["cdf","filter","react","selector","shadcn"],"latest_commit_sha":null,"homepage":"https://cr-components.vercel.app/","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/contractrabbit.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-10-29T11:43:36.000Z","updated_at":"2025-12-12T14:38:29.000Z","dependencies_parsed_at":"2025-10-29T17:17:22.869Z","dependency_job_id":"f80f5d62-8226-4e2d-9aa1-20e3c8ae5386","html_url":"https://github.com/contractrabbit/cr-components","commit_stats":null,"previous_names":["contractrabbit/cr-components"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/contractrabbit/cr-components","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/contractrabbit%2Fcr-components","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/contractrabbit%2Fcr-components/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/contractrabbit%2Fcr-components/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/contractrabbit%2Fcr-components/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/contractrabbit","download_url":"https://codeload.github.com/contractrabbit/cr-components/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/contractrabbit%2Fcr-components/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32517232,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"online","status_checked_at":"2026-05-01T02:00:05.856Z","response_time":64,"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":["cdf","filter","react","selector","shadcn"],"created_at":"2025-11-02T02:01:19.497Z","updated_at":"2026-05-01T23:39:22.289Z","avatar_url":"https://github.com/contractrabbit.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @contractrabbit/ui Components\n\nA React component library featuring a cumulative density filter and shadcn/ui components.\n\n**Live Demo:** https://cr-components.vercel.app\n\n## Quick Start\n\nInstall the cumulative density filter component:\n\n```bash\nnpx shadcn@latest add https://cr-components.vercel.app/registry/cumulative-density-filter.json\n```\n\nOr install the full package:\n\n```bash\npnpm add @contractrabbit/ui\n```\n\n### Testing\n\nWe use Vitest for unit tests within the `@contractrabbit/ui` package.\n\nCommands:\n- `pnpm -C packages/ui test` – run tests once\n- `pnpm -C packages/ui test:watch` – watch mode\n\n## Adding components\n\nTo add components to your app, run the following command at the root of your `web` app:\n\n```bash\npnpm dlx shadcn@latest add button -c apps/web\n```\n\nThis will place the ui components in the `packages/ui/src/components` directory.\n\n## Tailwind\n\nYour `tailwind.config.ts` and `globals.css` are already set up to use the components from the `ui` package.\n\n## Using components\n\nImport components from `@contractrabbit/ui` in your app.\n\n```tsx\nimport { Button } from \"@contractrabbit/ui/components/button\"\nimport { CumulativeDensityFilter } from \"@contractrabbit/ui\"\n```\n\n## Components\n\n### CumulativeDensityFilter\n\nAn interactive chart component that displays a cumulative distribution with a draggable threshold for filtering numeric data.\n\n**Features:**\n- Smooth cumulative distribution visualization\n- Draggable threshold with real-time updates\n- Support for logarithmic and linear scales\n- Customizable colors and styling\n- Fully responsive\n- Optimized performance\n\n**Example:**\n\n```tsx\nimport { CumulativeDensityFilter } from \"@contractrabbit/ui\"\n\n\u003cCumulativeDensityFilter\n  values={[10, 20, 30, 40, 50, 60, 70, 80, 90, 100]}\n  filterMode=\"lte\"\n  onThresholdChange={(threshold, count) =\u003e {\n    console.log(`Threshold: ${threshold}, Count: ${count}`)\n  }}\n  className=\"border rounded-md p-4\"\n/\u003e\n```\n\nFor full documentation, see [`packages/ui/README.md`](./packages/ui/README.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcontractrabbit%2Fcr-components","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcontractrabbit%2Fcr-components","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcontractrabbit%2Fcr-components/lists"}