{"id":24663607,"url":"https://github.com/fatmatto/timeframes","last_synced_at":"2025-10-04T06:05:11.916Z","repository":{"id":44413174,"uuid":"479296467","full_name":"fatmatto/timeframes","owner":"fatmatto","description":"Dataframe-like API for timeseries-like data","archived":false,"fork":false,"pushed_at":"2025-01-09T14:41:53.000Z","size":835,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-01-09T15:39:30.114Z","etag":null,"topics":["dataframe","timeseries","typescript"],"latest_commit_sha":null,"homepage":"https://fatmatto.github.io/timeframes","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/fatmatto.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":".github/CONTRIBUTING.md","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-08T07:51:33.000Z","updated_at":"2025-01-09T14:41:57.000Z","dependencies_parsed_at":"2024-03-15T17:50:44.067Z","dependency_job_id":"a1c8b95f-7d80-4d97-b204-eac968035dec","html_url":"https://github.com/fatmatto/timeframes","commit_stats":{"total_commits":91,"total_committers":1,"mean_commits":91.0,"dds":0.0,"last_synced_commit":"2e2c065881487ee1694f00eab6494db4c2821162"},"previous_names":[],"tags_count":42,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fatmatto%2Ftimeframes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fatmatto%2Ftimeframes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fatmatto%2Ftimeframes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fatmatto%2Ftimeframes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fatmatto","download_url":"https://codeload.github.com/fatmatto/timeframes/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235665657,"owners_count":19026236,"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":["dataframe","timeseries","typescript"],"created_at":"2025-01-26T05:15:26.701Z","updated_at":"2025-10-04T06:05:11.833Z","avatar_url":"https://github.com/fatmatto.png","language":"TypeScript","readme":"\n\u003ch1  align=\"center\"\u003eTimeframes\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cstrong\u003eDataframe-like API for timeseries-like data\u003c/strong\u003e\n  \u003cdiv align=\"center\"\u003e ⚠️ This is still a work in progress\u003c/div\u003e\n\u003c/p\u003e\n\n\n## Quickstart\n\nInstall through NPM\n```bash\nnpm i @apio/timeframes\n```\n\nThere are a few examples that you can check out in the [examples directory](https://github.com/fatmatto/timeframes/tree/main/examples).\n\n## TimeSeries\n\n\n![Timeseries](images/timeserie.png?raw=true \"Timeseries\")\n\n\n```javascript\nimport { TimeSerie } from '@apio/timeframes'\n\n// Pass an array of points\n// a point is a tuple [DateLike, PointValue]\n// DateLike is value that can be passed to new Date()\n// PointValue is any value, but preferably a number (to compute sums averages ecc)\nconst ts = new TimeSerie([[\"2022-01-01\", 12],[\"2022-01-02\", 13]])\nconst sum = ts.sum()\nconst avg = ts.avg()\n```\n\n\n## TimeFrames\n\n![Timeframes](images/timeframe.png?raw=true \"Timeframes\")\n\n```javascript\nimport { TimeFrame } from '@apio/timeframes'\n// Each item is a row\nconst rows = [\n  {time: \"2022-01-01\", value1:10, value2:140},\n  {time: \"2022-01-02\", value1:41}, // here value2 is null\n  {time: \"2022-01-03\", value1:78, value2:301},\n]\nconst ts = new TimeFrame(rows)\n// column() extracts columns as timeseries\nconst total1 = ts.column(\"value1\").sum()\n```","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffatmatto%2Ftimeframes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffatmatto%2Ftimeframes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffatmatto%2Ftimeframes/lists"}