The data platform that powers your Deno application

Build fast apps, serverless functions and more at the edge with Deno and GraphQL.

Grafbase + Deno

Avoid the complicated setup. Build fast and secure apps with Deno.

Fetch data from Grafbase using the native Fetch API.
const response = await fetch('GRAFBASE_API_URL', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
      'x-api-key': 'GRAFBASE_API_KEY'
    },
    body: JSON.stringify({
      query: /* GraphQL */ `
        query GetAllPosts($first: Int!) {
          postCollection(first: $first) {
            edges {
              node {
                id
                title
              }
            }
          }
        }
      `,
      variables: { first: 100 }
    })
  })

  const data = await response.json()
Fetch data from Grafbase using the native Fetch API.
const response = await fetch('GRAFBASE_API_URL', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
      'x-api-key': 'GRAFBASE_API_KEY'
    },
    body: JSON.stringify({
      query: /* GraphQL */ `
        query GetAllPosts($first: Int!) {
          postCollection(first: $first) {
            edges {
              node {
                id
                title
              }
            }
          }
        }
      `,
      variables: { first: 100 }
    })
  })

  const data = await response.json()

Testimonials

?
boba fetterman@tubbo

not sure if @grafbase is so good that it will actually obviate my entire job, or if it's good enough that i can use it at work without someone questioning my existence. either way, i am sold on the concept of "upload some SDL and query shit, stop worrying about the DB infra".

?
Ben 🏳️‍🌈@nurodev

Damn, trying out the @grafbase beta & it's super slick! Feels like what @planetscaledata is doing for databases, @Grafbase is going for #GraphQL 🔥

?
Roy Barber@roybarberuk

This looks awesome! @nextjs + @grafbase on @vercel will be 🔥🔥🔥

Start building with Deno

We’ve made it super easy to get started integrating Grafbase with Deno.

Quickstart

Learn the basics of Grafbase and deploy to production in only a few short steps.

Developer Guides

Learn how to use Grafbase with frontend frameworks, external APIs, and more.

Fresh Example

See how Grafbase works with Deno, Fresh and TypeScript in this example.