npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

@dayflow/core

v1.0.4

Published

A flexible and feature-rich calendar component library for React applications with drag-and-drop support, multiple views (Day, Week, Month, Year), and plugin architecture

Downloads

378

Readme

DayFlow

English | 中文 | 日本語

一个灵活且功能丰富的 React 日历组件库,内置拖拽、多个视图类型以及插件化架构。

npm PRs Welcome License Discord

🗓️ 功能亮点

✨ 月/周/日等多种视图

| 月视图 | 周视图 | | --------------------------------------- | -------------------------------------- | | image | image |

| 日视图 | 事件堆叠层级 | | -------------------------------------- | -------------------------------------- | | image | image |

🤩 默认详情面板(也可替换为多个自定义方案)

| 弹出层详情 | 对话框详情 | | ------------------------------------ | ------------------------------------ | | image | image |

🎯 事件拖拽/缩放顺滑

https://github.com/user-attachments/assets/726a5232-35a8-4fe3-8e7b-4de07c455353

https://github.com/user-attachments/assets/957317e5-02d8-4419-a74b-62b7d191e347

⚡ 想要更多交互体验,请访问我们的 在线 Demo

✨ 核心特性

  • 🗓️ 多视图:日/周/月/年视图自由切换
  • 🎨 高度自定义:基于 Tailwind CSS,易于主题扩展
  • 📱 响应式设计:桌面、平板、移动端一致体验
  • 🔌 插件架构:通过插件拓展业务能力
  • 🎯 拖拽支持:事件拖拽与缩放体验流畅
  • TypeScript:提供完整类型提示
  • 🎨 事件管理:创建、更新、删除、分类事件
  • 🔄 虚拟滚动:大数据场景依旧流畅
  • 🎭 自定义渲染:自定义事件外观与行为

🚀 进阶能力

📅 高级日历能力

  • 跨天事件:自然衔接的多日事件渲染
  • 全天区域:专属全天事件栏
  • 事件堆叠:智能调度堆叠层级
  • 侧边栏:自带日历管理侧栏

🎨 自定义与主题

  • 自定义事件渲染器:完全掌控 UI
  • 颜色编码:内置多类型日历与颜色
  • 详情面板模式:对话框、弹层或自定义面板
  • 可定制头部ViewHeader 提供按钮/标签/下拉等模式
  • 拖拽指示器:为不同事件展示不同拖拽提示

🎯 交互体验

  • 事件回调onEventCreateonEventUpdateonEventDelete
  • 点击事件:随时获取事件点击反馈
  • 拖拽缩放:移动与调整长度一气呵成
  • 颜色选择器:内置颜色选择 UI

⚡ 性能与 DX

  • 虚拟滚动:月份/年视图的大量事件仍高性能
  • TypeScript First:所有 API 提供类型定义
  • 插件体系:事件插件与拖拽插件可扩展
  • Temporal API:使用 Modern Temporal 处理时间

📦 安装

npm install @dayflow/core lucide-react
# 或
yarn add @dayflow/core lucide-react
# 或
pnpm add @dayflow/core lucide-react

Peer Dependencies

  • react >= 18.0.0
  • react-dom >= 18.0.0
  • lucide-react >= 0.400.0

🚀 快速上手

import { useCalendarApp, DayFlowCalendar } from '@dayflow/core';
import { createMonthView, createWeekView, createDayView } from '@dayflow/core';
import '@dayflow/core/dist/styles.css';

function App() {
  const calendar = useCalendarApp({
    views: [createMonthView(), createWeekView(), createDayView()],
    initialDate: new Date(),
  });

  return <DayFlowCalendar calendar={calendar} />;
}

📖 查看完整文档 →

🎯 适用场景

DayFlow 适合用于:

  • 📅 排班与预约:员工排班、预约管理、课程表
  • 🎫 活动管理:会议日程、活动日历、展会安排
  • 🏢 项目排期:任务规划、时间线视图
  • 💼 企业应用:会议室、资源预约、可用性管理

🌟 亮点总结

  • TypeScript 支持
  • 拖拽缩放
  • 虚拟滚动
  • 插件体系
  • React 18+ Hooks 架构
  • Tailwind CSS 友好

🤝 贡献指南

欢迎通过 Pull Request 的方式贡献代码与文档。

🐛 问题反馈

若发现问题,请前往 GitHub Issues

📮 支持

如需交流,请在 GitHub 提 issue 或加入 Discord。


由 Jayce Li 倾情打造 ❤️