{"id":15192589,"url":"https://github.com/zaiste/graphism","last_synced_at":"2025-10-27T18:30:55.982Z","repository":{"id":60126201,"uuid":"541118753","full_name":"zaiste/graphism","owner":"zaiste","description":"Quickly create GraphQL servers in Deno \u0026 Deno Deploy","archived":false,"fork":false,"pushed_at":"2022-12-28T16:01:49.000Z","size":11,"stargazers_count":16,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-01T07:31:53.822Z","etag":null,"topics":["deno","graphql","graphql-server","javascript","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zaiste.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-09-25T09:27:41.000Z","updated_at":"2023-06-05T09:13:18.000Z","dependencies_parsed_at":"2023-01-31T07:00:45.247Z","dependency_job_id":null,"html_url":"https://github.com/zaiste/graphism","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zaiste%2Fgraphism","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zaiste%2Fgraphism/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zaiste%2Fgraphism/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zaiste%2Fgraphism/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zaiste","download_url":"https://codeload.github.com/zaiste/graphism/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238536141,"owners_count":19488664,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["deno","graphql","graphql-server","javascript","typescript"],"created_at":"2024-09-27T21:43:06.729Z","updated_at":"2025-10-27T18:30:50.686Z","avatar_url":"https://github.com/zaiste.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Graphism \n\n*Graphism* is a library for creating GraphQL servers in Deno \u0026 Deno Deploy.\n\n- compatible with GraphQL.js 16.6.0\n- out of the box GraphiQL\n- support for GraphQL JIT\n\n```tsx\nimport { serve } from 'wren';\nimport { GET } from 'wren/route.ts';\nimport * as Response from 'wren/response.ts';\nimport { GraphQL } from 'graphism';\nimport SchemaBuilder from 'pothos';\n\nconst builder = new SchemaBuilder({});\n\nbuilder.queryType({\n  fields: (t) =\u003e ({\n    hello: t.string({\n      args: {\n        name: t.arg.string(),\n      },\n      resolve: (_parent, { name }) =\u003e `Hello, ${name || 'World'}`,\n    }),\n  }),\n});\n\n\nconst schema = builder.toSchema();\n\nconst routes = [\n  GET('/', () =\u003e Response.OK('Graphism')),\n  GraphQL(\"/graphql\", schema)\n];\n\nserve(routes, { port: 3000 });\n```\n\n\n## Getting Started\n\n### Generate a Wren project\n\n```sh\ndeno run -A -r https://wren.deno.dev my-graphql-server\n```\n\n### Add Graphism \u0026 (optionally) Pothos\n\nIn `import_map.json` add `graphql`, `graphism` and `pothos` as dependencies:\n\n```json\n{\n  \"imports\": {\n    // ...\n    \"graphql\": \"https://esm.sh/graphql@16.6.0\",\n    \"graphism\": \"https://deno.land/x/graphism@0.1.0/mod.ts\",\n    \"pothos\": \"https://esm.sh/@pothos/core@3.21.0\"\n  }\n}\n```\n\n### Build the GraphQL Schema\n\n```tsx\nconst builder = new SchemaBuilder({});\n\nbuilder.queryType({\n  fields: (t) =\u003e ({\n    hello: t.string({\n      args: {\n        name: t.arg.string(),\n      },\n      resolve: (_parent, { name }) =\u003e `Hello, ${name || 'World'}`,\n    }),\n  }),\n});\n\n\nconst schema = builder.toSchema();\n```\n\n### Add the GraphQL route\n\n```tsx\nconst routes = [\n  GET('/', () =\u003e Response.OK('Graphism')),\n  GraphQL(\"/graphql\", schema)\n];\n\nserve(routes, { port: 3000 });\n```\n\n### Start the server\n\n```\ndeno task start\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzaiste%2Fgraphism","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzaiste%2Fgraphism","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzaiste%2Fgraphism/lists"}