{"id":20683127,"url":"https://github.com/eivindarvesen/ssb-table","last_synced_at":"2025-07-29T19:21:28.584Z","repository":{"id":70323549,"uuid":"62258402","full_name":"EivindArvesen/ssb-table","owner":"EivindArvesen","description":"A sortable table presenting data from SSB.","archived":false,"fork":false,"pushed_at":"2016-06-29T22:41:09.000Z","size":321,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"gh-pages","last_synced_at":"2025-01-17T15:52:43.901Z","etag":null,"topics":["api-client","javscript","statistics"],"latest_commit_sha":null,"homepage":"https://eivind88.github.io/ssb-table/","language":"CSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/EivindArvesen.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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":"2016-06-29T21:16:30.000Z","updated_at":"2018-02-18T12:36:51.000Z","dependencies_parsed_at":"2023-02-28T15:45:23.038Z","dependency_job_id":null,"html_url":"https://github.com/EivindArvesen/ssb-table","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EivindArvesen%2Fssb-table","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EivindArvesen%2Fssb-table/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EivindArvesen%2Fssb-table/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EivindArvesen%2Fssb-table/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/EivindArvesen","download_url":"https://codeload.github.com/EivindArvesen/ssb-table/tar.gz/refs/heads/gh-pages","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242933845,"owners_count":20208910,"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":["api-client","javscript","statistics"],"created_at":"2024-11-16T22:15:33.097Z","updated_at":"2025-03-10T21:48:22.631Z","avatar_url":"https://github.com/EivindArvesen.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SSB Tables\n\nPresents data from SSB in sortable tables.\n\nDemo available at [https://eivind88.github.io/ssb-table/](https://eivind88.github.io/ssb-table/)\n\n\n## Details\nThe website first creates a web page with an empty content container, indicating that the page is loading.\nWhen the document is ready, an API-response from SSB is parsed via JJT, the result of which is set as the content containers inner html (content).\nAfterwards, the table of data is then given a unique ID for ease of further processing and some bad behavior from the JSONstat library is cleaned up, moving the data labels into a table header proper.\nFinally, the DataTables-library - which provides sorting, searching and pagination - is called on the table.\n\n### Implementation\nThe website is based on the following frameworks and libraries to get up and going quickly:\n\n- [the JSON-stat Javascript Toolkit (JJT)](https://json-stat.com) for API-response parsing.\n\n- [jQuery](https://jquery.com) to resolve dependencies (and provide some easy DOM-manipulation).\n\n- [Bootstrap](http://getbootstrap.com) for basis of design and layout.\n\n- [DataTables](https://www.datatables.net) for table sorting, searching and pagination.\n\n\nAdditionally, the page background image is from [Unsplash](https://source.unsplash.com/sov4Rx5NFqQ), and the dataset was provided by [SSB](http://data.ssb.no/api/v0/dataset/1108?lang=no).\n\n\nSome assets have local copies, including the body background image and JavaScript not available via CDNs.\n\n### Limitations\nThings not accounted for include:\n\n- Error handling\n    - API updates\n    - Dataset changes\n    - Unavailable external resources/files/libraries\n    - Lack of browser support for modern features\n- The possibility of filtering by variable/category in datacube\n- Accessibility features\n\nThese limitations are mostly due to time constraints.\n\n\n### Future Work\nIn addition to the points mentioned under \"Limitations\", the following are things that could need some work:\n\n- Performance\n    - Caching\n    - Further optimization of JavaScript\n    - Decrease of file size, for instance via compression (e.g. gzip)\n    - Chunking of data loading/parsing (see next major point)\n- Generalization with regard to dataset used\n- Thorough testing with regards to layout responsivity\n\n\n## License\nReleased under [BSD-3](LICENSE.txt)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feivindarvesen%2Fssb-table","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feivindarvesen%2Fssb-table","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feivindarvesen%2Fssb-table/lists"}