{"id":26207462,"url":"https://github.com/oelin/codem","last_synced_at":"2026-04-29T10:33:49.382Z","repository":{"id":89778625,"uuid":"586657420","full_name":"oelin/codem","owner":"oelin","description":"A simple YAML-based code-in-markdown compiler.","archived":false,"fork":false,"pushed_at":"2023-01-26T02:16:35.000Z","size":8,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-01T16:31:48.243Z","etag":null,"topics":["build-tool","code-in-markdown","compiler","documentation","python","yaml"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/oelin.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":"2023-01-08T22:05:59.000Z","updated_at":"2023-01-25T23:28:49.000Z","dependencies_parsed_at":null,"dependency_job_id":"f67a12ae-64ef-42a1-825d-75664b2d1467","html_url":"https://github.com/oelin/codem","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/oelin/codem","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oelin%2Fcodem","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oelin%2Fcodem/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oelin%2Fcodem/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oelin%2Fcodem/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oelin","download_url":"https://codeload.github.com/oelin/codem/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oelin%2Fcodem/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32421913,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T06:29:02.080Z","status":"ssl_error","status_checked_at":"2026-04-29T06:29:00.631Z","response_time":110,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["build-tool","code-in-markdown","compiler","documentation","python","yaml"],"created_at":"2025-03-12T05:32:40.542Z","updated_at":"2026-04-29T10:33:49.377Z","avatar_url":"https://github.com/oelin.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CodeM\n\n\n\n## Introduction\n\nCodeM is a simple code-in-markdown compiler written in Python, and configurable using YAML. Code-in-markdown is a documentation style where source code and documentation are written side-by-side in markdown (`.md`) files. This format closely resembles notebooks commonly used in scientific computing contexts. CodeM works by stripping all non-source-code sections from a markdown file, leaving only interpretable code. For instance, consider the following code-in-markdown file:\n\n\u003cpre\u003e\n# The `add()` function\n\nThis function adds two numbers together.\n\n```py\ndef add(x, y):\n  return x + y\n```\n\nLorem ipsum...\n\u003c/pre\u003e\n\nAfter compilation, CodeM will produce the following source file:\n\n```py\ndef add(x, y):\n  return x + y\n```\n\n## Configuration\n\nCodeM uses YAML to specify transformation rules on source and target files. For instance, the following `codem.yaml` file instructs CodeM to convert all `md` files in `./app` to `js` files in `src`.\n\n```yaml\n# Codem Configuraton File\n\noutput: src\n\nrules:\n        - name: JavaScript Rule\n          from: md\n          to: js\n          locations:\n                  - ./app\n```\n\nA full specification of CodeM YAML directives will be added to this section shortly.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foelin%2Fcodem","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foelin%2Fcodem","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foelin%2Fcodem/lists"}