Skip to content

Vue bindings for Zero

License

Notifications You must be signed in to change notification settings

rocicorp/zero-vue

This branch is 18 commits behind danielroe/zero-vue:main.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

0e8352d · Apr 9, 2025

History

65 Commits
Feb 4, 2025
Apr 9, 2025
Apr 8, 2025
Apr 8, 2025
Dec 27, 2024
Dec 27, 2024
Dec 27, 2024
Dec 27, 2024
Mar 8, 2025
Dec 27, 2024
Dec 27, 2024
Dec 27, 2024
Apr 9, 2025
Apr 9, 2025
Apr 9, 2025
Dec 27, 2024
Dec 27, 2024
Dec 27, 2024

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

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 82.7%
  • Vue 13.5%
  • CSS 2.7%
  • Other 1.1%