Stay in the flow.
Flow is a personal daily planner to keep you in the flow.
Features:
- 📊 Kanban board: drag and drop tasks between days.
- 🧾 Lists & items: add items to lists and drag them into your day once you're ready to do them.
- 📕 Routines: start your day the right way with a morning routine.
- 🧩 Plugin-based: you can install and create plugins to extend Flow's functionality.
- 💯 Open source: Flow is open source project, so you can contribute to it and make it better.
If you have suggestions for how Flow could be improved, or want to report a bug, open an issue! All contributions are welcome.
Flow is optimized for development with Claude Code and Conductor. All documentation for AI-assisted development is in the .claude-code/ directory:
.claude-code/instructions.md- Main reference for development workflows, commands, and conventions.claude-code/setup.md- Environment setup and troubleshooting.claude-code/conventions.md- Code style guide (includes the no-destructuring rule).claude-code/architecture.md- System architecture and design decisions.claude-code/plugin-development.md- Complete guide to building plugins
Critical Workflows:
- Always run
bun relayafter GraphQL schema changes - Always run
bun run formatbefore committing - When installing plugins, temporarily remove
--watchflag from server (see plugin development guide)
Code Conventions:
- No object destructuring (except React hooks and arrays) - see conventions.md for details
- Use
props.valueinstead of destructuring - Tests are not maintained yet (skip for now)
Development Servers:
- Standard:
cd apps/server && bun dev+cd apps/web && bun dev - Plugin dev: Add
cd apps/plugin-dev && bun dev(serves plugins with hot-reload) - OAuth testing: Use ngrok for plugin-apps
See .claude-code/instructions.md for complete workflows and troubleshooting.
Note
Since migrating to bun, the setup for GitHub Codespaces has not been maintained. It may or may not work. The Codespaces setup is not the primary focus of the project right now, but if you want to help with it, please open an issue describing the problems you faced. If you want to help fix it, please open a PR.
You can create a GitHub Codespace from this repository by clicking the green button at the top of the page and selecting "New codespace". This will create a Codespace with with everything you need to start developing on Flow:
- Starts a Postgres database on port 5432
- Seeds the database with some data (go to apps/server/prisma/seed.ts to see what it creates).
- Starts the
serverapp in watch on port 4000 - Starts the
webapp in watch on port 3000 and connects to theserverapp on port 4000
When you open the web app in the browser, you may see nothing or "Hello world". To fix this you will need to:
- Open the web app at http://localhost:3000
- You should now see the app with some tasks already created.
- Fork and clone the repository
- Install dependencies:
bun install
- Start a Postgres database
- Copy the
.env.examplefile inapps/serverinto a.envfile and modify theDATABASE_URLenvironment variable to point to your databasecp apps/server/.env.example apps/server/.env
- Run the migrations
or reset it if you have already run it before. This will also seed the database with some data so you can skip the next step.
bun db:dev
bun db:reset
- (optional) Seed the database
bun db:seed
- Copy the
.env.examplefile inapps/webinto a.envfile. No need to modify anything.cp apps/web/.env.example apps/web/.env
- Start the
serverandwebappbun dev
- Open the web app at http://localhost:3000
- You should now see the app with some tasks already created.
If you are using VS Code, you will be prompted to install the recommended extensions, which you can find in .vscode/extensions.json. These extensions are:
- Prettier for formatting.
- Relay for Relay GraphQL support.
- UnoCSS for UnoCSS support.
- Prisma for Prisma support.
Note
Since migrating to bun, the tests have not been maintained. They may or may not work. Test are not the primary focus of the project right now.
To run tests, run the following command:
bun run testFor now there are only tests in the server app, so you can also run them directly from the server app:
cd apps/server
bun run testI couldn't get the VS Code extension to work with the relay.config.json file in the apps/web directory. This also means that the relay-compiler is run from the root directory, hence why the relay script in apps/web is cd ../.. && relay-compiler.
I've found that destructuring objects can make it harder to read and refactor code. This does not apply to destructuring arrays. Example:
// ❌ Bad
const MyComponent = ({ value }) => {
return <div>{value}</div>;
};
// ❌ Bad
const MyComponent = (props) => {
const { value } = props;
return <div>{value}</div>;
};
// ✅ Good
const MyComponent = (props) => {
// destructuring objects returned by React hooks is fine
const { symbol } = useLocaleCurrency();
return <div>{props.myProp} {symbol}</div>;
};
// ✅ Good
const MyComponent = (props) => {
// destructuring arrays is fine
const [value, setValue] = useState(props.value);
return <div>{value}</div>;
};I was originally using TailwindCSS, but as I later realized I wanted/needed plugins to also have access to the same theme as the main app, I decided to switch to UnoCSS. This is because UnoCSS can be run at runtime, so plugins can add classes that the main app may not use directly, but that plugins can use. This is not possible with TailwindCSS, as it needs to be compiled at build time so all classes would need to be known at build time (not possible if hot swapping plugins).