{"id":47798,"library":"grapheetee","title":"Grapheetee","description":"Fetch-based GraphQL client for browser and Node.js. Version 0.1.0 provides a minimal client supporting both query and mutation operations, with optional uploads for mutations. It leverages the native Fetch API in browsers and requires a fetch polyfill in Node (a separate Node entry point is provided). Key differentiator: lightweight and dependency-free if fetch is available, though early-stage with no breaking changes yet documented.","status":"active","version":"0.1.0","language":"javascript","source_language":"en","source_url":"git://github.com/One-com/grapheetee","tags":["javascript","GraphQL","fetch","client"],"install":[{"cmd":"npm install grapheetee","lang":"bash","label":"npm"},{"cmd":"yarn add grapheetee","lang":"bash","label":"yarn"},{"cmd":"pnpm add grapheetee","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"Browser entry is ESM-only; use 'grapheetee/node' for CommonJS in Node.","wrong":"const Grapheetee = require('grapheetee')","symbol":"Grapheetee","correct":"import Grapheetee from 'grapheetee'"},{"note":"Node requires a fetch polyfill; the '/node' entry handles it automatically.","wrong":"const Grapheetee = require('grapheetee')","symbol":"Grapheetee (Node)","correct":"const Grapheetee = require('grapheetee/node')"},{"note":"Grapheetee is a default export, not named.","wrong":"import { Grapheetee } from 'grapheetee'","symbol":"Grapheetee","correct":"import Grapheetee from 'grapheetee'"}],"quickstart":{"code":"import Grapheetee from 'grapheetee';\n\nconst client = new Grapheetee({ url: 'https://api.example.com/graphql' });\n\nasync function main() {\n  const data = await client.query({\n    query: `{ hello { name greeting } }`,\n  });\n  console.log(data);\n}\n\nmain().catch(console.error);","lang":"typescript","description":"Create a Grapheetee client, send a query, and log the result."},"warnings":[{"fix":"Use 'grapheetee/node' for Node.js or provide global fetch, Request, and Headers.","message":"Grapheetee uses Fetch API; Node.js requires a polyfill or the '/node' entry point.","severity":"gotcha","affected_versions":">=0.0.0"},{"fix":"Always supply url: new Grapheetee({ url: '...' })","message":"Constructor requires a 'url' option; missing it throws an error.","severity":"gotcha","affected_versions":">=0.0.0"},{"fix":"Provide uploads as an array of objects with field, file, and filename.","message":"Mutation method 'mutation()' accepts an optional 'uploads' array for file uploads; not using it incorrectly may cause issues.","severity":"gotcha","affected_versions":">=0.0.0"}],"env_vars":null,"search_vec":"'0.1.0':12 'api':33 'avail':60 'base':4 'break':67 'browser':8,35 'chang':68 'client':6,16,74 'depend':55 'dependency-fre':54 'differenti':51 'document':70 'earli':63 'early-stag':62 'entri':46 'fetch':3,32,39,58,73 'fetch-bas':2 'free':56 'grapheete':1 'graphql':5,72 'javascript':71 'key':50 'leverag':29 'lightweight':52 'minim':15 'mutat':21,27 'nativ':31 'node':42,45 'node.js':10 'oper':22 'option':24 'point':47 'polyfil':40 'provid':13,49 'queri':19 'requir':37 'separ':44 'stage':64 'support':17 'though':61 'upload':25 'version':11 'yet':69","created_at":"2026-06-07T16:53:22.060516+00:00","updated_at":"2026-06-07T16:53:22.060516+00:00","problems":[{"fix":"Use `require('grapheetee/node')` or provide global fetch.","cause":"Running in Node.js without a fetch polyfill or using the browser entry instead of '/node'.","error":"TypeError: fetch is not a function"},{"fix":"Instantiate with `new Grapheetee({ url: '...' })`.","cause":"Creating Grapheetee instance without 'url' option.","error":"Missing required option: url"}],"ecosystem":"npm","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/One-com/grapheetee#readme","github":"git://github.com/One-com/grapheetee","docs":null,"changelog":null,"pypi":null,"npm":"grapheetee","openapi_spec":null,"status_page":null,"smithery":null,"categories":["api-client"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-07","next_check":"2026-09-05","install_tag":null}}