8000 GitHub - OxyHQ/Bloom: Bloom — Oxy's cross-platform UI component library · GitHub
[go: up one dir, main page]

Skip to content
OxyHQPublic

About

Bloom — Oxy's cross-platform UI component library

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

4 stars

Watchers

0 watching

Forks

Latest commit

 

History

2,202 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bloom

Bloom is a declarative programming language for apps. You describe screens in .bloom files and the Bloom compiler builds them as a native Android app (Jetpack Compose) and as a web app (the DOM, with no React). BloomUI is Bloom's declarative UI framework: the views, modifiers and design tokens those files use, plus the Bloom modules in packages/bloom-ui.

Bloom is made by Oxy; Gemies is built with it.

What state it is in

  • Now: Android (Compose) and web (DOM). bloom build android and bloom build web compile a standalone package. The compiler's test suite and the Gemies native app exercise both.
  • Later: iOS and OxyOS. The compiler contains a SwiftUI backend and bloom build ios, but iOS is not the current target: the Swift work waits in archived branches until Android and web are done (audit).
  • Known gaps are written down, not hidden: native gaps and the open work by theme in open pull requests.
  • This repository still contains the old React library. The React Native kit published as @oxy.so/bloom (src/, android/, ios/) and the compiler's react target are a legacy runtime: the parity oracle the compiler is checked against, and the compatibility path for apps that still have a React host (Mention, Gemies RN). They are still built, tested and published; they are not where new work goes. They go when those apps leave the react target. See the legacy runtime (the old README, install and provider setup included) and the removal plan.

Start an app

You need a Rust toolchain and Bun. Install the command from this checkout:

cargo install --locked --path packages/bloom-language-compiler/crates/bloomc --bin bloom
bloom new MyApp
cd MyApp
bloom check              # the manifest and every module
bloom run web            # builds, then prints a loopback URL (PORT chooses the port)
bloom build web          # static files in .bloom/dist/web/
bloom build android      # a Compose app; --generate writes the project only, --release builds a release
bloom run android
bloom test               # the package's .tests targets

A package is Package.bloom (the manifest), Sources/<Name>/App.bloom and Tests/. Android builds need the Android SDK 37, JDK 17 or later and Gradle 9.4.1 (details). The whole command line, modules, bindings and tests are in the toolchain guide. A complete example package is packages/bloom-language-compiler/examples/Demo.

The repository

Path What it is
packages/bloom-language-compiler the compiler and bloom command (Rust): checker, DOM backend, Kotlin/Compose backend and its runtime
packages/bloom-language the language's TypeScript runtime, the DOM renderer, tokens and generators
packages/bloom-ui BloomUI as Bloom modules (Package.bloom)
packages/bloom-theme-engine the colour engine, written in Bloom
packages/bloom-data, bloom-text, bloom-editor data stores, native rich text and the block editor
packages/bloom-language-codemod moves React/JSX code to .bloom where the result stays identical
packages/bloom-vscode, bloom-tmlanguage, highlightjs-bloom, prism-bloom, tree-sitter-bloom editor and highlighter support for .bloom
docs/ the language reference, the toolchain guide and the decision records (docs/adr)
src/, android/, ios/, templates/ the legacy React runtime (see above)

Words we use

A bar at the top or bottom of a screen is a toolbar (a top toolbar, a bottom toolbar), never a header or a footer (toolbar naming). Bloom is the language; BloomUI is its UI framework.

Working on Bloom

cd packages/bloom-language-compiler && cargo test --workspace   # the compiler; `bun run test` runs the full gate
cd packages/bloom-language && bun run test:unit                 # the language runtime
cd packages/bloom-language && bun run generate:dom --check      # generated DOM tables up to date

See CONTRIBUTING.md and AGENTS.md. Changes go in as changes/<topic>.md fragments; only a release edits a CHANGELOG.md or a version.

Documentation

Docs index · Toolchain · Language guide · Specification · Standard library · Modifiers · Getting started · For agents

License

The Breathe License 1.0, The Oxy Collective, Inc.

About

Bloom — Oxy's cross-platform UI component library

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

4 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages

0