---
stable_id: skills/skills-sh-hairyf-knitwork-x-knitwork-x
type: skills
title: skills-sh-hairyf-knitwork-x-knitwork-x
summary: >-
  ---

  name: core-overview

  description: knitwork-x purpose, installation, and when to use

  ---

  # knitwork-x Overview

  knitwork-x provides **utilities to generate JavaScript and TypeScript code**
  as strings. It is forked from [knitwork](https://github.com/unjs/knitwork) and
  adds comprehensive TypeScript helpers: ESM, strings, variables, classes,
  interfaces, functions, types, control flow, and serialization.

  ## When to Use

  - **Code generators:** Build tools that emit JS/TS source (e.g.
  schema-to-types, API clients).

  - **Dynamic modules:** Generate import/export and function/class bodies at
  runtime.

  - **AST-to-code:** Turn structured data into code strings without a full AST
  library.
tags:
  - skills-sh
  - skills-sh-all-time
source_url: https://raw.githubusercontent.com/hairyf/knitwork-x/HEAD/skills/knitwork-x/references/core-overview.md
license: ""
upstream_ref: https://skills.sh/hairyf/knitwork-x/knitwork-x
github_stars: null
github_forks: null
github_is_organization: null
retrieved_at: 2026-06-11T08:32:00.866Z
content_sha256: 14f498087b077d54f43319de2fad52747d95f44d408646d00c15fdf17be11bb7
---
