{"id":19204194,"url":"https://github.com/qlamu/celex","last_synced_at":"2026-06-23T07:31:10.327Z","repository":{"id":260782462,"uuid":"882329734","full_name":"qlamu/celex","owner":"qlamu","description":"Generate Excel / XLSX files from Elixir","archived":false,"fork":false,"pushed_at":"2024-11-04T20:01:58.000Z","size":16,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-01T22:37:40.900Z","etag":null,"topics":["elixir","excel"],"latest_commit_sha":null,"homepage":"","language":"Elixir","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/qlamu.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":"2024-11-02T14:36:36.000Z","updated_at":"2024-11-04T20:40:25.000Z","dependencies_parsed_at":"2024-11-04T20:32:12.583Z","dependency_job_id":"1f117629-5cab-48e2-ab6c-9d0cf734a008","html_url":"https://github.com/qlamu/celex","commit_stats":null,"previous_names":["qlamu/excel_creator","qlamu/excelixir","qlamu/celex"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/qlamu/celex","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qlamu%2Fcelex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qlamu%2Fcelex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qlamu%2Fcelex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qlamu%2Fcelex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/qlamu","download_url":"https://codeload.github.com/qlamu/celex/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qlamu%2Fcelex/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34680620,"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-23T02:00:07.161Z","response_time":65,"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":["elixir","excel"],"created_at":"2024-11-09T13:06:34.965Z","updated_at":"2026-06-23T07:31:10.299Z","avatar_url":"https://github.com/qlamu.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Celex\n\nCelex is a pure Elixir library for creating Excel XLSX files without any external dependencies. It supports multiple worksheets, cell styling, and formulas while maintaining a simple, flexible API.\n\n## Features\n\n- No external dependencies\n- Multiple worksheets support\n- Cell styling (bold, italic, underline, font size, colors)\n- Formula support\n- Flexible input formats\n- Pure Elixir implementation\n- Based on the Office Open XML format\n\n## Installation\n\nAdd celex to your list of dependencies in mix.exs:\n\n```elixir\ndef deps do\n  [\n    {:celex, git: \"https://github.com/qlamu/celex\", tag: \"0.1.0\"}\n  ]\nend\n```\n\n## Usage\n\n### Simple Single Worksheet\n\nFor basic usage, just pass a list of lists:\n\n```elixir\nCelex.create_excel(\"simple.xlsx\", [\n  [\"Name\", \"Age\", \"City\"],\n  [\"John\", 30, \"New York\"],\n  [\"Alice\", 25, \"London\"]\n])\n```\n\n### Multiple Worksheets\n\nCreate multiple worksheets using a map:\n\n```elixir\nCelex.create_excel(\"multi.xlsx\", %{\n  \"Sales\" =\u003e [\n    [\"Product\", \"Amount\"],\n    [\"A\", 100],\n    [\"B\", 200]\n  ],\n  \"Costs\" =\u003e [\n    [\"Product\", \"Cost\"],\n    [\"A\", 50],\n    [\"B\", 80]\n  ]\n})\n```\n\n### Styled Worksheets\n\nFor more control over styling and formatting, use the structured approach:\n\n```elixir\nalias Celex.{Worksheet, Cell}\n\nworksheets = [\n  Worksheet.new(\"Sales\", [\n    [\n      Cell.new(\"Product\", bold: true, background_color: \"FF4F81BD\"),\n      Cell.new(\"Q1\", bold: true, background_color: \"FF4F81BD\"),\n      Cell.new(\"Q2\", bold: true, background_color: \"FF4F81BD\")\n    ],\n    [\"Laptops\", 150_000, 180_000],\n    [\"Phones\", 200_000, 185_000],\n    [\n      Cell.new(\"Total\", bold: true),\n      Cell.new(\"=SUM(B2:B3)\"),\n      Cell.new(\"=SUM(C2:C3)\")\n    ]\n  ]),\n  \n  Worksheet.new(\"Summary\", [\n    [Cell.new(\"Key Metrics\", bold: true, font_size: 14)],\n    [\"Total Q2 Sales\", \"=Sales!C4\"],\n    [\"Average Sales\", \"=AVERAGE(Sales!B2:C3)\"]\n  ])\n]\n\nCelex.create_excel(\"report.xlsx\", worksheets)\n```\n\n## Styling Options\n\nThe `Cell.new/2` function supports the following styling options:\n\n```elixir\nCell.new(value, [\n  bold: true | false,\n  italic: true | false,\n  underline: true | false,\n  font_size: number,\n  font_color: \"FFRRGGBB\",\n  background_color: \"FFRRGGBB\",\n  number_format: \"currency\" | \"long_time\" | \"scientific\" | ...,\n  alignment: \"center\" | \"left\" | \"right\"\n])\n```\n\nExamples:\n\n```elixir\n# Bold red text\nCell.new(\"Important\", bold: true, font_color: \"FFFF0000\")\n\n# Yellow background\nCell.new(\"Highlighted\", background_color: \"FFFFFF00\")\n\n# Multiple styles\nCell.new(\"Header\", [\n  bold: true,\n  font_size: 14,\n  font_color: \"FFFFFFFF\",\n  background_color: \"FF4F81BD\"\n])\n\n# Date\nCell.new(Date.utc_today(), number_format: \"short_date\")\n```\n\n## Formula Support\n\nExcel formulas are supported by prefixing the cell value with \"=\":\n\n```elixir\n# Direct formula\nCell.new(\"=SUM(A1:A10)\")\n\n# Formula referencing other sheets\nCell.new(\"=AVERAGE(Sales!B2:B5)\")\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqlamu%2Fcelex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fqlamu%2Fcelex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqlamu%2Fcelex/lists"}