Ch

ChatAPI – PWA to Use ChatGPT by API

Hacker News

ChatAPI – PWA to Use ChatGPT by API

I've built this PWA to use ChatGPT by API. My main motivation was to use the API since it is much cheaper than the premium plan and I only pay for usage. The main inspiration was ChatGPT-web by Niek [1], but I was lacking time to dig into the code base to make changes. Hence I went for a lightweight approach with Alpine.js and Open Props. There is no build step, the dependencies are fetched via CDN. In general it was much fun to work with Alpine.js - being a parent means having very little time. So it was great to not have to invest 20h into learning a new framework. My main ask was something that gives me data binding and does not require a build step. Alpine.js was the perfect fit! A hacky bit I'm proud of is the dynamic loading of languages for syntax highlighting with highlight.js :) Feel free to fork, adapt and host for yourself!

Share card

Actual performance

32points
4comments
Made the leaderboard

Launch Intel predictions

Analyze your own launch →
Product HuntOn track for Day 1 leaderboard · Strong signals: new, chatgpt, code · Missing: mac, agents, macos
96%96% predicted probability of success on Product Hunt, based on ML models trained on real launch data.
best fitHighest predicted score across all platforms for this description.
Hacker NewsStrong engagement from HN community · Strong signals: io · Missing: https docs, excited, just released
59%59% predicted probability of success on Hacker News, based on ML models trained on real launch data.
nativeThis product was originally launched on this platform.
Indie HackersIH features products with proven revenue · Missing: supports, reddit linkedin, podcasting
43%43% predicted probability of success on Indie Hackers, based on ML models trained on real launch data.
TrustMRRLess likely to generate early MRR · Missing: mobile apps, ios, personal
40%40% predicted probability of success on TrustMRR, based on ML models trained on real launch data.
AppSumoMay struggle as an AppSumo deal · Strong signals: host · Missing: plus, platform, intuitive
38%38% predicted probability of success on AppSumo, based on ML models trained on real launch data.
Acquire.comPre-revenue stage for this audience · Missing: arr, mrr, revenue
14%14% predicted probability of success on Acquire.com, based on ML models trained on real launch data.
BetaListMay not resonate with beta-testers · Strong signals: chat · Missing: web3, crypto, cryptocurrency
0%0% predicted probability of success on BetaList, based on ML models trained on real launch data.

Correct prediction on native model

Similar products

Us
Use DynamoDB with the Redis API (Go)62%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Use DynamoDB with the Redis API (Go)

Hacker News4
Us
Use ChatGPT API from Shortcuts37%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Use ChatGPT API from Shortcuts

Hacker News2
Us
Use ChatGPT, Bing and Bard in one app26%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Use ChatGPT, Bing and Bard in one app

Hacker News78
Ho
How to Use ChatGPT Code Interpreter52%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

How to Use ChatGPT Code Interpreter

Hacker News1
SpotGPT
SpotGPT61%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Use ChatGPT on any website

Indie Hackerscommitment-side-project
Ch
ChatHub – use ChatGPT and new Bing side by side31%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

ChatHub – use ChatGPT and new Bing side by side

Hacker News8
Ma
Mappify – What if we could use ChatGPT like a mindmap?37%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Mappify – What if we could use ChatGPT like a mindmap?

Hacker News1
AP
API mocks that use FSMs to closely mimic real back ends58%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

API mocks that use FSMs to closely mimic real back ends

Hacker News2
ChatKit
ChatKit78%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Probably the best ChatGPT API wrapper out there

Indie Hackers3$2,047/moai
Us
Use Gemini and ChatGPT side-by-side25%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Use Gemini and ChatGPT side-by-side

Hacker News1