https://github.com/1998code/swift2html
Convert Swift Code to HTML with GPT Codex (OpenAI)
https://github.com/1998code/swift2html
codex gpt html openai swift swiftui
Last synced: 3 months ago
JSON representation
Convert Swift Code to HTML with GPT Codex (OpenAI)
- Host: GitHub
- URL: https://github.com/1998code/swift2html
- Owner: 1998code
- License: mit
- Created: 2022-12-17T13:18:19.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-01-14T12:37:09.000Z (over 3 years ago)
- Last Synced: 2025-08-24T15:54:04.373Z (10 months ago)
- Topics: codex, gpt, html, openai, swift, swiftui
- Language: TypeScript
- Homepage: https://swift2html.1998.media
- Size: 86.9 KB
- Stars: 8
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# Swift2HTML - Convert Swift code to HTML
### Powered by OpenAI GPT Codex

## Supported Frameworks


## Features
- [x] Swift Input
- [x] HTML Output
- [x] HTML Preview
- [x] Light / Dark Mode
- [x] AutoPilot (Refresh per input) / Manual Update (Default)
- [x] FontAwesome Icon Replacement
- [x] OpenAI GPT Codex Integration
- [ ] Select CSS Framework (Reserved)
## Getting Started
First, run the development server:
```bash
npm run dev
# or
yarn dev
```
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
You can start editing the page by modifying `pages/index.tsx`. The page auto-updates as you edit the file.
[API routes](https://nextjs.org/docs/api-routes/introduction) can be accessed on [http://localhost:3000/api/openai](http://localhost:3000/api/openai). This endpoint can be edited in `pages/api/openai.ts`.
The `pages/api` directory is mapped to `/api/*`. Files in this directory are treated as [API routes](https://nextjs.org/docs/api-routes/introduction) instead of React pages.
## Dark Mode

### Comment Available

## Limitation
- Accuracy and generation may be various in every trial.
- Incorrect conversion to Pixel, e.g., width: 300 => w-300, where suppose only w-[300px] can work fine. Of course, the scaling is incorrect too.
- Limited tokens.
## License
MIT