{"id":15229077,"url":"https://github.com/univalence/zio-notion","last_synced_at":"2025-04-10T01:14:35.054Z","repository":{"id":37085322,"uuid":"484454398","full_name":"univalence/zio-notion","owner":"univalence","description":"A strongly typed interface to interact with Notion using ZIO","archived":false,"fork":false,"pushed_at":"2025-03-10T22:47:37.000Z","size":2537,"stargazers_count":7,"open_issues_count":19,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-10T01:14:26.497Z","etag":null,"topics":["fp","notion","scala","zio"],"latest_commit_sha":null,"homepage":"","language":"Scala","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/univalence.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-04-22T14:00:35.000Z","updated_at":"2024-11-25T23:23:39.000Z","dependencies_parsed_at":"2023-11-18T08:25:20.782Z","dependency_job_id":"e1c805fb-08c7-41e4-b77f-f61f8c8e0017","html_url":"https://github.com/univalence/zio-notion","commit_stats":{"total_commits":190,"total_committers":8,"mean_commits":23.75,"dds":0.7,"last_synced_commit":"b485e5fbf88d66b3aa6066e418d1aed144cf9429"},"previous_names":[],"tags_count":18,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/univalence%2Fzio-notion","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/univalence%2Fzio-notion/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/univalence%2Fzio-notion/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/univalence%2Fzio-notion/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/univalence","download_url":"https://codeload.github.com/univalence/zio-notion/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248137891,"owners_count":21053775,"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":["fp","notion","scala","zio"],"created_at":"2024-09-29T00:06:53.303Z","updated_at":"2025-04-10T01:14:35.038Z","avatar_url":"https://github.com/univalence.png","language":"Scala","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003eZIO Notion\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://img.shields.io/badge/Project%20Stage-Development-yellowgreen.svg\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/Project%20Stage-Development-yellowgreen.svg\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/univalence/zio-notion/actions\"\u003e\n    \u003cimg src=\"https://github.com/univalence/zio-notion/actions/workflows/ci.yml/badge.svg\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://codecov.io/gh/univalence/zio-notion\"\u003e\n    \u003cimg src=\"https://codecov.io/gh/univalence/zio-notion/branch/master/graph/badge.svg\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://scala-steward.org\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/Scala_Steward-helping-blue.svg?style=flat\u0026logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAQCAMAAAARSr4IAAAAVFBMVEUAAACHjojlOy5NWlrKzcYRKjGFjIbp293YycuLa3pYY2LSqql4f3pCUFTgSjNodYRmcXUsPD/NTTbjRS+2jomhgnzNc223cGvZS0HaSD0XLjbaSjElhIr+AAAAAXRSTlMAQObYZgAAAHlJREFUCNdNyosOwyAIhWHAQS1Vt7a77/3fcxxdmv0xwmckutAR1nkm4ggbyEcg/wWmlGLDAA3oL50xi6fk5ffZ3E2E3QfZDCcCN2YtbEWZt+Drc6u6rlqv7Uk0LdKqqr5rk2UCRXOk0vmQKGfc94nOJyQjouF9H/wCc9gECEYfONoAAAAASUVORK5CYII=\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://index.scala-lang.org/univalence/zio-notion/zio-notion\"\u003e\n    \u003cimg src=\"https://index.scala-lang.org/univalence/zio-notion/zio-notion/latest-by-scala-version.svg?platform=jvm\" /\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n    A strongly typed interface to interact with Notion using ZIO\n\u003c/p\u003e\n\n## Documentation\n\nYou can find the documentation of zio-notion [here](https://univalence.github.io/zio-notion/).\n\n## Example\n\n```scala\nimport zio._\nimport zio.notion._\nimport zio.notion.dsl._\n\nimport java.time.LocalDate\n\nobject UpdatePage extends ZIOAppDefault {\n  def example: ZIO[Notion, NotionError, Unit] = {\n    val date = LocalDate.of(2022, 2, 2)\n    \n    // Apply the following operations to the page:\n    //   - Apply the ceil function to the value contained in \"col1\"\n    //   - Set the date between 2022-02-02 and 2022-02-16 in \"col2\"\n    //   - Archive the page\n    val operations = $\"col1\".asNumber.patch.ceil ++ $\"col2\".asDate.patch.between(date, date.plusDays(14)) ++ archive\n\n    for {\n      page \u003c- Notion.retrievePage(\"6A074793-D735-4BF6-9159-24351D239BBC\") // Insert your own page ID\n      _    \u003c- Notion.updatePage(page, operations)\n    } yield ()\n  }\n\n  override def run =\n    example.provide(Notion.layerWith(\"6A074793-D735-4BF6-9159-24351D239BBC\")) // Insert your own bearer\n}\n```\n\nWe provide [other examples](https://github.com/univalence/zio-notion/tree/master/examples) in this repository.\n\n## Features\n\n### Page\n\n- You can update a page\n- You can retrieve a page\n- You can archive a page\n- You can create a page\n\n### Database\n\n- You can update a database\n- You can retrieve a database\n- You can query a database\n- You can create a database (without blocks for the moment)\n\n### Block\n\n- You can retrieve a block\n- You can retrieve blocks of a page\n- ~~You can update a block~~ 🕦 COMING SOON\n- ~~You can delete a block~~ 🕦 COMING SOON\n- You can append a block\n\n### User\n\n- You can retrieve a user\n- You can list users\n- ~~You can retrieve your token's bot user~~ 🕦 COMING SOON\n\n### Search\n\n🕦 COMING SOON\n\n## Latest version\n\nIf you want to get the very last version of this library you can still download it using:\n\n```scala\nlibraryDependencies += \"io.univalence\" %% \"zio-notion\" % \"0.9.3\"\n```\n\n### Snapshots\n\nIf you want to get the latest snapshots (the version associated with the last commit on master), you can still download\nit using:\n\n```scala\nresolvers += Resolver.sonatypeRepo(\"snapshots\"),\nlibraryDependencies += \"io.univalence\" %% \"zio-notion\" % \"\u003cSNAPSHOT-VERSION\u003e\"\n```\n\nYou can find the latest version on\n[nexus repository manager](https://oss.sonatype.org/#nexus-search;gav~io.univalence~zio-notion_2.13~~~~kw,versionexpand).\n\n## Contributions\n\nPull requests are welcomed. We are open to organize pair-programming session to tackle improvements. If you want to add\nnew things in `zio-notion`, don't hesitate to open an issue!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funivalence%2Fzio-notion","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Funivalence%2Fzio-notion","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funivalence%2Fzio-notion/lists"}