{"id":42363,"library":"zitejs","title":"ZiteJS","description":"ZiteJS (v0.9.34) is a framework for building apps on Zite Database, providing typed client access, API endpoint creation, authentication, file uploads, PDF generation, and scheduled tasks. It is actively developed with release cadence following GitHub releases. Key differentiators: vibe-coding oriented, full-stack capabilities with React integration (peer deps: @tanstack/react-query >=5, react >=18), and TypeScript-first design. Suitable for rapid prototyping and production apps leveraging the Zite ecosystem.","status":"active","version":"0.9.34","language":"javascript","source_language":"en","source_url":"https://github.com/zite/zitejs","tags":["javascript","zite","zitejs","framework","database","vibe-coding","typescript"],"install":[{"cmd":"npm install zitejs","lang":"bash","label":"npm"},{"cmd":"yarn add zitejs","lang":"bash","label":"yarn"},{"cmd":"pnpm add zitejs","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Required for data synchronization and query management in React applications.","package":"@tanstack/react-query","optional":true},{"reason":"Required for hooks like useAuth and useUpload.","package":"react","optional":true}],"imports":[{"note":"The main client is exported from 'zitejs/db', not the root package.","wrong":"import { zite } from 'zitejs'","symbol":"zite","correct":"import { zite } from 'zitejs/db'"},{"note":"createEndpoint is a named export from 'zitejs/api'. Default import will fail.","wrong":"import createEndpoint from 'zitejs/api'","symbol":"createEndpoint","correct":"import { createEndpoint } from 'zitejs/api'"},{"note":"useAuth is a named export. Requires React context provider.","wrong":"import useAuth from 'zitejs/auth'","symbol":"useAuth","correct":"import { useAuth } from 'zitejs/auth'"},{"note":"useUpload is exported from 'zitejs/upload', not root package.","wrong":"import { useUpload } from 'zitejs'","symbol":"useUpload","correct":"import { useUpload } from 'zitejs/upload'"},{"note":"ZitePdf is a named class export.","wrong":"import ZitePdf from 'zitejs/pdf'","symbol":"ZitePdf","correct":"import { ZitePdf } from 'zitejs/pdf'"},{"note":"The module is 'schedules' (plural). Typo leads to module not found.","wrong":"import { ZiteSchedule } from 'zitejs/schedule'","symbol":"ZiteSchedule","correct":"import { ZiteSchedule } from 'zitejs/schedules'"}],"quickstart":{"code":"// Setup: run `zite sync` to generate db client\nimport { zite } from 'zitejs/db';\nimport { createEndpoint } from 'zitejs/api';\nimport { useAuth } from 'zitejs/auth';\n\n// Example: fetch all users\nconst users = await zite.users.findMany();\n\n// Example: endpoint\nexport default createEndpoint({\n  execute: async ({ input }) => {\n    const users = await zite.users.findMany({ where: { role: input.role } });\n    return { data: users };\n  }\n});\n\n// Example: auth hook\nfunction Profile() {\n  const { user } = useAuth();\n  return <div>Hello {user?.name}</div>;\n}","lang":"typescript","description":"Shows usage of database client, API endpoint creation, and auth hook with ZiteJS."},"warnings":[{"fix":"Update import to import { zite } from 'zitejs/db'.","message":"Breaking change in v0.9.0: The database client moved from 'zitejs' to 'zitejs/db'. Old import will break.","severity":"breaking","affected_versions":"<0.9.0"},{"fix":"Install peer deps: npm install @tanstack/react-query react","message":"Peer dependencies @tanstack/react-query >=5 and react >=18 are required for React hooks; missing them causes runtime errors.","severity":"gotcha","affected_versions":">=0.0.0"},{"fix":"Wrap app with <AuthProvider> from 'zitejs/auth'.","message":"The auth module requires a provider component wrapping your app. Without it, useAuth will throw.","severity":"gotcha","affected_versions":">=0.0.0"},{"fix":"Use subpath imports like 'zitejs/db', 'zitejs/api', etc.","message":"In v0.9.0, the old pattern of importing from root 'zitejs' is deprecated and will be removed in next major.","severity":"deprecated","affected_versions":">=0.9.0"}],"env_vars":null,"search_vec":"'18':56 '5':54 'access':16 'activ':30 'api':17 'app':9,68 'authent':20 'build':8 'cadenc':34 'capabl':47 'client':15 'code':42,80 'creation':19 'databas':12,77 'dep':52 'design':61 'develop':31 'differenti':39 'ecosystem':72 'endpoint':18 'file':21 'first':60 'follow':35 'framework':6,76 'full':45 'full-stack':44 'generat':24 'github':36 'integr':50 'javascript':73 'key':38 'leverag':69 'orient':43 'pdf':23 'peer':51 'product':67 'prototyp':65 'provid':13 'rapid':64 'react':49,55 'releas':33,37 'schedul':26 'stack':46 'suitabl':62 'tanstack/react-query':53 'task':27 'type':14 'typescript':59,81 'typescript-first':58 'upload':22 'v0.9.34':3 'vibe':41,79 'vibe-cod':40,78 'zite':11,71,74 'zitej':1,2,75","created_at":"2026-06-04T18:56:53.686568+00:00","updated_at":"2026-06-04T18:56:53.686568+00:00","problems":[{"fix":"Change import to import { zite } from 'zitejs/db'.","cause":"Importing from root 'zitejs' instead of a subpath like 'zitejs/db'.","error":"Cannot find module 'zitejs' or its corresponding type declarations."},{"fix":"Ensure AuthProvider wraps the component and useAuth is called inside a component.","cause":"Missing AuthProvider or using useAuth outside React component tree.","error":"Uncaught TypeError: Cannot destructure property 'user' of 'useAuth(...)' as it is undefined."},{"fix":"Import from 'zitejs/schedules'.","cause":"Typo: module is 'schedules' (plural).","error":"Cannot find module 'zitejs/schedule' or its corresponding type declarations."},{"fix":"Use named import: import { createEndpoint } from 'zitejs/api'.","cause":"Using default import instead of named import for createEndpoint.","error":"Module '\"zitejs/api\"' has no exported member 'createEndpoint'. Did you mean to use default import?"}],"ecosystem":"npm","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/zite/zitejs#readme","github":"https://github.com/zite/zitejs","docs":null,"changelog":null,"pypi":null,"npm":"zitejs","openapi_spec":null,"status_page":null,"smithery":null,"categories":["database"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-04","next_check":"2026-09-02","install_tag":null}}