Installation
Get started with Qortex
Install qortex using your preferred package manager and set up your project.
Choose Your Package
Install qortex-query OR qortex-query-react - not both! qortex-query-react includes all core APIs.
Install qortex using your preferred package manager. Choose the package that fits your needs:
For React Projects
If you're using React, install qortex-query-react (includes all core APIs):
For React Projects
# npmnpm install qortex-query-react# yarnyarn add qortex-query-react# pnpmpnpm add qortex-query-react
For Non-React Projects
If you're using vanilla JS, Vue, or other frameworks, install qortex-query:
For Non-React Projects
# npmnpm install qortex-query# yarnyarn add qortex-query# pnpmpnpm add qortex-query
Import Examples
How to import from each package:
Import Examples
// React users - everything from qortex-query-reactimport { useQuery, useQueryData, registerFetcher, fetchQuery } from 'qortex-query-react';// Core-only users - core APIs from qortex-queryimport { registerFetcher, fetchQuery } from 'qortex-query';// Persistence (separate package) - powered by qortex-dbimport { createDB } from 'qortex-db';import { createQueryPersister } from 'qortex-db/query';