rodloboz

rodloboz

After Kotoba, the next thing I wanted to build for Phoenix projects was dates. The browser’s date input looks different everywhere, doesn’t do ranges, and the moment you need “only weekdays” or “pick a free time slot” you end up pulling in a JS date picker and wiring it to LiveView by hand.

So I built Koyomi (暦, “calendar”), date pickers for Phoenix that support:

  • a day, a range, several days, a month, an ISO week, a year, a time and a day + time (in a time zone)
  • repeat rules (RFC 5545 RRULE)
  • dates typed in words: “next friday”, “in 3 weeks”, “15–20 mar”
  • any locale and the browser’s calendar systems (Japanese, Persian, Hebrew…), with the locale’s first day of the week, digits and direction
  • the same rules in the browser and in your changeset
  • Ecto types, including Postgres daterange/tstzrange, and text or JSON for SQLite and MySQL
  • Koyomi.Test to pick values in LiveViewTest without a browser

The pickers ship as a prebuilt bundle in the Hex package, so no Node.js: you add the hook and one stylesheet.

Type dates in words and get a preview

Pick ranges across months

Offer time slots from your LiveView, and the rules disable what your changeset refuses

Build repeat rules and see the next dates

And read them back on the server

All the screenshots are from Notebook, the demo app I also use for Kotoba. Clone it, run mix setup and mix phx.server to try every picker.

Same as with Kotoba, I pushed hard for a rich feature set and nice default styles. Would love to get your feedback and if you find bugs or have feature requests Issues are open and PRs are welcome.

Showing Posts 1 to 5

roeland

roeland

Nice, this was on my list after AddToCalendar - server-side "add to calendar" links + ICS generation for Phoenix LiveView . I will take a look at it to see if it matches what I need and contribute otherwise. Thanks!

rodloboz

rodloboz OP

Thanks! Any contributions to improve it are welcome :slight_smile:

widianto

widianto

Nice work. Thanks!

Starred it.

rodloboz

rodloboz OP

Thanks @widianto :folded_hands:

abrookewood

abrookewood

That looks incredible.

— All posts loaded —

Where Next? Top

Trending in Announcing Top

achempion
Hi, I would like to tell about my initiative to further maintain and develop Waffle project which is the fork of Arc library. The progre...
New
mudasobwa
I fully migrated to my own harness from Anthropic/Gemini and I think it’s time to share it. Welcome DSH, the DeepSeek Harness, fully writ...
New
kip
Localize is the next generation localisation library for Elixir. Think of it as ex_cldr version 3.0. The first version will be released ...
New
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
mcass19
ExRatatui lets you cook up rich terminal UIs in Elixir, powered by Rust’s ratatui via Rustler NIFs. Build interactive terminal applicatio...
New
gtcode
Aloha gang, There’s a new class of AI model out from TypeSafe. Jev is their flagship model. You can learn about it here: ...
New
danschultzer
I’ve moved the strategies out of PowAssent and created a multi-provider framework for Elixir. This way the strategies can be used in any ...
New

Other Trending Topics Top

dominicletz
Hey there, I haven’t seen a list of useful Elixir specific skills for the popular AI tools yet so I’m starting one here with my first. ...
New
raa-ziq
Hi everyone :waving_hand: I wanted to share something I’ve been building — NowBlind, a random chat app designed to help people discover ...
New
OndrejValenta
(I just needed to vent somewhere and LinkedIn is full of hope, or hype, I’m not sure which exactly) AI dream has many faces, but general...
New
AstonJ
With advancements in AI gathering pace and set to increasingly accelerate, perhaps it’s worth having an annual thread on the topic - feel...
New
bartblast
If you haven’t tried Hologram yet, what’s stopped you? Here’s why I’m asking. Building a framework turns out to be two jobs, the framewo...
New
mat-hek
Popcorn, the library that runs Elixir code in the browser, is now stable :popcorn: This is possible because it now builds on a very stab...
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews