{"id":22354339,"url":"https://github.com/jonmagic/lana","last_synced_at":"2025-06-12T17:33:47.623Z","repository":{"id":66375216,"uuid":"49313431","full_name":"jonmagic/lana","owner":"jonmagic","description":"Graphical analyzer for timestamped binary data.","archived":false,"fork":false,"pushed_at":"2016-02-07T07:01:19.000Z","size":608,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-26T12:46:36.874Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/jonmagic.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}},"created_at":"2016-01-09T06:18:45.000Z","updated_at":"2021-06-29T21:35:42.000Z","dependencies_parsed_at":"2023-02-21T04:45:15.590Z","dependency_job_id":null,"html_url":"https://github.com/jonmagic/lana","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jonmagic/lana","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonmagic%2Flana","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonmagic%2Flana/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonmagic%2Flana/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonmagic%2Flana/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jonmagic","download_url":"https://codeload.github.com/jonmagic/lana/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonmagic%2Flana/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259512516,"owners_count":22869424,"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":[],"created_at":"2024-12-04T13:12:20.670Z","updated_at":"2025-06-12T17:33:47.584Z","avatar_url":"https://github.com/jonmagic.png","language":"JavaScript","readme":"# Lana\n\nGraphical logic analyzer. Currently works with csv data that looks like this:\n\n```\nTime[s],Channel 0\n0.000000000000000,1\n1.813367583333333,0\n1.814014083333333,1\n1.814383916666667,0\n1.815033500000000,1\n1.815400416666667,0\n1.815492333333333,1\n```\n\nEach row has the timestamp of the state change in the first column and the logic state in the second column. Since each row is a state change it just alternates one zero one zero one zero and so on.\n\nLana graphs two lines per state change (csv row) ┘\n\nThe horizontal line starts at the x/y coordinates where the previous state changed ends (where x is time and y is state) and ends at the new x coordinate and the previous y coordinate. The vertical line then goes from the that x and y coordinate to the same x and the new y coordinate representing the state change. Explained in code that would be:\n\n```javascript\n// horizontal line\n[x1, y1, x2, y1]\n// vertical line\n[x2, y1, x2, y2]\n```\n\nThe csv data above was exported from the app Logic by [Saleae](https://www.saleae.com/). I have a Saleae  Logic 4 and I love it. Well built and easy to use hardware and software for recording and analyzing analog and digital signals. I highly recommend buying one.\n\nNamed after [Lana the research chimpanzee](https://en.wikipedia.org/wiki/Lana_(chimpanzee)) and short for logic analyzer.\n\n![lana screenshot](http://f.cl.ly/items/0w3u0K1n0h1e433W0V2P/2016-01-09%20at%2012.10%20AM.png)\n\nLana doesn't really do much yet so I recommend checking out [Sigrok](http://sigrok.org/) and [Pulseview](https://sigrok.org/wiki/PulseView) if you want to get any real work done.\n\n## Usage\n\n```bash\n$ git clone https://github.com/jonmagic/lana\n$ cd lana\n$ npm install \u0026\u0026 npm start\n```\n\nClick the **Open** button and choose a csv file to open. You can find the `hello_world.csv` sample in the samples directory.\n\n## Goals\n\n- [x] Visualize csv in timestamp/state change format\n- [ ] Zoom\n- [ ] Auto-scaling timestamp markers in graph\n- [ ] Hover over to get exact distances between state changes, duty cycle, etc\n- [ ] First logic analyzer. Use hello_world.csv as example, should look something like [this](http://cl.ly/1f0u3l0P3q0v) and [this](http://cl.ly/1x0N2F2P2h17)\n\n## License\n\nThe MIT License (MIT)\n\nCopyright (c) 2016 Jonathan Hoyt\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonmagic%2Flana","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjonmagic%2Flana","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonmagic%2Flana/lists"}