MCPcopy
hub / github.com/mckaywrigley/ai-code-translator

github.com/mckaywrigley/ai-code-translator @main sqlite

repository ↗ · DeepWiki ↗
25 symbols 44 edges 15 files 0 documented · 0%
README

AI Code Translator

Use AI to translate code from one language to another.

AI Code Translator

Running Locally

1. Clone Repo

git clone https://github.com/mckaywrigley/ai-code-translator.git

2. Install Dependencies

npm i

3. Run App

npm run dev

Contact

If you have any questions, feel free to reach out to me on Twitter.

Extension points exported contracts — how you extend this code

TranslateBody (Interface)
(no doc)
types/types.ts
Props (Interface)
(no doc)
components/APIKeyInput.tsx
Props (Interface)
(no doc)
components/CodeBlock.tsx
Props (Interface)
(no doc)
components/LanguageSelect.tsx
Props (Interface)
(no doc)
components/TextBlock.tsx
Props (Interface)
(no doc)
components/ModelSelect.tsx
TranslateResponse (Interface)
(no doc)
types/types.ts

Core symbols most depended-on inside this repo

handleTranslate
called by 2
pages/index.tsx
createPrompt
called by 1
utils/index.ts
OpenAIStream
called by 1
utils/index.ts
copyToClipboard
called by 1
pages/index.tsx
APIKeyInput
called by 0
components/APIKeyInput.tsx
CodeBlock
called by 0
components/CodeBlock.tsx
LanguageSelect
called by 0
components/LanguageSelect.tsx
handleChange
called by 0
components/LanguageSelect.tsx

Shape

Function 18
Interface 7

Languages

TypeScript100%

Modules by API surface

utils/index.ts4 symbols
pages/index.tsx4 symbols
components/ModelSelect.tsx3 symbols
components/LanguageSelect.tsx3 symbols
types/types.ts2 symbols
components/TextBlock.tsx2 symbols
components/CodeBlock.tsx2 symbols
components/APIKeyInput.tsx2 symbols
pages/api/translate.ts1 symbols
pages/_document.tsx1 symbols
pages/_app.tsx1 symbols

Dependencies from manifests, versioned

@codemirror/legacy-modes6.3.2 · 1×
@types/node18.15.11 · 1×
@types/react18.0.31 · 1×
@types/react-dom18.0.11 · 1×
@uiw/codemirror-theme-tokyo-night4.19.11 · 1×
@uiw/react-codemirror4.19.11 · 1×
autoprefixer10.4.14 · 1×
endent2.1.0 · 1×
eslint8.37.0 · 1×
eslint-config-next13.2.4 · 1×
eventsource-parser1.0.0 · 1×
next13.2.4 · 1×

For agents

$ claude mcp add ai-code-translator \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact