{"id":26549,"library":"typescript-move","title":"TypeScript-Move","description":"A TypeScript to Sui Move transpiler that allows developers to write Sui smart contracts using TypeScript syntax. Current stable version is 1.1.1, with active development and a v2 documentation available. It bridges the gap between web and blockchain development, enabling familiar TypeScript patterns for Move smart contracts on Sui. Key differentiators: no new language to learn, leverages TypeScript tooling, targets the Sui blockchain specifically.","status":"active","version":"1.1.1","language":"javascript","source_language":"en","source_url":"https://github.com/MonoracleApp/typescript-move","tags":["javascript","sui","move","blockchain","transpiler","typescript","smart-contracts","sui-move","web3"],"install":[{"cmd":"npm install typescript-move","lang":"bash","label":"npm"},{"cmd":"yarn add typescript-move","lang":"bash","label":"yarn"},{"cmd":"pnpm add typescript-move","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Required as a peer dependency for type checking and transpilation pipeline","package":"typescript","optional":false}],"imports":[{"note":"ESM-only; CommonJS require will fail.","wrong":"const typescriptMove = require('typescript-move')","symbol":"default","correct":"import typescriptMove from 'typescript-move'"},{"note":"Named export, not default.","wrong":"import transpile from 'typescript-move'","symbol":"transpile","correct":"import { transpile } from 'typescript-move'"},{"note":"Use directly; no alias needed.","wrong":"import { compile as tsm } from 'typescript-move'","symbol":"compile","correct":"import { compile } from 'typescript-move'"}],"quickstart":{"code":"import { transpile } from 'typescript-move';\n\nconst tsCode = `\nfunction transfer(to: address, amount: u64) {\n  balance.balanceOf(to)\n}\n`;\n\ntranspile(tsCode).then(result => {\n  console.log(result.moveCode);\n}).catch(err => {\n  console.error(err);\n});","lang":"typescript","description":"Transpile a simple TypeScript function to Sui Move using the transpile function."},"warnings":[{"fix":"Use 'transpile' from version 2.x; check docs for migration.","message":"Version 2.0 rewrites transpile API: 'compile' is replaced with 'transpile' and returns a promise.","severity":"breaking","affected_versions":">=2.0"},{"fix":"Refer to the supported syntax documentation on the project site.","message":"Only supports a subset of TypeScript; features like async/await, classes, and decorators are not supported.","severity":"gotcha","affected_versions":">=1.0"},{"fix":"Ensure Node.js version meets requirement.","message":"Requires Node.js >=14; no browser support.","severity":"gotcha","affected_versions":">=1.0"},{"fix":"Replace 'output' with 'format' in config object.","message":"The 'output' option in transpile config is deprecated; use 'format' instead.","severity":"deprecated","affected_versions":">=1.1"}],"env_vars":null,"search_vec":"'1.1.1':25 'activ':27 'allow':11 'avail':33 'blockchain':41,66,71 'bridg':35 'contract':17,50,76 'current':21 'develop':12,28,42 'differenti':54 'document':32 'enabl':43 'familiar':44 'gap':37 'javascript':68 'key':53 'languag':57 'learn':59 'leverag':60 'move':3,8,48,70,79 'new':56 'pattern':46 'smart':16,49,75 'smart-contract':74 'specif':67 'stabl':22 'sui':7,15,52,65,69,78 'sui-mov':77 'syntax':20 'target':63 'tool':62 'transpil':9,72 'typescript':2,5,19,45,61,73 'typescript-mov':1 'use':18 'v2':31 'version':23 'web':39 'web3':80 'write':14","created_at":"2026-05-01T13:50:33.399020+00:00","updated_at":"2026-05-01T13:50:33.399020+00:00","problems":[{"fix":"Run 'npm install typescript-move' and use 'import' syntax.","cause":"Package not installed or ESM context missing.","error":"Cannot find module 'typescript-move'"},{"fix":"Use named import: import { transpile } from 'typescript-move'.","cause":"Using default import instead of named import.","error":"TypeError: transpile is not a function"}],"ecosystem":"npm","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":"","cli_version":null,"type":"library","homepage":null,"github":"https://github.com/MonoracleApp/typescript-move","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/typescript-move","openapi_spec":null,"status_page":null,"smithery":null,"categories":["devops"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-05-01","next_check":"2026-07-30","install_tag":null}}