Full developer tooling for the zQuery (zero-query) frontend library — autocomplete, hover documentation, go-to-definition, HTML directive support, syntax highlighting, and 244 code snippets .
Type $. or zQuery. anywhere in JavaScript or TypeScript to instantly see every method on the $ namespace — complete with descriptions, signatures, and smart insert text.
Namespace completions — $.* / zQuery.*, $.http.*, $.storage.*, $.session.*, $.bus.*
Collection chain completions — $('selector')., $.all('selector')., $.create('tag')., $.classes('name')., $.tag('div')., $.name('field')., and $.children('id'). suggest 90+ chainable methods
Component key completions — Inside $.component({}) get suggestions for state, render, styles, templateUrl, styleUrl, pages, base, computed, watch, lifecycle hooks, and more
SSR app completions — ssrApp. / createSSRApp(). triggers SSR instance methods (component, has, renderToString, renderPage, renderBatch, renderShell)
HTML directive completions — @ triggers event directives, z- triggers structural directives, : triggers attribute binding shorthands
Hover over any $ method call or HTML directive to see rich inline documentation with code examples.
$, $.id, $.class, $.qs, $.qsa, $.name, $.all, $.component, $.mount, $.http.get, $.http.head, $.http.all, $.http.getConfig, $.http.clearInterceptors, $.http.raw, $.storage.get, $.bus.on, $.fn, $.version, $.meta, $.onError, $.ZQueryError, $.ErrorCode, $.Signal, $.TrustedHTML, $.EventBus, and more
New utilities — $.range, $.unique, $.chunk, $.groupBy, $.pick, $.omit, $.getPath, $.setPath, $.isEmpty, $.capitalize, $.truncate, $.clamp, $.memoize, $.retry, $.timeout, $.stripHtml
Router — $.matchRoute standalone DOM-free route matcher
SSR module — createSSRApp, renderToString, escapeHtml, matchRoute (from zero-query/ssr), plus SSRApp instance methods (renderPage, renderBatch, renderShell, component, has)
Structural directives — z-if, z-else-if, z-else, z-for, z-show, z-cloak, z-pre, z-skip
Data binding directives — z-bind / :attr, z-class, z-style, z-text, z-html, z-model, z-ref
z-model modifiers — z-lazy, z-trim, z-number, z-debounce, z-uppercase, z-lowercase
Router directives — z-link, z-link-params, z-to-top, z-active-route
Event directives — @click, z-on:click, @submit.prevent, and all event modifiers (.prevent, .stop, .once, .self, .capture, .passive, .debounce.{ms}, .throttle.{ms})
Works across JavaScript , TypeScript , and HTML files
Ctrl+Click (or F12 ) on a state property referenced in a template expression to jump to its definition inside $.component().
Works inside {{…}} interpolations and directive attribute values (z-if, z-for, @click, :href, etc.)
Resolves across JS/TS files (inline templates) and external HTML templates loaded via templateUrl
templateUrl and styleUrl string values inside component definitions are Ctrl+clickable — they open the referenced file directly.
Injects TextMate grammar into HTML files for:
{{…}} template interpolation expressions
zQuery directives (z-if, z-for, z-bind, z-model, @click, etc.)
244 snippets covering the entire zQuery API — type zq- to browse them all.
JavaScript / TypeScript Snippets
Prefix
Description
zq-select
Chainable selector → ZQueryCollection
zq-select-scoped
Scoped selector → ZQueryCollection inside a parent
zq-id
Select by ID
zq-class
Select first element with class
zq-classes
Select all elements with class → ZQueryCollection
zq-bytag
Select all elements by tag name → ZQueryCollection
zq-name
Select elements by name attribute → ZQueryCollection
zq-children
Direct children of a parent element → ZQueryCollection
zq-qs
Raw querySelector — any CSS selector → Element | null
zq-qsa
Raw querySelectorAll → real Array<Element>
zq-all
Query all matching elements and chain — alias for $()
zq-create
Create a DOM element with attributes → ZQueryCollection (chainable)
zq-domready
DOM-ready callback shorthand $(fn)
zq-ready
DOM ready callback (DOMContentLoaded)
Prefix
Description
zq-all-on
Attach event handler to all matching elements
zq-all-addclass
Add a class to all matching elements
zq-all-css
Set inline styles on all matching elements
zq-all-animate
Animate CSS properties (returns Promise)
zq-all-fadein
Fade in elements (opacity 0→1)
zq-all-fadeout
Fade out elements (opacity 1→0)
zq-all-slidetoggle
Toggle height with slide animation
zq-serialize
Serialize form data as key/value object
zq-plugin
Extend ZQueryCollection with a custom method
zq-get-element
Get raw element at index, or all elements as array
zq-index
Return the index of the first element within its siblings
Prefix
Description
zq-parents
All ancestor elements, optionally filtered by selector
zq-parentsuntil
Ancestors up to (but not including) the matching element
zq-nextall
All following siblings, optionally filtered
zq-nextuntil
Following siblings until the selector is matched
zq-prevall
All preceding siblings, optionally filtered
zq-prevuntil
Preceding siblings until the selector is matched
zq-contents
All child nodes (including text nodes) of each element
Prefix
Description
zq-is
Test whether any element matches the selector
zq-slice
Return a subset of elements from start to end index
zq-add
Create a new collection with additional elements added
Prefix
Description
zq-appendto
Append all elements to the target element
zq-prependto
Prepend all elements to the target element
zq-insertafter
Insert all elements after the target element
zq-insertbefore
Insert all elements before the target element
zq-replaceall
Replace all target elements with the collection elements
zq-wrapall
Wrap all elements in a single wrapper
zq-wrapinner
Wrap the inner contents of each element
zq-unwrap
Remove the parent element of each element
zq-detach
Remove elements from DOM (keeps reference for reinsertion)
Prefix
Description
zq-innerwidth
First element's inner width (padding, no border)
zq-innerheight
First element's inner height (padding, no border)
zq-outerwidth
First element's outer width including border
zq-outerheight
First element's outer height including border
zq-scrolltop
Get or set vertical scroll position
zq-scrollleft
Get or set horizontal scroll position
Prefix
Description
zq-fadeto
Fade to a specific opacity value
zq-fadetoggle
Toggle fade — fade out visible, fade in hidden
zq-slidedown
Slide open (animate height from 0 to natural)
zq-slideup
Slide closed (animate height to 0 then hide)
zq-hover
Bind mouseenter and mouseleave handlers
Prefix
Description
zq-on
Global delegated event listener (3-arg)
zq-on-direct
Direct global event listener (2-arg)
zq-off
Remove a global event listener
Prefix
Description
zq-signal
Create a reactive signal
zq-signal-sub
Subscribe to a signal's changes
zq-computed
Create a computed (derived) signal
zq-effect
Create a reactive effect
zq-batch
Batch signal writes — effects fire once after the block
zq-untracked
Read signals without subscribing to them
zq-reactive
Create a deep reactive proxy
Prefix
Description
zq-component
Full component with state, lifecycle, methods, render
zq-component-simple
Minimal component scaffold
zq-component-pages
Component with pages config (lazy-loaded sections)
zq-component-template
Component with external template and stylesheet
zq-mount
Mount a registered component
zq-mountall
Auto-mount all registered component tags
zq-getinstance
Get the component instance at a target element
zq-destroy
Destroy a mounted component
zq-components
List all registered component definitions
zq-setstate
Merge partial state (triggers re-render)
zq-emit
Dispatch a CustomEvent from the component root
zq-component-computed
Component with computed properties (lazy getters derived from state)
zq-component-watch
Component with watchers (callbacks when state keys change)
Prefix
Description
zq-router
SPA router with routes and fallback
zq-router-hash
Hash-mode router (#/path)
zq-route-lazy
Lazy-loaded route definition
zq-route-fallback
Route with fallback path
zq-guard
Navigation guard
zq-route-change
Subscribe to route changes
zq-getrouter
Get the active router instance
zq-navigate
Navigate to a path
zq-navigate-params
Navigate with :param interpolation
zq-replace
Replace the current route (no history entry)
zq-replace-params
Replace with :param interpolation
zq-route-add
Add a route dynamically at runtime
zq-matchroute
Match a URL pathname against a routes array (DOM-free)
Prefix
Description
zq-store
Store with state, actions, and getters
zq-store-named
Named store (retrieve via $.getStore)
zq-getstore
Retrieve a store by name
zq-store-sub
Subscribe to a store state key
zq-dispatch
Dispatch a store action
zq-snapshot
Deep clone of current store state
zq-store-use
Add store middleware
zq-store-batch
Batch store mutations — subscribers notify once
zq-store-checkpoint
Save store state snapshot for undo/redo
zq-store-undo
Store undo/redo with guard checks
Prefix
Description
zq-http-config
Configure HTTP client defaults
zq-get
HTTP GET request
zq-post
HTTP POST request
zq-put
HTTP PUT request
zq-patch
HTTP PATCH request
zq-delete
HTTP DELETE request
zq-head
HTTP HEAD request — headers only, no body
zq-http-try
HTTP request with error handling
zq-http-abort
AbortController for request cancellation
zq-interceptor-req
HTTP request interceptor (returns unsubscribe)
zq-interceptor-res
HTTP response interceptor (returns unsubscribe)
zq-http-clear-interceptors
Clear HTTP interceptors — 'request', 'response', or both
zq-http-all
Execute multiple requests in parallel (Promise.all)
zq-http-getconfig
Get current HTTP client configuration
Prefix
Description
zq-debounce
Debounced function
zq-throttle
Throttled function
zq-pipe
Left-to-right function composition
zq-once
Function that executes only once
zq-sleep
Promise that resolves after N ms
zq-uuid
Generate a UUID v4
zq-escapehtml
Escape HTML entities
zq-striphtml
Strip HTML tags from string
zq-html-safe
Tagged template with auto-escaping
zq-trust
Mark HTML as trusted (skip escaping)
zq-camelcase
kebab-case → camelCase
zq-kebabcase
camelCase → kebab-case
zq-deepclone
Deep clone an object
zq-deepmerge
Recursive object merge
zq-isequal
Deep equality comparison
zq-param
Serialize object to query string
zq-parsequery
Parse query string to object
zq-morph
Patch a live DOM tree via real-DOM diffing
zq-morphelement
Morph a single element in place
zq-safeeval
CSP-safe expression evaluator (no eval/new Function)
zq-prefetch
Pre-load component templates and styles
zq-range
Generate a numeric range array
zq-unique
Deduplicate an array
zq-chunk
Split array into chunks
zq-groupby
Group array elements by key function
zq-pick
Pick keys from an object
zq-omit
Omit keys from an object
zq-getpath
Deep get by dot-path string
zq-setpath
Deep set by dot-path string
zq-isempty
Check if value is empty
zq-capitalize
Capitalize first letter
zq-truncate
Truncate string with suffix
zq-clamp
Clamp number between min/max
zq-memoize
Memoize a function (with optional LRU)
zq-retry
Retry async function with backoff
zq-timeout
Race promise against a timeout
Prefix
Description
zq-storage-set
Store value in localStorage
zq-storage-get
Get value from localStorage
zq-session-set
Store value in sessionStorage
zq-session-get
Get value from sessionStorage
zq-bus-on
Subscribe to a bus event
zq-bus-emit
Emit a bus event
zq-bus-once
One-time bus event subscription
zq-bus-clear
Remove all bus listeners
SSR (Server-Side Rendering)
Prefix
Description
zq-ssr-import
Import SSR utilities from zero-query/ssr
zq-ssr-app
Create an SSR app instance and register a component
zq-ssr-render
Render a registered component to an HTML string
zq-ssr-renderpage
Render a full HTML page from scratch
zq-ssr-rendershell
Inject SSR content into an existing HTML shell template
zq-ssr-renderbatch
Render multiple components in parallel
zq-ssr-component
Register a component definition with an SSR app
zq-ssr-express
Express route handler with SSR rendering
Prefix
Description
zq-style
Dynamically load a global stylesheet
zq-import
Import zQuery named exports (ESM)
zq-noconflict
Remove $ from window and return zQuery
Prefix
Description
zq-onerror
Register a global error handler
zq-error-check
Try/catch with ZQueryError check
zq-guardcallback
Wrap function so errors are caught and reported
zq-validate
Assert value is non-null and expected type
Prefix
Description
z-if
Conditional rendering — removes element when falsy
z-if-else
z-if / z-else block pair
z-if-elseif-else
Full z-if / z-else-if / z-else chain
z-else-if
Else-if branch (must follow z-if or z-else-if)
z-else
Else branch (must follow z-if or z-else-if)
z-for
List rendering — repeats element for each item
z-for-index
List rendering with $index
z-show
Toggle visibility via display:none (stays in DOM)
z-cloak
Hide until rendered — prevents template flash
z-pre
Skip directive processing for element and children
z-key
Keyed reconciliation attribute for z-for loops
z-skip
Opt out of DOM diffing for static content
Prefix
Description
z-bind
Dynamic attribute binding (z-bind:attr="expr")
:bind
Attribute binding shorthand (:href, :src, etc.)
z-class
Dynamic CSS class binding with object syntax
z-style
Dynamic inline style binding with object syntax
z-text
Text content binding — sets textContent (auto-escaped)
z-html
HTML content binding — sets innerHTML (trusted content)
z-model
Two-way data binding
z-model-nested
Nested state binding (parent.child)
z-model-mods
Binding with modifier (z-lazy, z-trim, z-number, z-debounce, z-uppercase, z-lowercase)
z-model-checkbox
Checkbox with boolean binding
z-model-radio
Radio button group
z-model-number
Number input
z-model-select
Select dropdown
z-model-textarea
Textarea with optional lazy modifier
z-model-debounce
Input with debounce modifier — delays state updates
z-model-uppercase
Input with uppercase modifier — converts to uppercase
z-model-lowercase
Input with lowercase modifier — converts to lowercase
z-ref
Element reference (this.refs.name)
z-link
SPA navigation link
z-link-params
SPA link with dynamic :param interpolation
z-to-top
Scroll to top on navigation — accepts "instant" (default) or "smooth"
z-active-route
Active route class — adds CSS class when current route matches
z-on
Event binding (z-on:event form)
z-on-mod
Event binding with modifier
Prefix
Description
zq-slot
Default slot for content distribution
zq-slot-named
Named slot for targeted content distribution
Prefix
Description
@click
Click handler
@click-args
Click with arguments
@click-prevent
Click with preventDefault
@submit
Form submit with preventDefault
@input
Input handler
@change
Change handler
@keydown
Keydown handler
@keyup
Keyup handler
@event
Custom event binding
@event-prevent-stop
Event with prevent + stop modifiers
@event-once
One-time event — auto-removes after first fire
@event-self
Self-only — fires only when target is the element
@event-capture
Capture-phase event listener
@event-passive
Passive listener for scroll performance
@event-debounce
Debounced event — delays by specified ms
@event-throttle
Throttled event — fires at most once per specified ms
Prefix
Description
zq-tag
Custom component element
zq-embed
Embed a component with props
zq-expr
Template expression ({{…}})
zq-if
Conditional rendering (ternary)
zq-list
List rendering (map/join)
zq-for-key
z-for loop with z-key for keyed DOM reconciliation
Prefix
Description
zq-form
Complete form with z-model bindings
zq-select-el
Select element with z-model
zq-checkbox
Checkbox with z-model
Prefix
Description
zq-outlet
Router outlet element
zq-nav
Navigation bar with z-links
zQuery supports chaining modifiers on any event binding (@event or z-on:event):
Modifier
Description
.prevent
Calls event.preventDefault()
.stop
Calls event.stopPropagation()
.once
Handler fires once then auto-removes
.self
Only fires when event.target is the element itself
.capture
Uses capture-phase event listener
.passive
Marks listener as passive (performance hint)
.debounce.{ms}
Debounces handler by specified milliseconds
.throttle.{ms}
Throttles handler to fire at most once per specified ms
Modifiers can be chained: @click.prevent.stop="handler", @scroll.passive.throttle.100="onScroll"
Setting
Type
Default
Description
zquery.enable
boolean
true
Enable or disable zQuery IntelliSense
JavaScript
TypeScript
JavaScript React (JSX)
TypeScript React (TSX)
HTML
VS Code 1.75.0 or later
No additional dependencies
MIT