{"id":13829703,"url":"https://github.com/SMX-LTD/re-frame-cookie-fx","last_synced_at":"2025-07-09T10:31:23.698Z","repository":{"id":62431959,"uuid":"65775255","full_name":"SMX-LTD/re-frame-cookie-fx","owner":"SMX-LTD","description":"Om nom nom nom.","archived":false,"fork":false,"pushed_at":"2017-10-31T20:12:02.000Z","size":11,"stargazers_count":20,"open_issues_count":3,"forks_count":8,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-08-05T10:08:54.116Z","etag":null,"topics":["re-frame"],"latest_commit_sha":null,"homepage":null,"language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SMX-LTD.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-08-16T00:54:03.000Z","updated_at":"2021-08-03T14:17:32.000Z","dependencies_parsed_at":"2022-11-01T20:47:12.771Z","dependency_job_id":null,"html_url":"https://github.com/SMX-LTD/re-frame-cookie-fx","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SMX-LTD%2Fre-frame-cookie-fx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SMX-LTD%2Fre-frame-cookie-fx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SMX-LTD%2Fre-frame-cookie-fx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SMX-LTD%2Fre-frame-cookie-fx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SMX-LTD","download_url":"https://codeload.github.com/SMX-LTD/re-frame-cookie-fx/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225533017,"owners_count":17484179,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["re-frame"],"created_at":"2024-08-04T10:00:43.091Z","updated_at":"2024-11-20T10:31:03.827Z","avatar_url":"https://github.com/SMX-LTD.png","language":"HTML","funding_links":[],"categories":["Tools"],"sub_categories":["Effect Handlers"],"readme":"# Cookies Effects Handler for re-frame\n\n\u003e Om Nom Nom Nom - Cookie Monster, Sesame Street\n\nHerein a re-frame [\"Effects Handler\"](https://github.com/Day8/re-frame/wiki/Effectful-Event-Handlers),\nwhich enables various [cookie](https://en.wikipedia.org/wiki/HTTP_cookie)\noperations using [goog.net.Cookies](http://google.github.io/closure-library/api/goog.net.Cookies.html).\n\n## Quick Start\n\n### 1. Add Dependency\n\n[![Clojars Project](https://img.shields.io/clojars/v/com.smxemail/re-frame-cookie-fx.svg)](https://clojars.org/com.smxemail/re-frame-cookie-fx)\n\n### 2. Registration \u0026 Use\n\nIn the namespace where you register your event handlers, prehaps called\n`handlers.cljs`, you have two things to do:\n\nFirst, add this `require` to the `ns`:\n```clj\n(ns app.handlers\n  (:require\n    ...\n    [com.smxemail.re-frame-cookie-fx]    ;; \u003c-- add this\n    ...))\n```\n\nSecond, write an event handler which uses this effect:\n```clj\n(reg-event-fx\n  :handler-with-cookies\n  (fn [{:keys [db]} _]\n    {:cookie/set {:name \"cookie-monster-says\"\n                  :value \"Om Nom Nom Nom!\"}}))\n```\n\nOther supported effects include the below which are documented in the source:\n- `:cookie/remove`\n- `:cookie/clear`\n\nTo use a coeffect:\n```clj\n(reg-event-fx\n  :handler-with-cookie-cofx\n  [(inject-cofx :cookie/get [:cookie-monster-says])]\n  (fn [{db :db cookies :cookie/get} _]\n        ...\n```\n\nOther supported coeffects include the below which are documented in the source:\n- `:cookie/enabled?`\n- `:cookie/empty?`\n- `:cookie/keys`\n- `:cookie/values`\n- `:cookie/count`\n\n## Authors\n\n- [Isaac Johnston](@superstructor)\n- [Abhishek Reddy](@arbscht)\n\n## License\n\nCopyright \u0026copy; 2016 SMX Ltd.\n\nDistributed under the Eclipse Public License, the same as Clojure.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FSMX-LTD%2Fre-frame-cookie-fx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FSMX-LTD%2Fre-frame-cookie-fx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FSMX-LTD%2Fre-frame-cookie-fx/lists"}