{"repo":"bakaphp/kanvas-core-js","free":true,"listed":false,"github":"https://github.com/bakaphp/kanvas-core-js","clone":"git clone https://github.com/bakaphp/kanvas-core-js.git","description":"TypeScript SDK was designed exclusively to connect with the Kanvas Niche Ecosystem.","language":"TypeScript","stars":10,"topics":["crm","grahql","inventory","kanvas","social","typescript"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"Kanvas Core JS SDK A modern TypeScript SDK for seamless integration with the Kanvas Niche ecosystem. Installation Quick Start Available Modules The SDK is organized into modular packages for better tree-shaking: - @kanvas/core/app - Client initialization - @kanvas/core/auth - Authentication - @kanvas/core/settings - Settings management - @kanvas/core/file-system - File operations - @kanvas/core/receiver - Receiver data submission - @kanvas/core/commerce - E-commerce (cart & orders) - @kanvas/core/locations - Geographic data Client Configuration Basic Client (Browser/Client-side) Admin Client (Server-side only) ⚠️ Security Note: Never use createAdminClient in browser environments. The admin key should only exist on your server. Using with Next.js App Router (Server Components) Pages Router (API Routes) Module Usage Examples Authentication File System Commerce Locations Creating Custom Modules You can extend the SDK with custom modules: Migration from Legacy Version Key Changes 1. Modular imports - Import only what you need 2. TypeScript support - Full type safety 3. Separate client types - Distinct client and admin clients 4. Modern patterns - Async/await, better error handling Migration Examples Before (Legacy) After (New) Module Mapping Legacy New ------------------------------------ --------------------------------- kanvas.auth.login(email, password) auth.login({ email, password }) kanvas.users. Not yet implemented - use legacy kanvas.filesystem. createFileSystem(client) ka","default_branch":null,"files":null,"tree":[],"storefront":"/r/bakaphp","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/bakaphp/kanvas-core-js/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}