MCPcopy Index your code
hub / github.com/whoiskatrin/chart-gpt

github.com/whoiskatrin/chart-gpt @main sqlite

repository ↗ · DeepWiki ↗
72 symbols 176 edges 40 files 0 documented · 0%
README

Chart-GPT - text to beautiful charts within seconds

<img src="https://raw.githubusercontent.com/whoiskatrin/chart-gpt/main/public/chartgpt-og.png" width="600" />
 <img src="https://github.com/whoiskatrin/chart-gpt/blob/main/update.png" width="900" />

Getting Started

To get started, first clone this repository:

git clone https://github.com/whoiskatrin/chart-gpt.git
cd chart-gpt

Then duplicate the .env.example template with cp .env.example .env and add your PaLM API key:

BARD_KEY="your-api-key"

Then install the dependencies and start the development server:

npm install
npm run dev
# or
yarn
yarn dev

This will start the development server at http://localhost:3000.

To use the full functionality of the credit system as well, you'll need to setup Supabase, Stripe, and NextAuth with Google — and their respective environment variables found in the .env.example file.

Contributing

If you would like to contribute to this project, please follow these steps:

  1. Fork this repository.
  2. Clone your forked repository:
  3. For your changes:
  4. Make your changes, commit them, and push them to your forked repository:
  5. Create a pull request on this repository.

Extension points exported contracts — how you extend this code

IntrinsicElements (Interface)
(no doc)
types/stripe.d.ts
Database (Interface)
(no doc)
types/supabase.ts
ChartProps (Interface)
(no doc)
components/ChartComponent.tsx
BalanceProps (Interface)
(no doc)
components/Balance.tsx
ErrorResponse (Interface)
(no doc)
components/PurchaseCredits.tsx
ToggleProps (Interface)
(no doc)
components/atoms/Toggle.tsx
BadgeProps (Interface)
(no doc)
components/ui/badge.tsx
Candidate (Interface)
(no doc)
pages/api/get-type.ts

Core symbols most depended-on inside this repo

getTremorColor
called by 14
lib/tremor.ts
getUserIdByEmail
called by 2
utils/helper.ts
renderChart
called by 1
components/ChartComponent.tsx
handleSignOut
called by 1
components/SignIn.tsx
decreaseUserCredits
called by 1
utils/helper.ts
addUserCredits
called by 1
utils/helper.ts
getUserCredits
called by 1
utils/helper.ts
handleSubmit
called by 1
pages/index.tsx

Shape

Function 55
Interface 17

Languages

TypeScript100%

Modules by API surface

components/atoms/SegmentedControl.tsx7 symbols
utils/helper.ts4 symbols
pages/index.tsx4 symbols
components/PurchaseCredits.tsx4 symbols
components/ChartComponent.tsx4 symbols
pages/api/parse-graph.ts3 symbols
pages/api/get-type.ts3 symbols
pages/api/get-source.ts3 symbols
pages/api/get-json.ts3 symbols
components/templates/Layout.tsx3 symbols
components/atoms/Orbs.tsx3 symbols
components/SignIn.tsx3 symbols

Dependencies from manifests, versioned

@contextco/context-node0.1.3 · 1×
@fortawesome/fontawesome-svg-core6.3.0 · 1×
@fortawesome/free-solid-svg-icons6.3.0 · 1×
@headlessui/react1.7.7 · 1×
@headlessui/tailwindcss0.1.2 · 1×
@heroicons/react2.0.17 · 1×
@next-auth/supabase-adapter0.2.1 · 1×
@radix-ui/react-avatar1.0.3 · 1×
@radix-ui/react-dropdown-menu2.0.4 · 1×
@radix-ui/react-slider1.1.1 · 1×

For agents

$ claude mcp add chart-gpt \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact