Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
A template for quickly integrating the Drama Engine with Vercel and Next.js, enabling agentic interaction with language models in the browser.

ShipAny is a development framework for building AI SaaS, with rich built-in functional modules and business components, helping you quickly launch your website.
The Drama Engine Template provides a robust starting point for integrating the innovative Drama Engine with your Vercel and Next.js projects. The Drama Engine itself is a cutting-edge framework designed for facilitating agentic interactions with various language models. Developed in TypeScript, it boasts the unique advantage of executing directly within any web browser, empowering front-end developers to seamlessly build applications that leverage AI agents without complex backend dependencies. Its model- and provider-agnostic nature ensures flexibility, allowing developers to choose their preferred language model providers.
Key features and use cases of this template and the Drama Engine include:
companions.ts file, allowing for tailored user experiences.src/middleware.ts in the Next.js application is designed to intercept and augment API requests to /v1/completions and /v1/chat/completions. This middleware securely adds necessary API keys and headers before forwarding requests to the upstream language model server, preventing direct client-side exposure of sensitive credentials.While the middleware enhances security by abstracting API keys, it's crucial for developers to implement additional authorization logic to ensure only legitimate requests are forwarded to the language model providers. This template is ideal for developers looking to explore multi-agent systems, build interactive AI experiences, or integrate advanced language model capabilities into their front-end applications with ease.