{"id":16923299,"url":"https://github.com/kucherenko/caiman","last_synced_at":"2025-08-19T07:31:27.417Z","repository":{"id":12954028,"uuid":"73230097","full_name":"kucherenko/caiman","owner":"kucherenko","description":"Times series data library. Store data to files or to mongoDB.","archived":false,"fork":false,"pushed_at":"2024-11-18T22:48:36.000Z","size":1028,"stargazers_count":3,"open_issues_count":5,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-06T20:11:57.313Z","etag":null,"topics":["caiman","database","db","series-data","statistics","timeseries"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/kucherenko.png","metadata":{"files":{"readme":"README.md","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}},"created_at":"2016-11-08T21:49:14.000Z","updated_at":"2022-09-10T04:53:11.000Z","dependencies_parsed_at":"2023-01-11T20:19:32.715Z","dependency_job_id":"63423b11-24b7-41e8-b2e0-278f437ce111","html_url":"https://github.com/kucherenko/caiman","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kucherenko/caiman","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kucherenko%2Fcaiman","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kucherenko%2Fcaiman/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kucherenko%2Fcaiman/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kucherenko%2Fcaiman/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kucherenko","download_url":"https://codeload.github.com/kucherenko/caiman/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kucherenko%2Fcaiman/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271119818,"owners_count":24702688,"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","status":"online","status_checked_at":"2025-08-19T02:00:09.176Z","response_time":63,"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":["caiman","database","db","series-data","statistics","timeseries"],"created_at":"2024-10-13T19:58:35.344Z","updated_at":"2025-08-19T07:31:27.095Z","avatar_url":"https://github.com/kucherenko.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Caiman - statistic alligator\n![Caiman - times series library](https://rawgit.com/kucherenko/caiman/master/caiman.svg)\n## Times series data library.\n\nLibrary helps organize time series data. Caiman can be used for IoT systems,\nstock data, different type of statistics, etc. As database caiman can use file-based database.\n\n### Installation\n\n```\nnpm install caiman --save\n```\n\nor\n\n```\nyarn add caiman --save\n```\n\n### Usage\n\n```javascript\nimport {Caiman} from caiman;\n\nconst options = {\n    driver: {\n        type: 'files',\n        options:{\n            path: '/tmp/'\n        }\n    }\n}, periods = ['month', 'day', 'hour', 'minute', 'second'];\n \nlet currentDate = new Date();\n\nlet temperatureSensor = new Caiman('temperature_sensor', options);\n\n//save average value binded to current date and time, will collect average values\n// posible values of last parameter are 'averages', 'aggregate', 'summarize' or you can use your own strategy\ntemperatureSensor.save(currentDate, periods, Math.random() * 100, 'averages');\n\n\n//get collection of values by year, will return coolection of average values by monthes\nconsole.log(stat.getCollection(currentDate, 'year'));\n\n//get collection of values by month, will return coolection of average values by days\nconsole.log(stat.getCollection(currentDate, 'month'));\n\n//get collection of values by day, will return coolection of average values by hours \nconsole.log(stat.getCollection(currentDate, 'day'));\n\n//get collection of values by hour, will return coolection of average values by minutes\nconsole.log(stat.getCollection(currentDate, 'hour'));\n\n//get collection of values by hour, will return coolection of average values by seconds\nconsole.log(stat.getCollection(currentDate, 'minute'));\n\n```\n\n### Run tests\n```\nyarn test\n```\n### TODO\n - Redis support\n - Add CI\n - Add badges\n \n### Licence \n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkucherenko%2Fcaiman","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkucherenko%2Fcaiman","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkucherenko%2Fcaiman/lists"}