Turn your blueprint into UI components
Automated Frontend Viewer Development
Autoview is a code generator that transforms your schema into fully functional TypeScript frontend components. Whether you define your schema as TypeScript types or provide a Swagger/OpenAPI document, Autoview automatically generates the corresponding UI code with precision.
For frontend developers, this means you can instantly see your design take shape. Simply define your TypeScript types, and watch as Autoview produces the necessary code for you to refine and integrate into your application.
Backend developers benefit as well—just supply your swagger.json file and let Autoview work its magic. Whether your API defines 200 functions or 300, the tool scales effortlessly by generating an equal number of frontend components, streamlining integration and boosting productivity.
- 🤖 Automated Viewer Generation: Uses LLM function calling to automatically compose React viewer components.
- 💻 TypeScript Code Generation: Generate compile-ready TypeScript code based on your schema, easing the path for rapid prototyping.
- 🔌 Swagger/OpenAPI Integration: Automatically generate viewer components for every API operation using your Swagger (OpenAPI) document.
- ✅ LLM Function Calling & Validation: Combines LLM function calling with real-time compiler and validator feedback to achieve high reliability.
- 🚀 Boost Developer Productivity: Streamline repetitive frontend tasks with automation that integrates directly into your workflow.
Install @autoview/agent
along with its required dependencies:
npm install @autoview/agent @autoview/ui openai
npm install -D @samchon/openapi typia
npx typia setup
import typia, type { tags } from "typia";
interface IMember {
id: string & tags.Format<"uuid">;
name: string;
age: number & tags.Minimum<0> & tags.Maximum<100>;
thumbnail: string & tags.Format<"uri"> & tags.ContentMediaType;
}
import { AutoViewAgent } from "@autoview/agent";
import fs from "node:fs";
import OpenAI from "openai";
const agent = new AutoViewAgent({
model: "chatgpt",
vendor: {
api: new OpenAI({ apiKey: "********" }),
model: "o3-mini",
isThinkingEnabled: true,
},
input: {
type: "json-schema",
unit: typia.json.unit<IMember>(),
},
transformFunctionName: "transformMember",
experimentalAllInOne: true, // recommended for faster and less-error results
});
const result = await agent.generate(); // generate the code
// save the code
await fs.promises.writeFile(
"./src/transformers/transformMember.ts",
result.transformTsCode,
"utf8",
);
import { renderComponent } from "@autoview/ui";
import { transformMember } from "./transformers/transformMember";
export interface MemberComponentProps {
member: IMember;
}
export default function MemberComponent(props: MemberComponentProps) {
return <div>{renderComponent(transformMember(props.member))}</div>;
}
For support, questions, or to provide feedback, join our Discord community:
Autoview is open-source and available under the MIT License.