MCPcopy
hub / github.com/tone-row/flowchart-fun

github.com/tone-row/flowchart-fun @1.64.2 sqlite

repository ↗ · DeepWiki ↗ · release 1.64.2 ↗
591 symbols 1,561 edges 259 files 48 documented · 8%
README

Flowchart Fun

Flowchart Fun is a webapp for quickly generating flowcharts from text. With a fast and intuitive workflow, you can visualize your ideas and plans in minutes.

screenshot

📝 Example

For an example of how Flowchart Fun works, take the following input:

Node A
  goes to: Node B
  and: Node C
    goes back to: (Node A)

You can generate this flowchart with just a few clicks:

example flowchart

🛠️ Development

Flowchart Fun is built with React and cytoscape.js.

💡 Prerequisites

If you plan on developing the premium features, you will need accounts on Vercel, Supabase, Stripe and Sendgrid.

🚀 Getting Started

  1. Clone the repository
  2. Copy .env.example to .env and add env variables
  3. pnpm install and vercel dev

🔒 To run with login features:

vercel dev

Note: You will need to create a Vercel account and install the CLI to run the app locally. To deploy the app, you will need a Pro Vercel account because it uses more than 12 serverless functions.

⚙️ To run without login features:

pnpm dev

🌐 Translations

We welcome anyone interested in helping us add translations to Flowchart Fun. Translations can be added to the .po files located in /app/src/locales/[language]/messages.po. After adding translations, please run pnpm -F app compile. We would appreciate your help in making Flowchart Fun accessible in even more languages!

💬 Interested in Adding a Language?

Let us know about your plans in the Discord, and we'd be glad to lend a helping hand.

🧪 Tests

To ensure quality and accuracy, Flowchart Fun employs Jest for unit testing and Playwright for e2e testing.

Unit Tests

pnpm -F app test

E2E Tests

pnpm -F app e2e

🔍 Analyzing the Bundle

pnpm -F app build && pnpm -F app analyze

🤝 Contributing

If you're interested in contributing, we'd love to have your help with the underlying syntax parser - Graph Selector. Our community welcomes all contributions, big or small!

To get started, please fork the dev branch and start developing and testing your feature. If you have any questions, don't hesitate to join the discussion on Discord. We're always happy to help and answer any questions you may have.

Extension points exported contracts — how you extend this code

CSSStyleSheet (Interface)
(no doc)
app/src/react-app-env.d.ts
Moniker (Interface)
(no doc)
api/types.d.ts
Window (Interface)
(no doc)
app/src/index.tsx
Window (Interface)
(no doc)
app/src/components/Graph.tsx
EmptyStateProps (Interface)
(no doc)
app/src/components/charts/EmptyState.tsx
ChartsToolbarProps (Interface)
(no doc)
app/src/components/charts/ChartsToolbar.tsx

Core symbols most depended-on inside this repo

updateThemeEditor
called by 26
app/src/lib/toTheme.ts
useHasProAccess
called by 18
app/src/lib/hooks.ts
prepareChart
called by 17
app/src/lib/prepareChart/prepareChart.ts
handleFormChange
called by 14
app/src/components/ImportDataDialog.tsx
useDocDetails
called by 10
app/src/lib/useDoc.ts
setIsOpen
called by 9
app/src/lib/usePromptStore.ts
getCanvas
called by 8
app/src/components/downloads.ts
showPaywall
called by 8
app/src/lib/usePaywallModalStore.ts

Shape

Function 548
Interface 37
Method 4
Class 2

Languages

TypeScript100%

Modules by API surface

app/src/lib/folderQueries.ts23 symbols
app/src/lib/hooks.ts17 symbols
app/src/lib/queries.ts16 symbols
app/src/components/ShareDialog.tsx16 symbols
app/src/components/ImportDataDialog.tsx15 symbols
app/src/lib/usePromptStore.ts14 symbols
app/src/lib/toTheme.ts13 symbols
app/src/lib/preprocessStyle.ts13 symbols
app/src/components/Tabs/ThemeTabComponents.tsx12 symbols
app/src/components/GraphContextMenu.tsx12 symbols
app/src/lib/toJSONCanvas.ts11 symbols
app/src/components/charts/ChartModals.tsx11 symbols

Dependencies from manifests, versioned

@formkit/auto-animate1.0.0-beta.6 · 1×
@lingui/cli3.17.2 · 1×
@lingui/core3.8.9 · 1×
@lingui/macro3.13.2 · 1×
@lingui/react3.8.9 · 1×
@monaco-editor/react4.6.0 · 1×
@notionhq/client0.4.13 · 1×
@octokit/core4.2.0 · 1×
@playwright/test1.45.2 · 1×
@radix-ui/react-alert-dialog1.0.5 · 1×
@radix-ui/react-checkbox1.0.4 · 1×
@radix-ui/react-collapsible1.0.3 · 1×

For agents

$ claude mcp add flowchart-fun \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact