# Astra - 가볍고 빠른 JavaScript-To-EXE 컴파일러

> Clean Markdown view of GeekNews topic #21182. Use the original source for factual precision when an external source URL is present.

## Metadata

- GeekNews HTML: [https://news.hada.io/topic?id=21182](https://news.hada.io/topic?id=21182)
- GeekNews Markdown: [https://news.hada.io/topic/21182.md](https://news.hada.io/topic/21182.md)
- Type: news
- Author: [xguru](https://news.hada.io/@xguru)
- Published: 2025-05-30T09:21:01+09:00
- Updated: 2025-05-30T09:21:01+09:00
- Original source: [github.com/astracompiler](https://github.com/astracompiler/cli)
- Points: 22
- Comments: 3

## Summary

Astra는 **JavaScript/TypeScript 애플리케이션**을 하나의 **실행 파일로 빠르게 컴파일**하는 경량 도구이며, 기존 `pkg`, `nexe`와 달리 **esbuild 기반**의 독자적 방식을 적용합니다. 개발자는 **최신 Node.js, ESM 모듈, 실행 파일 메타데이터**를 자유롭게 활용하면서 결과물 용량도 효과적으로 줄일 수 있습니다. 현재 **Windows**만 지원하며, macOS와 Linux는 향후 추가할 예정입니다.

## Topic Body

- JavaScript/TypeScript 기반 애플리케이션을 **단일 실행 파일(.exe)로 컴파일**하는 경량 도구  
  - 특히 CLI 도구나 서버 앱(Express, Fastify 등)을 타겟으로 함 (**Electron 대체용이 아님**)  
- 기존 `pkg`, `nexe`와 완전히 다른 컴파일 방식을 사용. Node.js SEA의 제한들도 우회  
- `esbuild` 기반으로 **컴파일 속도가 매우 빠르며**, 평균 결과물 크기는 70–80MB, `upx` 사용 시 30MB대까지 줄어듦  
- **최신 Node.js 버전 및 ESM 모듈** 지원  
- **실행 파일의 아이콘, 이름, 버전 정보 등 메타데이터**를 커스터마이징 가능하며, **개발자 경험이 우수함**  
- 현재는 **Windows 전용**이며, macOS 및 Linux 지원은 개발 중임

## Comments



### Comment 39612

- Author: q8840
- Created: 2025-06-01T20:20:47+09:00
- Points: 1

pyinstaller처럼 동작하나요?

### Comment 39541

- Author: striga
- Created: 2025-05-30T14:51:37+09:00
- Points: 1

오 드디어 이런게 나오네요

### Comment 39550

- Author: pompydev
- Created: 2025-05-30T18:31:36+09:00
- Points: 2
- Parent comment: 39541
- Depth: 1

[deno compile](https://docs.deno.com/runtime/reference/cli/compile/)도 함께 보시면 좋을것 같습니다. 이미 Next.js 등의 프론트엔드 메타프레임워크로 만든 앱을 단일 바이너리로 컴파일해 배포할 수 있으며 유저 어플리케이션을 위한 Code signing, 윈도우/맥/리눅스 호환, Cross compilation 등의 기능도 지원하고 있습니다.
