{"id":47976,"library":"graphql-web-lite","title":"graphql-web-lite","description":"A slimmed-down fork of graphql-js (v16.6.0) optimized for client-side use. Retains the core GraphQL language and operation execution, but removes server-only features (schema definition, validation, introspection) to reduce bundle size (~50% smaller). Published as 'graphql-web-lite' on npm. Suitable for lightweight GraphQL clients or fragments of graphql-js where full parser/executor is needed without schema building. Active maintenance tracking graphql-js releases.","status":"active","version":"16.6.0-4","language":"javascript","source_language":"en","source_url":"https://github.com/0no-co/graphql-web-lite","tags":["javascript","graphql","graphql-js","lite","typescript"],"install":[{"cmd":"npm install graphql-web-lite","lang":"bash","label":"npm"},{"cmd":"yarn add graphql-web-lite","lang":"bash","label":"yarn"},{"cmd":"pnpm add graphql-web-lite","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"Import from the main package; subpath imports are not supported.","wrong":"import { parse } from 'graphql-web-lite/parse'","symbol":"parse","correct":"import { parse } from 'graphql-web-lite'"},{"note":"Only execute (async) is exported; executeSync is not available.","wrong":"import { executeSync } from 'graphql-web-lite'","symbol":"execute","correct":"import { execute } from 'graphql-web-lite'"},{"note":"Package is ESM-only; require() will fail. Use dynamic import or import syntax.","wrong":"const { print } = require('graphql-web-lite')","symbol":"print","correct":"import { print } from 'graphql-web-lite'"},{"note":"GraphQLSchema is intentionally excluded. Use full graphql-js if schema building is needed.","wrong":"import { GraphQLSchema } from 'graphql-web-lite'","symbol":"GraphQLSchema","correct":"import { GraphQLSchema } from 'graphql'"}],"quickstart":{"code":"import { parse, execute } from 'graphql-web-lite'\n\nconst source = `{ hello }`\nconst doc = parse(source)\n\nconst rootValue = {\n  hello() {\n    return 'world'\n  }\n}\n\nconst schema = {}\nconst result = await execute({\n  schema,\n  document: doc,\n  rootValue,\n})\n\nconsole.log(result.data)\n// { hello: 'world' }","lang":"typescript","description":"Shows basic parse and execute of a GraphQL query with a resolver."},"warnings":[{"fix":"Use graphql-js if schema building or validation is required.","message":"No schema validation or introspection support.","severity":"breaking","affected_versions":">=16.0.0"},{"fix":"Use import syntax or dynamic import() instead of require().","message":"Package is ESM-only; CommonJS require() will throw.","severity":"gotcha","affected_versions":">=16.0.0"},{"fix":"Check compatibility with graphql-js versions carefully; treat as independent.","message":"Version numbers differ from graphql-js; 16.6.0-4 is a fork, not official graphql-js.","severity":"gotcha","affected_versions":">=16.0.0"},{"fix":"Use execute (async/await) instead.","message":"executeSync is not exported; only async execute is available.","severity":"deprecated","affected_versions":">=16.0.0"}],"env_vars":null,"search_vec":"'50':43 'activ':72 'build':71 'bundl':41 'client':18,57 'client-sid':17 'core':23 'definit':36 'execut':28 'featur':34 'fork':9 'fragment':59 'full':65 'graphql':2,12,24,48,56,62,76,80,82 'graphql-j':11,61,75,81 'graphql-web-lit':1,47 'introspect':38 'javascript':79 'js':13,63,77,83 'languag':25 'lightweight':55 'lite':4,50,84 'mainten':73 'need':68 'npm':52 'oper':27 'optim':15 'parser/executor':66 'publish':45 'reduc':40 'releas':78 'remov':30 'retain':21 'schema':35,70 'server':32 'server-on':31 'side':19 'size':42 'slim':7 'slimmed-down':6 'smaller':44 'suitabl':53 'track':74 'typescript':85 'use':20 'v16.6.0':14 'valid':37 'web':3,49 'without':69","created_at":"2026-06-07T16:54:17.751670+00:00","updated_at":"2026-06-07T16:54:17.751670+00:00","problems":[{"fix":"Install the package: npm install graphql-web-lite. Ensure tsconfig.json includes node_modules in typeRoots.","cause":"Package not installed or TypeScript cannot resolve types.","error":"Cannot find module 'graphql-web-lite' or its corresponding type declarations."},{"fix":"Convert to ES modules (use import) or use dynamic import().","cause":"Package is ESM-only, not compatible with CommonJS require.","error":"require() of ES Module /node_modules/graphql-web-lite/index.js not supported."}],"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/0no-co/graphql-web-lite","github":"https://github.com/0no-co/graphql-web-lite","docs":null,"changelog":null,"pypi":null,"npm":"graphql-web-lite","openapi_spec":null,"status_page":null,"smithery":null,"categories":["testing"],"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}}