npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

flyql-vue

v1.4.0

Published

Vue 3 editor components for FlyQL query language

Readme

flyql-vue

Vue 3 editor components for FlyQL — a schema-driven query input with autocomplete, syntax highlighting, and keyboard navigation, plus a dedicated columns expression editor.

Installation

npm install flyql-vue
# or
pnpm add flyql-vue

flyql-vue depends on the flyql core package and is automatically installed alongside it. Vue 3 is required as a peer dependency:

npm install vue

Requires Node.js 16+.

Quick Start

Query editor

<script setup>
import { ref } from 'vue'
import { FlyqlEditor, ColumnSchema } from 'flyql-vue'
import 'flyql-vue/flyql.css'

const query = ref('')
const columns = ColumnSchema.fromPlainObject({
    status: { type: 'number', suggest: true },
    level: { type: 'enum', suggest: true, autocomplete: true, values: ['debug', 'info', 'error'] },
    service: { type: 'string', suggest: true, autocomplete: true },
    host: { type: 'string', suggest: true },
})

function onSubmit() {
    console.log('Query:', query.value)
}
</script>

<template>
    <FlyqlEditor
        v-model="query"
        :columns="columns"
        placeholder="Type a FlyQL query..."
        @submit="onSubmit"
    />
</template>

Columns expression editor

<script setup>
import { ref } from 'vue'
import { FlyqlColumns, ColumnSchema } from 'flyql-vue'
import 'flyql-vue/flyql.css'

const expr = ref('')
const columns = ColumnSchema.fromPlainObject({
    message: { type: 'string', suggest: true },
    status: { type: 'number', suggest: true },
    host: { type: 'string', suggest: true },
})
</script>

<template>
    <FlyqlColumns
        v-model="expr"
        :columns="columns"
        :capabilities="{ transformers: true }"
        placeholder="message, status|upper, host as h"
    />
</template>

What's in the box

| Export | Description | |---|---| | FlyqlEditor | Vue 3 query editor component with autocomplete and syntax highlighting | | FlyqlColumns | Vue 3 column expression editor component | | EditorEngine | Framework-agnostic editor engine (no Vue dependency) | | ColumnsEngine | Framework-agnostic columns engine (no Vue dependency) | | ColumnSchema, Column | Schema helpers (re-exported from flyql/core) | | flyql-vue/flyql.css | Theme variables, suggestion panel styles, and token highlighting |

Label and icon

label and icon share the slot on the left of the field, ahead of the query text. Both components accept them; clicking either focuses the input, and a text label becomes the input's accessible name.

<!-- text label, built-in glyph -->
<FlyqlEditor v-model="query" :columns="columns" label="Filter" />

<!-- emoji icon, no label -->
<FlyqlEditor v-model="query" :columns="columns" icon="🔎" />

<!-- your own icon component, or `false` to drop the glyph entirely -->
<FlyqlEditor v-model="query" :columns="columns" :icon="MyIcon" />
<FlyqlEditor v-model="query" :columns="columns" :icon="false" label="Filter" />

For richer content use the icon and label slots — they take precedence over the props:

<FlyqlEditor v-model="query" :columns="columns">
    <template #icon><MyIcon /></template>
    <template #label><strong>Filter</strong></template>
</FlyqlEditor>

A long label is truncated with an ellipsis at half the field width rather than squeezing the input. The label renders in the UI font (--flyql-font-family), baseline-corrected to sit on the query text's baseline.

Single-line mode

multiline defaults to true. Set it to false for a field that must stay one line — a toolbar filter, say:

<FlyqlEditor v-model="query" :columns="columns" :multiline="false" />

Shift+Enter stops inserting a break, newlines arriving by paste, drop or IME are collapsed to spaces (same length, so the caret does not jump), and the text scrolls sideways instead of wrapping.

Clear button

hasClear adds a clear button at the trailing edge, shown only when the field has a value:

<FlyqlEditor v-model="query" :columns="columns" has-clear />

Clicking it emits update:modelValue with '' like any other edit — the suggestion panel closes and diagnostics drop through the normal path — and returns focus to the input. Name it with clear-button-label (default Clear).

Suggestion panel placement

The panel is teleported to body and stacks at --flyql-panel-z-index (default 100). Inside a host overlay that outranks it, either raise the variable or point the panel at the overlay:

<FlyqlEditor v-model="query" :columns="columns" :panel-container="drawerEl" />

panel-container takes a selector or an element; the panel then renders inside it and inherits its stacking context, which also makes it a DOM descendant for outside-click handling. An unresolvable target falls back to body. The teleported node carries a data-flyql-panel attribute.

Theming

The editor uses CSS custom properties (--flyql-* variables) for all visual styling. A built-in dark prop toggles the dark theme, and any variable can be overridden in your CSS to match your application's design.

<FlyqlEditor v-model="query" :columns="columns" :dark="isDark" />

See the theming documentation for the full list of variables and customization patterns.

Documentation

Full reference: docs.flyql.dev/editor

License

MIT