{"id":43606898,"url":"https://github.com/componade/calendarjs","last_synced_at":"2026-02-05T19:00:43.690Z","repository":{"id":325918009,"uuid":"1083218431","full_name":"componade/calendarjs","owner":"componade","description":null,"archived":false,"fork":false,"pushed_at":"2025-10-25T15:23:38.000Z","size":0,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-11-27T17:11:02.935Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"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/componade.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-25T15:23:37.000Z","updated_at":"2025-10-25T15:23:41.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/componade/calendarjs","commit_stats":null,"previous_names":["componade/calendarjs"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/componade/calendarjs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/componade%2Fcalendarjs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/componade%2Fcalendarjs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/componade%2Fcalendarjs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/componade%2Fcalendarjs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/componade","download_url":"https://codeload.github.com/componade/calendarjs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/componade%2Fcalendarjs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29130088,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-05T18:55:47.139Z","status":"ssl_error","status_checked_at":"2026-02-05T18:55:04.010Z","response_time":65,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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-02-04T09:00:31.597Z","updated_at":"2026-02-05T19:00:43.684Z","avatar_url":"https://github.com/componade.png","language":null,"funding_links":[],"categories":["Third Party Components"],"sub_categories":["Calendars"],"readme":"# CalendarJS\n\nLightweight JavaScript components for calendars, schedules, and timelines. Works with React, Vue, Angular, or vanilla JS.\n\n## Components\n\n| Component | Size | Description |\n|-----------|------|-------------|\n| Calendar | 3.2KB | Date picker with range and time selection |\n| Schedule | 4.2KB | Day/week event scheduler with drag-and-drop |\n| Timeline | 2.1KB | Chronological event display |\n| Helpers | 1KB | Date utilities and formatting |\n\n## Installation\n\n```bash\nnpm install @calendarjs/ce\n```\n\nOr via CDN:\n\n```html\n\u003cscript src=\"https://cdn.jsdelivr.net/npm/lemonadejs/dist/lemonade.min.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"https://cdn.jsdelivr.net/npm/@calendarjs/ce/dist/index.min.js\"\u003e\u003c/script\u003e\n\u003clink rel=\"stylesheet\" href=\"https://cdn.jsdelivr.net/npm/@calendarjs/ce/dist/style.min.css\" /\u003e\n```\n\n## Quick Start\n\n### Calendar\n\n```javascript\nimport { Calendar } from '@calendarjs/ce';\n\nCalendar(document.getElementById('calendar'), {\n    type: 'inline',\n    value: '2025-01-15',\n    onchange: (self, value) =\u003e console.log(value)\n});\n```\n\n### Schedule\n\n```javascript\nimport { Schedule } from '@calendarjs/ce';\n\nSchedule(document.getElementById('schedule'), {\n    type: 'week',\n    value: '2025-01-15',\n    data: [\n        { guid: '1', title: 'Meeting', date: '2025-01-15', start: '09:00', end: '10:00', color: '#3498db' }\n    ]\n});\n```\n\n### Timeline\n\n```javascript\nimport { Timeline } from '@calendarjs/ce';\n\nTimeline(document.getElementById('timeline'), {\n    data: [\n        { title: 'Project Start', date: '2025-01-01', borderColor: '#3498db' },\n        { title: 'Launch', date: '2025-03-01', borderColor: '#27ae60' }\n    ]\n});\n```\n\n## React\n\n```jsx\nimport { Calendar, Schedule, Timeline } from '@calendarjs/ce/dist/react';\nimport '@calendarjs/ce/dist/style.css';\n\nfunction App() {\n    return \u003cCalendar type=\"inline\" value=\"2025-01-15\" /\u003e;\n}\n```\n\n## Vue\n\n```vue\n\u003ctemplate\u003e\n    \u003cCalendar type=\"inline\" value=\"2025-01-15\" /\u003e\n\u003c/template\u003e\n\n\u003cscript\u003e\nimport { Calendar } from '@calendarjs/ce/dist/vue';\nimport '@calendarjs/ce/dist/style.css';\n\nexport default {\n    components: { Calendar }\n}\n\u003c/script\u003e\n```\n\n## Calendar Options\n\n| Option | Type | Description |\n|--------|------|-------------|\n| `type` | `'default' \\| 'inline' \\| 'picker'` | Display mode |\n| `value` | `string \\| Date` | Selected date |\n| `range` | `boolean` | Enable range selection |\n| `time` | `boolean` | Show time picker |\n| `format` | `string` | Date format (e.g., `'DD/MM/YYYY'`) |\n| `validRange` | `string[]` | Restrict selectable dates |\n| `onchange` | `function` | Callback on date change |\n\n## Schedule Options\n\n| Option | Type | Description |\n|--------|------|-------------|\n| `type` | `'day' \\| 'week' \\| 'weekdays'` | View type |\n| `value` | `string` | Current date (YYYY-MM-DD) |\n| `data` | `Event[]` | Array of events |\n| `grid` | `number` | Time interval in minutes (default: 15) |\n| `validRange` | `string[]` | Visible time range (e.g., `['08:00', '18:00']`) |\n| `weekly` | `boolean` | Recurring weekly mode |\n\n### Event Object\n\n```typescript\n{\n    guid: string;        // Unique identifier\n    title: string;       // Event title\n    date: string;        // YYYY-MM-DD (or weekday 0-6 if weekly: true)\n    start: string;       // HH:MM\n    end?: string;        // HH:MM\n    color: string;       // Hex color\n}\n```\n\n## Schedule Methods\n\n```javascript\nconst schedule = Schedule(element, options);\n\nschedule.addEvents({ guid: '2', title: 'New', date: '2025-01-15', start: '14:00', color: '#e74c3c' });\nschedule.updateEvent('2', { title: 'Updated' });\nschedule.deleteEvents('2');\nschedule.getData();\nschedule.undo();\nschedule.redo();\n```\n\n## Timeline Options\n\n| Option | Type | Description |\n|--------|------|-------------|\n| `data` | `Item[]` | Array of timeline items |\n| `type` | `'default' \\| 'monthly'` | Display mode |\n| `align` | `'left' \\| 'right'` | Bullet alignment |\n| `order` | `'asc' \\| 'desc'` | Sort order |\n\n## Helpers\n\n```javascript\nimport { Helpers } from '@calendarjs/ce';\n\nHelpers.now();                          // \"2025-01-15 14:30:00\"\nHelpers.dateToNum(new Date());          // 45678 (Excel serial)\nHelpers.numToDate(45678);               // \"2025-01-15\"\nHelpers.prettify('2025-01-15 12:00');   // \"2h ago\"\nHelpers.isValidDate(new Date());        // true\nHelpers.isValidDateFormat('2025-01-15'); // true\n```\n\n## TypeScript\n\nType definitions included. Import types:\n\n```typescript\nimport type { Calendar, Schedule, Timeline } from '@calendarjs/ce';\n```\n\n## Documentation\n\n[calendarjs.com/docs](https://calendarjs.com/docs)\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcomponade%2Fcalendarjs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcomponade%2Fcalendarjs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcomponade%2Fcalendarjs/lists"}