# Is anyone here using their Discourse instance as their entire website?

**URL:** https://meta.discourse.org/t/is-anyone-here-using-their-discourse-instance-as-their-entire-website/168580
**Category:** Community Building
**Created:** [October 28, 2020, 8:20pm UTC](https://meta.discourse.org/t/is-anyone-here-using-their-discourse-instance-as-their-entire-website/168580 "2020-10-28T20:20:41Z")
**Posts on this page:** 1
**Showing post:** 33

<div class="post-metadata">

### Author: ![angus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/angus/32/341715_2.png) [@angus](https://meta.discourse.org/u/angus)
#### Post date: [March 4, 2021, 8:06am UTC](https://meta.discourse.org/t/is-anyone-here-using-their-discourse-instance-as-their-entire-website/168580/33 "2021-03-04T08:06:03Z")

</div>

Embeds are actually possible in both the Discourse UI (e.g. above a topic list) using a theme, and the [Landing Pages Plugin](https://meta.discourse.org/t/landing-pages-plugin/180967). For the latter, I’ve made an example using this [little version of the Dinosaur Game](https://github.com/CloudCannon/Dinosaur-Chrome-Game). You can play here: [Pavilion](https://thepavilion.io/dinosaur) (desktop only).

![2021-03-04 18.54.09](https://global.discourse-cdn.com/meta/original/3X/6/f/6fba50c1c11511cb92ee9e765dd350b1f96480ce.gif)

No coding involved for that one. All I did was upload those assets to our CDN (drag and dropped the folder into a digitalocean ‘space’), created a page with the path “dinosaur” and copy/pasted this html (both via the admin UI).

> **HTML**
>
> ```plaintext
> <div class="landing page dinosaur">
> <div class="container">
> <h1>Dinosaur Game!</h1>
> <canvas id="game" height="200" width="800"></canvas>
> <p class="controls">press space bar to start</p>
>     
> <script src="https://pavilion-assets.nyc3.digitaloceanspaces.com/dinosaur/js/helpers.js"></script>
> <script src="https://pavilion-assets.nyc3.digitaloceanspaces.com/dinosaur/js/objects/game-object.js"></script>
> <script src="https://pavilion-assets.nyc3.digitaloceanspaces.com/dinosaur/js/objects/cactus.js"></script>
> <script src="https://pavilion-assets.nyc3.digitaloceanspaces.com/dinosaur/js/objects/dinosaur.js"></script>
> <script src="https://pavilion-assets.nyc3.digitaloceanspaces.com/dinosaur/js/objects/background.js"></script>
> <script src="https://pavilion-assets.nyc3.digitaloceanspaces.com/dinosaur/js/objects/score.js"></script>
> <script src="https://pavilion-assets.nyc3.digitaloceanspaces.com/dinosaur/js/game.js"></script>
> <script>
> new Game({
> el: document.getElementById("game")
> });
> window.onkeydown = function(e) {
> return e.keyCode !== 32;
> };
> </script>
> </div>
> </div>
> 
> ```

The Landing Pages Plugin implements the CSP and CORS settings of Discourse, which I’ve already set up to handle scripts from our CDN (via the relevant site settings).

I’ll post a full “How to host and embed assets” knowledge-base topic for that plugin to cover that use case next week.

---

_[View the full topic](https://meta.discourse.org/t/is-anyone-here-using-their-discourse-instance-as-their-entire-website/168580)._
