Wondering what’s next for npm?Check out our public roadmap! »

@benzene/workerTypeScript icon, indicating that this package has built-in type declarations

0.2.0 • Public • Published

@benzene/worker

npm CI codecov PRs Welcome

GraphQL Executor and Server for Web Workers

// sw.js or Cloudflare Workers, with bundler
import { Benzene, fetchHandler } from '@benzene/worker';
 
const GQL = new Benzene({ schema });
 
self.addEventListener('fetch', fetchHandler(GQL, { path: '/graphql' }));

Documentation is available at hoangvvo.github.io/benzene/#/worker

Install

npm i @benzene/worker

DownloadsWeekly Downloads

6

Version

0.2.0

License

MIT

Unpacked Size

20.2 kB

Total Files

14

Last publish

Collaborators

  • avatar