from Hacker News

Ask HN: How do you make pretty “demos” of your API on your landing page?

by mighty_donkey on 12/1/22, 7:23 PM with 1 comments

There are a number of variations to this question but feel free to answer whichever based on your own experience. Some examples:

1) Stripe: showing the code being animated in an IDE with the response https://stripe.com/

2) OpenAI: code that you can copy-paste https://openai.com/api/

Some folks make snappy video demos, other more interactive things. What do you do and how do you do it (e.g. tools, process)?

  • by ndimares on 12/2/22, 8:01 AM

    Depending on the nature of the API, you could wrap it in a react component (if that's likely what users would do), and then embed it onto your landing page so that people could interact with it.