Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

react-dev-companion

khxif977MIT1.0.5TypeScript support: included

An interactive React companion widget that follows the Pomodoro timer — a fun floating pet that wakes up, walks, and gets tired as you code.

react, react-component, companion, devtools, pomodoro, productivity, widget, floating-widget, fun, pet, virtual-pet, break-reminder, timer, focus, interactive

readme

React Dev Companion

React Dev Companion is a fun and interactive companion for React developers. It integrates with your Pomodoro timer and visually shows your coding activity through an animated pet that wakes up, walks, and gets tired as your session progresses.on widget.


📦 Installation

Using npm:

npm install react-dev-companion --save-dev

Using yarn:

yarn add react-dev-companion --dev

⚡ Usage

Import the component and styles into your project:

import { Companion } from 'react-dev-companion';

export default function App() {
  return (
    <div>
      <Companion direction="bottom-right" resetOnClick />
    </div>
  );
}

🎛 Props

Prop Type Default Description
position string "bottom-right" Position of the companion. Options: "bottom-right", "bottom-left", "top-right", "top-left".
resetOnClick boolean false Resets the companions timer.

📄 License

This project is licensed under the MIT License — free to use and modify.


💡 Contributing

Pull requests are welcome!
For major changes, please open an issue first to discuss your ideas.