@mearie/vite

Type-safe, zero-overhead GraphQL client
19,322 29
Install
npm install @mearie/vite
Latest Version:0.1.8
License:MIT
Last Updated:Aug 5, 2026
Links: GitHub  ·  npm
Maintainer: devunt

@mearie/vite

Vite plugin for Mearie GraphQL client.

This package provides a Vite plugin that enables automatic type generation from GraphQL queries written as template literals in your code.

Installation

npm install -D @mearie/vite

This package provides a Vite plugin for automatic GraphQL code generation during development and build.

Usage

Add the plugin to your Vite configuration:

// vite.config.ts
import { defineConfig } from 'vite';
import mearie from '@mearie/vite';

export default defineConfig({
  plugins: [mearie()],
});

By default, the plugin looks for schema.graphql in your project root. You can customize the schema location and other options:

export default defineConfig({
  plugins: [
    mearie({
      schema: './path/to/schema.graphql',
    }),
  ],
});

Documentation

Full documentation is available at https://mearie.dev/config/codegen.

Related Packages

Version History

Version Released License
0.1.8 MIT
0.1.7 MIT
0.1.6 MIT
0.1.5 MIT
0.1.4 MIT
Pre-releases (28)
Version Released License
0.0.1-next.5 MIT
0.0.1-next.4 MIT
0.0.1-next.3 MIT
0.0.1-next.1
0.0.0-next-20260723193255 MIT