The official interactive playground and reference implementation for the 100PrintsWithMe Browser SDK.
This project demonstrates how to integrate the Browser SDK into a real React application and showcases every major SDK feature.
- 🔐 Browser SDK authentication
- 🎨 Live template preview
- 📄 Render PDF documents
- 🖼️ Render PNG images
- 📦 Bulk document generation
- ⚡ Progress callbacks
- 📝 Variable editing
- 🖥️ Interactive developer console
- 🚀 Production-ready React integration
- 💯 Best practices for SDK usage
- React
- TypeScript
- Vite
- 100PrintsWithMe Browser SDK
Clone the repository.
git clone https://github.com/Controcode/100printswithme-browser-sdk-playground.gitInstall dependencies.
npm installStart the development server.
npm run devOpen your browser.
http://localhost:5173
Open the application and provide:
- Publishable API Key
- Template ID
Example:
const sdk = new BrowserSDK({
key: "pk_live_xxxxxxxxxxxxxxxxx"
});Render templates directly inside the browser while editing variables.
await sdk.preview({
templateId,
payload,
container,
});Generate print-ready PDF documents.
const { blob } = await sdk.render({
templateId,
payload,
format: "pdf",
});Generate high-quality PNG images.
const { blob } = await sdk.render({
templateId,
payload,
format: "png",
});Generate hundreds or thousands of personalized documents.
await sdk.renderBulk({
templateId,
rows,
format: "pdf",
mode: "merged",
});The application demonstrates:
- SDK Initialization
- Authentication
- Template Loading
- Live Preview
- Variable Editing
- PDF Rendering
- PNG Rendering
- Bulk Rendering
- Progress Tracking
- Error Handling
- Developer Console
This repository serves as the official reference implementation for integrating the Browser SDK into React applications.
It is intended to help developers:
- Learn the SDK
- Experiment with rendering
- Understand best practices
- Explore production integration patterns
https://github.com/Controcode/100printswithme-browser-sdk
Official Browser SDK source code.
Complete SDK documentation.
Bug reports, feature requests, and pull requests are welcome.
Please open an issue before submitting major changes.
Copyright © 2026 100PrintsWithMe.
This playground is provided as a reference implementation for the 100PrintsWithMe Browser SDK.
See the LICENSE file for details.