{"id":51409834,"url":"https://github.com/laveez/timelines","last_synced_at":"2026-07-04T14:03:09.105Z","repository":{"id":353327805,"uuid":"1217004296","full_name":"laveez/timelines","owner":"laveez","description":"CSVs to timelines visualizer","archived":false,"fork":false,"pushed_at":"2026-05-07T21:24:10.000Z","size":119,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-07T23:29:47.592Z","etag":null,"topics":["cli","csv","gantt","pyodide","python","react","schedule","svg","timeline","visualization"],"latest_commit_sha":null,"homepage":"https://laveez.github.io/timelines/","language":"TypeScript","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/laveez.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":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-04-21T12:57:47.000Z","updated_at":"2026-05-07T21:24:14.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/laveez/timelines","commit_stats":null,"previous_names":["laveez/timelines"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/laveez/timelines","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laveez%2Ftimelines","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laveez%2Ftimelines/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laveez%2Ftimelines/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laveez%2Ftimelines/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/laveez","download_url":"https://codeload.github.com/laveez/timelines/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laveez%2Ftimelines/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35124130,"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-07-04T02:00:05.987Z","response_time":113,"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":["cli","csv","gantt","pyodide","python","react","schedule","svg","timeline","visualization"],"created_at":"2026-07-04T14:03:08.649Z","updated_at":"2026-07-04T14:03:09.100Z","avatar_url":"https://github.com/laveez.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\n# Timelines\n\n**CSVs to timelines**\n\nRender people-and-period CSVs as standalone HTML and SVG timelines. Runs as a Python CLI with zero third-party dependencies, or in the browser via Pyodide.\n\n[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg?style=flat-square)](LICENSE)\n[![Python 3.10+](https://img.shields.io/badge/Python-3.10%2B-brightgreen?style=flat-square)](https://www.python.org/downloads/)\n[![No dependencies](https://img.shields.io/badge/deps-0-brightgreen?style=flat-square)](pyproject.toml)\n[![Try it online](https://img.shields.io/badge/live-laveez.github.io%2Ftimelines-f59e0b?style=flat-square)](https://laveez.github.io/timelines/)\n\n\u003c/div\u003e\n\n---\n\n### Contents\n\n[Features](#features) · [Screenshot](#screenshot) · [Quick Start](#quick-start) · [Input Format](#input-format) · [CLI Flags](#cli-flags) · [Palettes](#palettes) · [How It Works](#how-it-works) · [Contributing](#contributing)\n\n---\n\n## Features\n\n- **Week or day scale** (`--scale`) for column granularity\n- **Confirmed and planned periods** rendered as solid or diagonally-striped bars\n- **Three bundled palettes**: `dark`, `light`, and the mathematically-even `uniform` preset, plus fully custom color lists\n- **Automatic color interpolation** in HLS space when rows exceed palette size, subdivided with a van der Corput sequence so extras stay evenly spaced\n- **Per-bar WCAG contrast** (`--text-mode auto`) or classic fixed rule (`--text-mode fixed`)\n- **Built-in demo**: `python3 timelines.py` with no arguments renders the bundled example\n- **Zero third-party runtime dependencies**, Python 3.10+\n- **Browser companion** at [laveez.github.io/timelines](https://laveez.github.io/timelines/) runs the same `timelines.py` via Pyodide. Edit via Cards, Grid, or Raw CSV and get live HTML, SVG, and PNG output.\n\n## Screenshot\n\n![Example timeline rendered from timelines.csv](timelines.svg)\n\n## Quick Start\n\nClone and run:\n\n```bash\ngit clone https://github.com/laveez/timelines.git\ncd timelines\npython3 timelines.py\n```\n\nRenders the bundled example into `timelines.html` and `timelines.svg`. Run with `--help` for the full flag list.\n\nInstall as a CLI:\n\n```bash\npip install git+https://github.com/laveez/timelines.git\ntimelines timelines.csv\n```\n\nOr open [laveez.github.io/timelines](https://laveez.github.io/timelines/) in a browser. No install needed.\n\n## Input Format\n\nEach row is one person. The first cell is the name; after that, periods come in `status,start,end` triplets.\n\n```csv\nAino,C,2026-07-21,2026-07-27,P,2026-08-01,2026-08-15\nEero,C,2026-06-22,2026-07-12\nHelmi\n```\n\n- All dates use ISO 8601 (`YYYY-MM-DD`).\n- `C` is confirmed (solid bar), `P` is planned (striped bar).\n- The end date must be on or after the start date.\n- A row with only a name renders as an empty row.\n\n## CLI Flags\n\n| Flag | Description |\n|---|---|\n| `\u003cinput.csv\u003e` | CSV input path (positional) |\n| `--scale day\\|week` | Column granularity. Default: `week` |\n| `--title TEXT` | Header title. Default: `Timeline` |\n| `--subtitle TEXT` | Header subtitle. Default: `\u003cScale\u003e view` |\n| `--palette NAME\\|LIST` | `dark`, `light`, `uniform`, or a comma-separated color list. Default: `dark` |\n| `--text-mode auto\\|fixed` | Bar text color rule. Default: `auto` |\n| `--padding-days N` | Extra days shown on each side of the timeline. Default: `2` |\n| `--from YYYY-MM-DD` | Clip the timeline to start at this date (inclusive) |\n| `--to YYYY-MM-DD` | Clip the timeline to end at this date (inclusive) |\n| `--html-output PATH` | HTML output path. Default: `timelines.html` for the bundled input, otherwise `gitignored/\u003cstem\u003e.html` |\n| `--svg-output PATH` | SVG output path. Default: `timelines.svg` for the bundled input, otherwise `gitignored/\u003cstem\u003e.svg` |\n\nRun `python3 timelines.py --help` for the argparse-generated reference.\n\n## Palettes\n\n```bash\npython3 timelines.py timelines.csv --palette dark\npython3 timelines.py timelines.csv --palette uniform\npython3 timelines.py timelines.csv \\\n  --palette \"#0B1F66,#00A1DE,#D7192D,#8FBBD9\"\n```\n\nThe `uniform` preset spaces 10 hues evenly on the color wheel (36° apart) at constant lightness and saturation for maximum visual separation. When a CSV has more rows than palette colors, additional colors get interpolated in HLS space between adjacent entries. A van der Corput sequence drives the subdivision so wrapped colors land in the gaps between existing ones rather than colliding with them.\n\n## How It Works\n\n```\nCSV input → parse_csv → Person / Period objects → render_svg → standalone SVG\n                                                       ↓\n                                                  render_html → self-contained HTML\n```\n\nThe CLI uses only the Python standard library (`argparse`, `csv`, `colorsys`, `html`, `datetime`). SVG is built as plain strings, with no templating engine. The browser companion under [`web/`](web/) wraps React, Vite, and Tailwind v4 around Pyodide, which loads the same `timelines.py` via a symlink in `web/public/`. One code path, identical output.\n\nGitHub Actions CI builds the sdist and wheel on Python 3.10 through 3.13 and smoke-tests every palette, text mode, and scale. A separate Pages workflow deploys the browser companion on every push to `main`.\n\n## Contributing\n\nContributions are welcome. Open an issue first for bigger changes so we can talk through the approach.\n\n## License\n\n[MIT](LICENSE) © 2026 [laveez](https://github.com/laveez)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flaveez%2Ftimelines","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flaveez%2Ftimelines","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flaveez%2Ftimelines/lists"}