# My first extension

**URL:** <https://staging-discuss.dev.twitch.com/t/my-first-extension/29342>\
**Category:** Extensions\
**Created:** [December 3, 2020, 12:22am UTC](https://staging-discuss.dev.twitch.com/t/my-first-extension/29342 "2020-12-03T00:22:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![FernandoGlz](https://avatars.discourse-cdn.com/v4/letter/f/b2d939/32.png) [@FernandoGlz](https://staging-discuss.dev.twitch.com/u/FernandoGlz)\
**Post date:** [December 3, 2020, 12:22am UTC](https://staging-discuss.dev.twitch.com/t/my-first-extension/29342/1 "2020-12-03T00:22:23Z")

</div>

**Hi Twitch´s community.**

I wanna developer a extensión to show quizzes to the community. Like “ **Quiz Kit** ”

> **[Quiz Kit](https://www.quizkit.io/)**

But i have lots of doubts

**First** : I downloaded the example code for “hello world”, I see the file “services / backend.js”…This file runs a local server on twitch? or should I have my entire backend off twitch?

**Second** : When I get the data from my backend how do I notify my front end to show said data to the viewer?

I hope you can help me

Thanks

---

<div class="post-metadata">

**Author:** ![BarryCarlyon](https://d1d6mrmdu7ztse.cloudfront.net/user_avatar/staging-discuss.dev.twitch.com/barrycarlyon/32/253_2.png) [@BarryCarlyon](https://staging-discuss.dev.twitch.com/u/BarryCarlyon)\
**Post date:** [December 3, 2020, 12:31am UTC](https://staging-discuss.dev.twitch.com/t/my-first-extension/29342/2 "2020-12-03T00:31:13Z")

</div>

> [@FernandoGlz](#):
>
> or should I have my entire backend off twitch?

You are responsible for running your own Backend

Twitch will only host your static JS/HTML/CSS frontend

> [@FernandoGlz](#):
>
> **Second** : When I get the data from my backend how do I notify my front end to show said data to the viewer?

How ever you want.

Some people will fetch from the front end to the backend. And do that periodically

Other people will use Twitch PubSub to send from backend to front end

> **[Extensions Reference](https://dev.twitch.tv/docs/extensions/reference/)**
>
> Extensions Reference

Others will use their own system, such as a websocket.

The possibilities are endless.

Essentially a Twitch Extension _is just_ a website.  
Where the front end is on a different server to the backend.  
The only big rule is that you must use SSL on your backend to protect communications from your frontend to your backend.

---

<div class="post-metadata">

**Author:** ![FernandoGlz](https://avatars.discourse-cdn.com/v4/letter/f/b2d939/32.png) [@FernandoGlz](https://staging-discuss.dev.twitch.com/u/FernandoGlz)\
**Post date:** [December 3, 2020, 12:35am UTC](https://staging-discuss.dev.twitch.com/t/my-first-extension/29342/3 "2020-12-03T00:35:36Z")

</div>

Thanks for the help
