https://github.com/richardguerre/flow
A plugin-based daily planner to keep you in the flow.
https://github.com/richardguerre/flow
express graphql node pothos prisma reactjs tailwindcss typescript
Last synced: 2 months ago
JSON representation
A plugin-based daily planner to keep you in the flow.
- Host: GitHub
- URL: https://github.com/richardguerre/flow
- Owner: richardguerre
- License: agpl-3.0
- Created: 2022-10-24T05:58:07.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2025-09-07T11:19:56.000Z (9 months ago)
- Last Synced: 2025-09-07T12:20:55.305Z (9 months ago)
- Topics: express, graphql, node, pothos, prisma, reactjs, tailwindcss, typescript
- Language: TypeScript
- Homepage: https://flow-google-calendar-api.vercel.app
- Size: 7.09 MB
- Stars: 6
- Watchers: 1
- Forks: 2
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Flow ๐
> Stay in the flow.
## What is 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.
# Contributing
If you have suggestions for how Flow could be improved, or want to report a bug, [open an issue](https://github.com/richardguerre/flow/issues/new)! All contributions are welcome.
## Working with Claude Code & Conductor
Flow is optimized for development with [Claude Code](https://claude.com/claude-code) and [Conductor](https://conductor.build). 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
### Key Things to Know
**Critical Workflows:**
- Always run `bun relay` after GraphQL schema changes
- Always run `bun run format` before committing
- When installing plugins, temporarily remove `--watch` flag from server (see plugin development guide)
**Code Conventions:**
- No object destructuring (except React hooks and arrays) - see conventions.md for details
- Use `props.value` instead 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.
## Getting started with GitHub Codespaces
> [!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 `server` app in watch on port 4000
- Starts the `web` app in watch on port 3000 and connects to the `server` app 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:
1. Open the web app at http://localhost:3000
2. You should now see the app with some tasks already created.
## Getting started
1. Fork and clone the repository
2. Install dependencies:
```bash
bun install
```
3. Start a Postgres database
4. Copy the `.env.example` file in `apps/server` into a `.env` file and modify the `DATABASE_URL` environment variable to point to your database
```bash
cp apps/server/.env.example apps/server/.env
```
5. Run the migrations
```bash
bun db:dev
```
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.
```bash
bun db:reset
```
6. (optional) Seed the database
```bash
bun db:seed
```
7. Copy the `.env.example` file in `apps/web` into a `.env` file. No need to modify anything.
```bash
cp apps/web/.env.example apps/web/.env
```
8. Start the `server` and `web` app
```bash
bun dev
```
9. Open the web app at http://localhost:3000
10. You should now see the app with some tasks already created.
## VS Code Extensions
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](https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode) for formatting.
- [Relay](https://marketplace.visualstudio.com/items?itemName=meta.relay) for [Relay GraphQL](https://relay.dev) support.
- [UnoCSS](https://marketplace.visualstudio.com/items?itemName=bradlc.antfu.unocss) for [UnoCSS](https://unocss.dev) support.
- [Prisma](https://marketplace.visualstudio.com/items?itemName=Prisma.prisma) for [Prisma](https://www.prisma.io) support.
## Running tests
> [!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:
```bash
bun run test
```
For now there are only tests in the `server` app, so you can also run them directly from the `server` app:
```bash
cd apps/server
bun run test
```
# FAQ/Pointers
## Why is relay.config.json at the root?
I 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`.
## Don't destructure objects, except with React hooks
I've found that destructuring objects can make it harder to read and refactor code. This does not apply to destructuring arrays. Example:
```js
// โ Bad
const MyComponent = ({ value }) => {
return
{value};
};
// โ Bad
const MyComponent = (props) => {
const { value } = props;
return
{value};
};
// โ
Good
const MyComponent = (props) => {
// destructuring objects returned by React hooks is fine
const { symbol } = useLocaleCurrency();
return
{props.myProp} {symbol};
};
// โ
Good
const MyComponent = (props) => {
// destructuring arrays is fine
const [value, setValue] = useState(props.value);
return
{value};
};
```
## Why UnoCSS instead of TailwindCSS?
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).