Encore Frontend Integration is a specialized Claude Code skill designed to streamline the connection between popular frontend frameworks—such as React, Next.js, Vue, Svelte, Remix, and Astro—and an Encore.ts backend. It guides users through generating fully-typed TypeScript API clients, configuring cross-origin resource sharing (CORS) in `encore.app`, and wiring up authentication tokens or credentials. This skill is ideal when developers need to bridge the gap between frontend user interfaces and Encore-powered microservices with robust, end-to-end type safety.
主要功能
01Provides copy-pasteable integration patterns for React, Next.js, Svelte, and TanStack Query.
02Supports standard fetch APIs and environment variable setups across various build tools like Vite.
03Illustrates secure authentication patterns using Bearer tokens and cookie-based credentials.
04Guides developers through configuring global CORS settings in the encore.app configuration.
0525 GitHub stars
06Generates fully-typed TypeScript API clients for local and deployed Encore environments.
使用场景
01Generating a TypeScript API client to consume Encore backend endpoints securely in a React SPA.
02Configuring production-grade CORS policies to handle API requests from multi-tenant subdomains.
03Implementing type-safe server-side data fetching inside Next.js Server Components.