
Security News
Deno Goes the Way of the Dinosaur
Cloudflare is acquiring Deno’s team, which will provide another year of bug fixes and security updates before ending support for the runtime.
@typia/utils
Advanced tools
@typia/utils
Utility functions and converters for the typia ecosystem.
Automatically installed as a dependency of typia.
| Module | Description |
|---|---|
HttpLlm | Create LLM controllers from OpenAPI documents and execute function calls |
HttpMigration | HTTP migration utilities |
HttpError | HTTP error type |
OpenApiConverter | Convert between OpenAPI versions |
OpenApiTypeChecker | Type checker for OpenAPI documents |
LlmSchemaConverter | Convert JSON Schema to LLM schema |
LlmTypeChecker | Type checker for LLM schemas |
LlmJson | Parse lenient JSON and format validation errors for LLM-friendly feedback |
LlmJsonParse lenient JSON and format validation errors for LLM-friendly feedback:
import { IValidation } from "@typia/interface";
import { LlmJson } from "@typia/utils";
const validation: IValidation<unknown> = func.validate(llmArguments);
if (validation.success === false) {
console.log(LlmJson.stringify(validation));
}
Output:
{
"x": "not a number", // ❌ expected: number
"y": 5
}
HttpLlmCreate LLM controllers from OpenAPI documents:
import { IHttpLlmController } from "@typia/interface";
import { HttpLlm } from "@typia/utils";
// any OpenAPI version (Swagger 2.0, OpenAPI 3.0/3.1) is accepted
const controller: IHttpLlmController = HttpLlm.controller({
name: "shopping",
document: await fetch("https://shopping.example.com/swagger.json").then(r => r.json()),
connection: {
host: "https://shopping.example.com",
headers: { Authorization: "Bearer ..." },
},
});
// use with @typia/langchain or @typia/vercel
toLangChainTools({ controllers: [controller] });
toVercelTools({ controllers: [controller] });
OpenApiConverter is used internally to normalize any OpenAPI version into a unified format. You can also use it directly:
import { OpenApi, OpenApiV3 } from "@typia/interface";
import { OpenApiConverter } from "@typia/utils";
const emended: OpenApi.IDocument = OpenApiConverter.upgradeDocument(swagger2doc); // Swagger 2.0 → OpenApi
const downgraded: OpenApiV3.IDocument = OpenApiConverter.downgradeDocument(emended, "3.0"); // → OpenAPI 3.0
FAQs
Superfast runtime validators with only one line
The npm package @typia/utils receives a total of 82,801 weekly downloads. As such, @typia/utils popularity was classified as popular.
We found that @typia/utils demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Security News
Cloudflare is acquiring Deno’s team, which will provide another year of bug fixes and security updates before ending support for the runtime.

Security News
Anthropic’s free OSS Scanner uses Mythos and other Claude models to find open source vulnerabilities and send maintainers reports with proposed fixes.

Security News
On Front Lines’ Early Adopters: CISO podcast, Andrew Becherer shares lessons from Datadog, weighs the long-term costs of AI-built tools, and explains how founders can actually gain a CISO’s trust.