{"id":20113733,"url":"https://github.com/brantou/ob-crystal","last_synced_at":"2026-06-12T07:33:41.824Z","repository":{"id":90854487,"uuid":"99673831","full_name":"brantou/ob-crystal","owner":"brantou","description":"Org-Babel support for evaluating crystal code.","archived":false,"fork":false,"pushed_at":"2018-01-26T07:54:53.000Z","size":12,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-05-29T08:05:07.286Z","etag":null,"topics":["crystal","emacs-lisp","org-babel"],"latest_commit_sha":null,"homepage":null,"language":"Emacs Lisp","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/brantou.png","metadata":{"files":{"readme":"README.org","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2017-08-08T09:13:06.000Z","updated_at":"2022-10-15T12:06:52.000Z","dependencies_parsed_at":null,"dependency_job_id":"d78a7b1f-a813-4a77-8b52-efd97d10d56d","html_url":"https://github.com/brantou/ob-crystal","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/brantou/ob-crystal","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brantou%2Fob-crystal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brantou%2Fob-crystal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brantou%2Fob-crystal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brantou%2Fob-crystal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/brantou","download_url":"https://codeload.github.com/brantou/ob-crystal/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brantou%2Fob-crystal/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34234557,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-12T02:00:06.859Z","response_time":109,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["crystal","emacs-lisp","org-babel"],"created_at":"2024-11-13T18:25:36.376Z","updated_at":"2026-06-12T07:33:41.807Z","avatar_url":"https://github.com/brantou.png","language":"Emacs Lisp","funding_links":[],"categories":[],"sub_categories":[],"readme":"#+TITLE: ob-crystal\n[[https://travis-ci.org/brantou/ob-crystal][file:https://travis-ci.org/brantou/ob-crystal.svg?branch=master]][[https://melpa.org/#/ob-crystal][file:https://melpa.org/packages/ob-crystal-badge.svg]]\n\n* Introduction\n  :PROPERTIES:\n  :ID:       f77166b9-b12f-4d0b-899e-f2775a36c6fa\n  :END:\n\n  =ob-crystal= enables [[http://orgmode.org/worg/org-contrib/babel/intro.html][Org-Babel]] support for evaluating [[https://crystal-lang.org/][Crystal]] code.\n  It was created based on the usage of [[./ob-template.el][ob-template]].\n\n  #+BEGIN_SRC crystal\n  \"hello world\"\n  #+END_SRC\n\n  #+RESULTS:\n  : hello world\n\n* Examples\n  :PROPERTIES:\n  :ID:       f35f7535-4a10-4e8e-9c41-71d24e1a5aaf\n  :END:\n** variables\n   :PROPERTIES:\n   :ID:       e4f5eca1-cbd3-4a46-a8f3-ba92a2b869f6\n   :END:\n  : #+BEGIN_SRC crystal :var a=3 b=4\n  :   a+b\n  : #+END_SRC\n\n  : #+RESULTS:\n  : : 7\n** table and list\n   :PROPERTIES:\n   :ID:       58b80b9d-3337-4d7a-9872-3d88db8d3122\n   :END:\n  : #+NAME: tel-note\n  : | name  |    tel |\n  : |-------+--------|\n  : | brant | 170... |\n  : | ou    | 138... |\n\n  : #+BEGIN_SRC crystal :var tb=tel-note :results output table\n  :   puts tb\n  : #+END_SRC\n\n  : #+RESULTS:\n  : | brant | 170... |\n  : | ou    | 138... |\n\n  : #+BEGIN_SRC crystal :var lst='(1 2 3) :results output\n  :   puts lst\n  :   puts num for num in lst\n  : #+END_SRC\n\n  : #+RESULTS:\n  : : [ 1, 2, 3 ]\n  : : 1\n  : : 2\n  : : 3\n\n** literate programming\n   :PROPERTIES:\n   :ID:       a36c1ddb-7e37-4ffe-9399-3e8afabd8d51\n   :END:\n   : #+NAME: square\n   : #+BEGIN_SRC crystal\n   :   def square(x)\n   :      x * x\n   :   end\n   : #+END_SRC\n\n   : #+NAME: calc-square\n   : #+BEGIN_SRC crystal  :var x=0 :noweb strip-export :results output\n   : \u003c\u003csquare\u003e\u003e\n   : puts square(x)\n   : #+END_SRC\n\n   : #+CALL: calc-square(x=5)\n\n   : #+RESULTS:\n   : : 25\n\n* Running tests\n  :PROPERTIES:\n  :ID:       4cacd904-edb6-407e-9359-c6c2b05d45a9\n  :END:\n\n  Tests can be executed by /make test/ or invoking emacs directly with\n  the command-line below:\n\n  #+BEGIN_SRC shell\n    emacs -Q --batch -q \\\n          -L . \\\n          -l ob-crystal.el \\\n          -l test-ob-crystal.el \\\n          --eval \"(progn \\\n                    (setq org-confirm-babel-evaluate nil) \\\n                    (org-babel-do-load-languages \\\n                      'org-babel-load-languages '((emacs-lisp . t) \\\n                                                  (sh . t) \\\n                                                  (org . t) \\\n                                                  (crystal . t))))\" \\\n          -f ob-crystal-test-runall\n  #+END_SRC\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrantou%2Fob-crystal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrantou%2Fob-crystal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrantou%2Fob-crystal/lists"}