---
description:
  Hive Gateway provides you a cross-platform GraphQL Server. So you can easily integrate it into any
  platform besides Node.js.
---

import { Callout } from '@theguild/components'

# Integration with Deno

Hive Gateway provides you a cross-platform GraphQL Server. So you can easily integrate it into any
platform besides Node.js.
[Deno is a simple, modern and secure runtime for JavaScript and TypeScript that uses V8 and is built in Rust](https://deno.land/).
We will use `@graphql-hive/gateway` which has an agnostic HTTP handler using
[Fetch API](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch)'s
[`Request`](https://developer.mozilla.org/en-US/docs/Web/API/Request) and
[`Response`](https://developer.mozilla.org/en-US/docs/Web/API/Response) objects.

## Example

Create a `deno.json` file.
[Learn more about import maps](https://deno.land/manual/basics/import_maps)

Create a `deno-hive-gateway.ts` file:

```json filename="deno.json" {3}
{
  "imports": {
    "@graphql-hive/gateway": "npm:@graphql-hive/gateway@^0.1.0"
  }
}
```

```ts filename="deno-hive-gateway.ts"
import { serve } from 'https://deno.land/std@0.157.0/http/server.ts'
import { createGatewayRuntime } from '@graphql-hive/gateway'

const gatewayRuntime = createGatewayRuntime(/* Your configuration */)

serve(gatewayRuntime, {
  onListen({ hostname, port }) {
    console.log(`Listening on http://${hostname}:${port}/${gatewayRuntime.graphqlEndpoint}`)
  }
})
```

And run it:

```bash
deno run --allow-net deno-hive-gateway.ts
```
