MCPcopy Index your code
hub / github.com/cosscom/coss

github.com/cosscom/coss @main sqlite

repository ↗ · DeepWiki ↗
3,036 symbols 7,673 edges 1,611 files 0 documented · 0%
README

coss.com

coss.com/ui (formerly Origin UI)

About the Project

coss.com/ui is the official Cal.com Design System.

Repository Overview

This repository contains multiple products and applications that make up the coss.com ecosystem:

Apps and Packages

  • apps/www/ - Main coss.com website
  • apps/ui/ - coss ui component library and documentation
  • apps/origin/ - Legacy Origin UI components (pre-acquisition)
  • packages/ui/ - Shared UI components package
  • packages/typescript-config/ - TypeScript configurations
  • biome.json - Shared Biome configuration for linting and formatting

Each package/app is 100% TypeScript.

Environment Variables

This monorepo contains multiple Next.js applications that are designed to link to each other. For the navigation to work correctly, you must set up environment variables for both local development and production deployments.

Local Development

For local development, create a .env.local file in each of the app directories with the corresponding variables.

  1. www app

    This app needs to know the URLs of the other apps. Create a file at apps/www/.env.local:

    ```sh

    apps/www/.env.local

    NEXT_PUBLIC_APP_URL=http://localhost:3000 NEXT_PUBLIC_COSS_UI_URL=http://localhost:4000/ui ```

  2. ui app

    This app needs to know the URLs of the other apps. Create a file at apps/ui/.env.local:

    ```sh

    apps/ui/.env.local

    NEXT_PUBLIC_APP_URL=http://localhost:4000/ui NEXT_PUBLIC_COSS_URL=http://localhost:3000 NEXT_PUBLIC_ORIGIN_URL=http://localhost:4001 ```

  3. origin app

    This app needs to know the URLs of the other apps. Create a file at apps/origin/.env.local:

    ```sh

    apps/origin/.env.local

    NEXT_PUBLIC_APP_URL=http://localhost:4001/origin NEXT_PUBLIC_COSS_URL=http://localhost:3000 NEXT_PUBLIC_COSS_UI_URL=http://localhost:4000/ui ```

[!NOTE] Turborepo is configured to watch for changes in .env* files, so it will automatically invalidate the cache when these variables change.

Development

This Turborepo has some additional tools already setup for you:

Build

To build all apps and packages:

bun run build

To build a specific app:

bun run build --filter=www
bun run build --filter=ui
bun run build --filter=origin

Develop

To develop all apps and packages:

bun run dev

To develop a specific app:

bun run dev --filter=www
bun run dev --filter=ui
bun run dev --filter=origin

coss ui

coss ui is a collection of beautifully designed, accessible, and composable components for your React apps. Built on top of Base UI and styled with Tailwind CSS, it's designed for you to copy, paste, and own.

We think Base UI is the best foundation for modern web applications. We've taken its powerful, unstyled primitives and given them a design system that's ready to go, right out of the box.

This is the component library we'll be progressively adopting for cal.com. We're building it in the open for anyone who wants to create beautiful, reliable user interfaces.

Origin UI Acquisition

This repository also includes the Origin UI components as a legacy snapshot. Origin UI was a pre-acquisition collection of Radix-based, shadcn-style components that remains available for use, but with limited support and maintenance. Active development now focuses on the new Particles components built on the coss ui primitives.

Contributing to coss ui

We're always looking for contributors to help improve our UI components. Whether it's a bug report, a new feature, or a documentation update, we appreciate your help.

Please see our Contributing Guidelines for more information on how to get involved.

Licensing

This repository uses a mixed licensing approach. The default license for this project is AGPLv3.0.

  • MIT: The apps/origin/ and apps/ui/ directories are licensed under their original MIT license
  • AGPLv3: All other directories are licensed under the GNU Affero General Public License v3.0

For detailed information, see our Licensing documentation.

Acknowledgements

Special thanks to:

  • Tailwind CSS - For the utility-first CSS framework that powers our design system
  • Base UI - For providing the robust, accessible primitives that form the foundation of our components
  • shadcn/ui - For inspiring our copy-paste approach and component philosophy
  • Fumadocs - For providing the documentation framework that powers our component docs

Extension points exported contracts — how you extend this code

ButtonProps (Interface)
(no doc)
packages/ui/src/components/button.tsx
Item (Interface)
(no doc)
apps/origin/registry/default/components/comp-570.tsx
DropdownItem (Interface)
(no doc)
apps/ui/registry/default/particles/p-date-picker-3.tsx
SortableItemProps (Interface)
(no doc)
apps/examples/calcom/components/sortable.tsx
ToastProviderProps (Interface)
(no doc)
packages/ui/src/components/toast.tsx
Item (Interface)
(no doc)
apps/origin/registry/default/components/comp-571.tsx
DropdownItem (Interface)
(no doc)
apps/ui/registry/default/particles/p-calendar-13.tsx
SortableListProps (Interface)
(no doc)
apps/examples/calcom/components/sortable.tsx

Core symbols most depended-on inside this repo

categories
called by 492
apps/ui/registry/registry-particles.ts
cn
called by 285
apps/ui/registry/default/lib/utils.ts
cn
called by 278
packages/ui/src/lib/utils.ts
cn
called by 210
apps/origin/registry/default/lib/utils.ts
cn
called by 105
apps/ui/lib/utils.ts
addDays
called by 54
apps/examples/calcom/lib/mock-bookings-data.ts
isSameDay
called by 32
apps/examples/calcom/lib/mock-bookings-data.ts
useMediaQuery
called by 26
apps/ui/registry/default/hooks/use-media-query.ts

Shape

Function 2,858
Interface 178

Languages

TypeScript100%

Modules by API surface

apps/examples/calcom/lib/mock-bookings-data.ts29 symbols
packages/ui/src/components/sidebar.tsx25 symbols
apps/ui/registry/default/ui/sidebar.tsx25 symbols
packages/ui/src/components/drawer.tsx22 symbols
apps/ui/registry/default/ui/drawer.tsx22 symbols
packages/ui/src/components/combobox.tsx19 symbols
apps/ui/registry/default/ui/combobox.tsx19 symbols
apps/examples/calcom/components/ui/sidebar.tsx19 symbols
apps/examples/calcom/components/app/filter-chip-date-range.tsx18 symbols
packages/ui/src/components/command.tsx16 symbols
apps/ui/registry/default/ui/command.tsx16 symbols
apps/origin/registry/default/ui/dropdown-menu.tsx15 symbols

Dependencies from manifests, versioned

@base-ui/react1.6.0 · 1×
@biomejs/biome2.3.10 · 1×
@coss/typescript-configworkspace:* · 1×
@coss/uiworkspace:* · 1×
@dnd-kit/core6.3.1 · 1×
@dnd-kit/modifiers9.0.0 · 1×
@dnd-kit/sortable10.0.0 · 1×
@dnd-kit/utilities3.2.2 · 1×
@headless-tree/core1.5.1 · 1×
@headless-tree/react1.5.1 · 1×
@hugeicons/core-free-icons2.0.0 · 1×
@hugeicons/react1.1.1 · 1×

For agents

$ claude mcp add coss \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact