shift-js/shift-js
Swift to JavaScript transpiler observed · 2026-08-28
Health v2 · maintenance only
32/100
- Activity 0
- Release rhythm 35
- Longevity 100
Flags: no_releases no_license
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 3977
- days_rel: n/a
- days_push: 1173
- n_releases_24m: 0
Adoption not part of the score
1272 stars · 50 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
Shift.JS is a Swift-to-JavaScript transpiler built in JavaScript, with a lexer, parser, and AST-based code generation via Escodegen. It ships as an npm-installable CLI that converts Swift files to JavaScript and can watch files for changes.
Use cases
- transpile swift code to javascript
- convert a .swift file into a runnable js file
- reuse swift logic in a web browser
- watch a swift file and re-transpile on save
- learn how transpilers work via lexer and parser architecture
When to choose
- you have simple Swift code (data types, control flow, functions) you want to run as JavaScript
- you want an npm-based CLI for Swift-to-JS conversion
- you want to study or extend a transpiler codebase
When to avoid
- you need full Swift language or standard library support
- you need actively maintained tooling with a license and recent development
- you need iOS/native Swift compilation rather than transpilation
Facets
cli-tool · maturity maintenance
compiler parser cli developer-tools compilers programming-languages parsers developer-tools web-development cli cross-platform transpiler swift javascript source-to-source-compiler ast lexer nodejs
1 source
- readme: https://github.com/shift-js/shift-js · fetched 2026-08-28 · 2aa5be339801
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| shift-js/shift-js | main | 32 |
For agents
markdown · JSON · MCP: product_card(name="shift-js/shift-js")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem