Open History to see the last commit
1---
2id: installation
3title: Installation
4---
5β
6You can install Solid Query via [NPM](https://npmjs.com/),
7or a good ol' `<script>` via
8[ESM.sh](https://esm.sh/).
9β
10### NPM
11β
12```sh
13npm i @tanstack/solid-query
14```
15β
16or
17β
18```sh
19pnpm add @tanstack/solid-query
20```
21β
22or
23β
24```sh
25yarn add @tanstack/solid-query
26```
27β
28or
29β
30```sh
31bun add @tanstack/solid-query
32```
33β
34Solid Query is compatible with Solid v1.6+.
35β
36> Wanna give it a spin before you download? Try out the [simple](./examples/simple) or [basic](./examples/basic) examples!
37β
38### CDN
39β
40If you're not using a module bundler or package manager, you can also use this library via an ESM-compatible CDN such as [ESM.sh](https://esm.sh/). Simply add a `<script type="module">` tag to the bottom of your HTML file:
41β
42```html
43<script type="module">
44 import { QueryClient } from 'https://esm.sh/@tanstack/solid-query'
45</script>
46```
47β
48### Requirements
49β
50Solid Query is optimized for modern browsers. It is compatible with the following browsers config
51β
52```
53Chrome >= 91
54Firefox >= 90
55Edge >= 91
56Safari >= 15
57iOS >= 15
58Opera >= 77
59```
60β
61> Depending on your environment, you might need to add polyfills. If you want to support older browsers, you need to transpile the library from `node_modules` yourselves.