This repository provides minimal starter templates for integrating Capsule into various frameworks and environments. Each template folder is designed to be used as a starting point for your project, providing a basic setup with the Capsule client initialized.
with-react-native
- React Native setup with native modules and configurationswith-react-nextjs
- Next.js App Router setup with client-side renderingwith-react-vite
- Vite + React setup with node polyfills
with-svelte-kit
- SvelteKit setup with React support and node polyfillswith-svelte-vite
- Vite + Svelte setup with React support
with-vue-nuxt
- Nuxt 3 setup with React support and client-side renderingwith-vue-vite
- Vite + Vue setup with React support
- Complete native module setup
- Required polyfills and shims
- iOS and Android configurations
- Bundle identifier setup
- Capsule Modal integration
- Environment-based API key configuration
- Framework-specific builds and configurations:
- Next.js: App Router with client-side rendering
- Vite + React: Node polyfills and build optimization
- SvelteKit/Svelte: React preprocessing and integration
- Nuxt 3/Vue: React support within Vue environment
-
Clone this repository:
git clone https://github.com/capsule-org/capsule-starter-templates.git
-
Choose and navigate to your desired template:
cd capsule-starter-templates/[template-name]
-
Follow the template-specific README instructions for:
- Installing dependencies
- Setting up environment variables
- Starting the development server
- Additional configuration steps (if required)
Each template provides:
- Basic framework setup
- Capsule client initialization
- Minimal example component
- Environment configuration
- Framework-specific optimizations
- Necessary build configurations
- Each template is independent and can be used as a standalone starter
- Templates provide essential Capsule integration setup
- Build upon these templates for your specific use case
- React Native requires additional native setup steps
- Web frameworks include Capsule Modal integration
- Some frameworks require specific plugins or preprocessors
- SSR considerations for Next.js and Nuxt 3
For detailed instructions, refer to each template's individual README.
For more complex implementations and examples, check out our Examples Hub. You'll find comprehensive examples of:
- Authentication implementations
- Signer options
- Session management
- Server-side integration
- Framework-specific features
For detailed Capsule integration documentation, visit docs.usecapsule.com