egoist/asuka
소개
(experimental) Write an app once, it renders native UI widgets on macOS, Windows, Linux, iOS, Android and the Web
웹 및 앱 개발측정된 스타 증가
- in 24h
- 0
- in 7 days
- +14
- in 15 days
- +54
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalAsuka
Apps in the Asuka language with each platform's own widgets, on iOS, Android, macOS, Windows, Linux and the web. Asuka renders with each platform's widgets (UIKit on iOS, Android Views and Material 3 on Android, AppKit on the Mac, Win32 drawn as Windows 11's, GTK 4 and libadwaita on Linux, the DOM in a browser) and updates them with fine-grained signals: a change touches only the views that read it.
[!WARNING] Alpha. Asuka is pre-1.0 and changes daily. There is no API stability, no backwards compatibility, and no migration guide yet.
component Counter {
state count = 0
SafeArea {
align: .center
justify: .center
Text("Count: {count}")
Button("Add") {
variant: .filled
on press { count += 1 }
}
}
}
app { Counter() }
- A language for UI: statically typed, declarative components whose state is bound where it's read, async tasks owned by the component that started them, and errors the compiler sees (a tour of the language).
- A small core in C: signals, layout (flexbox and grid), the view tree and its batches to the platform, and a VM, built for each platform with its own compiler; no garbage collector, no runtime of another language.
- Native controls: stacks and tabs with the platform's navigation, lists, text fields, pickers, sheets, alerts, menus, web views, video, and views of your own in Swift, Kotlin, JavaScript or C (platform packages).
asuka dev: each save compiles the app to bytecode and reloads it in the running app in milliseconds, its state kept: on the simulator, an emulator or a phone, in a browser, or as a window on your Mac, PC or Linux machine.asuka build: the app compiled to C and built with the core: a signed.ipafor the App Store, an.aabfor Google Play, a Mac.app(Apple silicon, or Intel) with its.dmg, a Windows folder, a Linux prefix as a.deb, an.rpm, an AppImage, a.tar.gzand a Flatpak manifest, and a static site with the core as WebAssembly;asuka publishuploads them, numbered after the store's last build, to TestFlight (its groups, App Review) or a Play track.asuka test:testblocks run on a fake host that lays the app out as a phone would, driven by what the screen shows.
Quick start
You need, for phones, Xcode (iOS) or Android Studio with an NDK (Android); for the Mac, Xcode's command line tools; for the web, Zig; Windows LLVM's clang, Linux a C compiler and GTK 4.14 with libadwaita 1.5. See Getting started.
curl -fsSL https://asuka.egoist.dev/install.sh | sh
# Windows, in PowerShell: irm https://asuka.egoist.dev/install.ps1 | iex
asuka new hello
cd hello
asuka dev --target ios # or android, web; on a Mac, PC or Linux, asuka dev alone runs it there
asuka test # its test blocks
See the documentation for the guides, and
examples for apps. The documentation is also in
Chinese (中文文档) and
Japanese (日本語ドキュメント).
License
MIT
관련 프로젝트 살펴보기
불러오는 중…