A collection of Clojure/(Script) namespaces and functions that the team at Bloom Ventures uses across nearly all projects.
Omni is our web framework. Commons is our kitchen-sink of half-baked libraries. Take what you want from it.
We are open-sourcing for the sake of transparency (because we have open-sourced several of our apps that use Commons).
| bloom.commons.* | |
|---|---|
| BACKEND (.clj) | |
aws.core/* | some fns to enable the s3 namespace |
aws.s3.core/* | fns to get signed-urls for, upload, and delete files on s3 |
env/get | reading config from env or config.edn (deprecated, use config.clj) |
file_db/* | "db" based on edn files in folders |
html/render | hiccup render w/ various reagent extensions |
magic-token/* | fns for creating and validating magic tokens (2fa) |
muuntaja/options | muuntaja options adding support for date-time |
textify/textify | hiccup to plain text |
thread-safe-io/* | thread-safe spit slurp and transact |
cache/make-cache-middleware | ring middleware that caches endpoints to disk |
config/read | read a config.edn with malli schemas (and reader macro for env) |
crypto/slow= | constant-time comparison check |
| FRONT AND BACK END (.cljc) | |
geo/* | distance and to-radians |
debounce/* | cljc debounce and debounce-by |
fontawesome/* | all free icons from 5.15.4 as hiccup/reagent components (relying on tree-shaking to make this reasonable), ex. fa-cart-plus-solid |
pages/* | page lib, based on reitit |
query_params/* | util fns for creating and parsing query-params |
slugify/slugify | turn a UTF-8 string to [a-z0-9-] |
specter/key= | specter navigator |
transit_datetime/* | transit handlers for java.time objects |
uuid/* | cljc uuid-v4 and uuid-v7 (as random) |
| FRONT-END (.cljs) | |
aws.s3.media_element/* | reagent components that display an s3 file (w/ support for requesting a signed URL from the backend) |
datetime/format | datetime formatting with cljs-time |
ajax/request | ajax wired up with transit-json |
ui.google_map/google-map-view | reagent google map component |
ui.textarea/textarea | reagent auto-resizing textarea |
ui.emoji_favicon/emoji-favicon | reagent component that sets an emoji as the favicon at run time |
| TADA INCUBATOR | |
tada.rpc.client/make-dispatch | send tada events using transit to a single endpoint |
tada.rpc.server/make-handler | handle tada events using transit in a single endpoint |
Can you improve this documentation?Edit on GitHub
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |