rodloboz
Sometime ago I had a Phoenix project where – among other reasons – I ended up switching the FE to React so I could use kbar lib. But in a lot of projects Phoenix LiveView is good and plenty, so I’m releasing a ⌘K command palette: so that we don’t have to wire a JS library to LiveView by hand.
Introducing Jumon (呪文, “spell”), a command palette for Phoenix that supports:
-
actions that navigate, patch, push an event, run JS commands, open a link, copy, or run a function on the server
-
one
Commandsmodule with the actions of your app, read for each socket, so each person sees what they may do -
actions of the LiveView you’re on, which leave with it
-
searches of the server as you type, the slow ones in a task
-
pages of children, and actions that ask for their arguments (a choice, a search, a text) before they run
-
fuzzy search that forgives a typo and ignores accents, the same in the browser and in Elixir (
Jumon.Match) -
keyboard shortcuts and sequences like
g h, with?for a page of them all -
“Recent” and frecency, in the browser or in your database with Ecto (Postgres or SQLite)
-
Jumon.Testto search and run actions in LiveViewTest without a browser
Like Kotoba and Koyomi, it ships as a prebuilt bundle in the Hex package, so no Node.js: mix jumon.install adds the hook and one stylesheet.
Your app’s actions, with sections, icons and shortcuts
Search the server as you type, typos included
Give results their own actions
Open pages of children
Ask for arguments before an action runs, checked again on the server
And list every shortcut
All the screenshots are from Notebook, the demo app I also use for Kotoba and Koyomi. Clone it, run mix setup and mix phx.server, and press ⌘K.
Would love to get your feedback and if you find bugs or have feature requests Issues are open and PRs are welcome.
Trending in Announcing
Other Trending Topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #library
- #deployment
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #elixirconf
- #channels
- #exunit
- #code-sync
- #discussion
- #podcasts
- #javascript
- #onsite
- #dialyzer
- #docker
- #authentication
- #ai
- #elixirconf-us
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #blog-post
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #graphql
- #genstage
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #security
- #elixirconf-eu
- #processes
- #api
- #forms
- #hex
















