Skip to content

BlastLauncher/blast

Repository files navigation

Blast Launcher (aka C8763)

Blast is an open-source educational and experimental project that aims to utilize the extension ecosystem of Raycast Launcher

Raycast is a SaaS software, while providing paid subscription services for teams, for personal is copmletely free. You can also extend your workflow by building extensions on your own. The extensions are implemented using custom React components(@raycast/api), and each command within an extension can be thought of as a separate React application. I think that's the magic of Raycast, where everyone can easily build and integrate their own tools without much effors on top of the huge Node.js and React.js ecosystem.

While Raycast is great, it is a closed-source software and the extension ecosystem can only be used in Raycast. So here's where this project comes in.

Blast provides an open-source React renderer to render these Raycast extensions.

Demo

demo_todo

Architecture

Blast uses the following components:

  • Node.js to write the backend and implement a custom React renderer with react-reconciler
  • Electron & React.js to write the front end and render the React element tree as HTML
  • Use rpc-websockets to communicate between the backend and front end

In the architecture of Blast, the backend uses Node.js and the react-reconciler package to implement a custom React renderer. The element tree created during this process is then emitted as a JSON object tree to the front end, which is an Electron app built with React.js and rendered as HTML. While the front end is built with React, it is also framework agnostic as it can accept the plain JSON element tree from the backend.

For higher performance, a custom renderer such as React-native may send operations to the host app to build a shadow element tree alongside the renderer. However, Blast was designed for educational and experimental purposes and therefore emits the entire element tree as JSON during the resetAfterCommit phase, which is called every time the component is updated. This is less performant but sufficient for the needs of this project as the component tree is not complex and high performance is not required.

You can learn more about the blast architecture in the following documents:

Development

# Ensure you have pnpm installed
pnpm install

# Start backend in dev mode
pnpm run start-runtime:dev

# Start front end in dev mode
pnpm run start-client

Updated: new development script for the WIP process model(#30)

cd packages/blast-runtime
pnpm run build:esbuild
node dist/run.cjs

Inspiration and related projects

  • SunbeamLauncher: A frontend agnostic Launcher app, written in Go, and you can write extensions in any language.
  • ⌘K, cmdk: A React.js Component to build Launcher app UI. The front end of Blast is based on this project. The author also provided several launcher themes, such as Linear, Raycast and Vercel, but they are only for demo purposes so you need to modify them to use.

FAQs

Why naming blast?

Our Chief Marketing Officer(nickname ChatGPT) gave me this idea.

I was asking him to come up with words similar to "raycast".

Why C8763?

星爆臉素材

Blast(爆破)應該滿星爆的吧!但星爆氣流斬原文是 starburst stream。算了。

Learning Resources

License

MIT