unjs/knitwork
🧶 Utilities to generate safe JavaScript code.
This tool helps JavaScript and TypeScript developers programmatically construct and manipulate code. You provide it with building blocks like import paths, variable names, and object structures, and it outputs correctly formatted and safe JavaScript or TypeScript code strings. It's designed for developers who need to generate code within their own applications, such as for build tools or code generators.
315 stars. Available on npm.
Use this if you are a JavaScript or TypeScript developer building tools that need to dynamically create or modify JavaScript or TypeScript code.
Not ideal if you are an end-user looking for a visual code editor or a simple script runner.
Stars
315
Forks
17
Language
TypeScript
License
MIT
Category
Last pushed
Mar 12, 2026
Commits (30d)
0
Get this data via API
curl "https://pt-edge.onrender.com/api/v1/quality/ai-coding/unjs/knitwork"
Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.
Related tools
retejs/rete-studio
A general-purpose code generation tool powered by Rete.js
chrishoermann/zod-prisma-types
Generator creates zod types for your prisma models with advanced validation
microsoft/ts-gyb
Generating native code interfaces from TypeScript
evoluteur/evolutility-ui-jquery
Model-driven Web UI for CRUD using REST or localStorage.
idrinth-api-bench/cli
This is the generative cli for a typescript framework meant to performance test anything even...