kanvas-core

Create modular TypeScript clients for Kanvas backend integrations.

10|2|Updated Mar 10, 2023
One-click install
npx skills add https://github.com/bakaphp/kanvas-core-js --skill kanvas-core
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: kanvas-core
Source: https://github.com/bakaphp/kanvas-core-js/tree/main
Command: npx skills add https://github.com/bakaphp/kanvas-core-js --skill kanvas-core

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Kanvas Core JS SDK provides a modular TypeScript client library to connect applications to the Kanvas Niche backend, enabling precise module usage and strong typing.

Core Features & Use Cases

  • Modular, import-on-demand architecture with clients for app, auth, file-system, commerce, locations, and settings.
  • Supports browser (createClient) and server (createAdminClient) environments with a clear security separation and migration guidance from the legacy KanvasCore.
  • Comes with Next.js integration patterns, migration examples, and a built-in GraphQL/Apollo + Axios integration to streamline data flows.

Quick Start

Install the Kanvas Core package and initialize a modular client with createClient or createAdminClient, then import and use the specific modules you need.

Frequently Asked Questions about kanvas-core

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build a scalable TypeScript integration for a Kanvas backend?

Build scalable Kanvas integrations using a modular, strongly typed TypeScript SDK. This approach provides import-on-demand clients for authentication, file uploads, commerce, locations, and settings across browser and server environments.

Can I use the Kanvas SDK for both browser and server-side applications?

Yes, the Kanvas SDK supports browser and server contexts using createClient and createAdminClient. This separation ensures secure authentication and data flows for both client-side and admin-level server integrations.

How do I migrate from the legacy KanvasCore class to a modular SDK?

Migrate from the legacy KanvasCore class using provided migration guidance and examples. The new factory-based API replaces the monolithic class, allowing you to import specific modules like auth and commerce on demand.

Does the Kanvas TypeScript SDK integrate with GraphQL and Axios?

Yes, the Kanvas TypeScript SDK features built-in GraphQL/Apollo and Axios integration. This streamlines data flows and manages network requests seamlessly within your Next.js or standard TypeScript applications.

What is the best way to handle authentication and file uploads with a Kanvas Niche backend?

Handle authentication and file uploads by initializing the modular Kanvas client and importing the specific auth and file-system modules. This strongly typed architecture ensures precise module usage for your backend integration.

Are there Next.js integration patterns available for the Kanvas SDK?

Yes, the Kanvas SDK provides Next.js integration patterns and examples. These patterns demonstrate how to implement the factory-based API and manage data flows effectively within the Next.js framework.