Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

danielroe/zero-vue

Repository files navigation

zero-vue

npm version npm downloads Github Actions Codecov

Vue bindings for Zero

Usage

Install package:

# npm
npm install zero-vue
# pnpm
pnpm install zero-vue
import { Zero } from '@rocicorp/zero'
import { useQuery } from 'zero-vue'
// see docs: https://zero.rocicorp.dev/docs/introduction
const z = new Zero({
 userID,
 server: import.meta.env.VITE_PUBLIC_SERVER,
 schema,
 kvStore: 'mem',
})
const { data: users } = useQuery(z.query.user)

Tip

See the playground for a full working example based on rocicorp/hello-zero, or check out danielroe/hello-zero-nuxt to see how to set things up with Nuxt.

πŸ’» Development

  • Clone this repository
  • Enable Corepack using corepack enable
  • Install dependencies using pnpm install
  • Run interactive tests using pnpm dev

Credits

The implementation here was based on zero-solid. You can also check out hello-zero-nuxt to see the original implementation and history of this project.

License

Made with ❀️

Published under MIT License.

About

Vue bindings for Zero

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published

Contributors 6

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /