{"id":41313676,"url":"https://github.com/socrata/soda-js","last_synced_at":"2026-01-23T05:27:52.807Z","repository":{"id":45174096,"uuid":"5134954","full_name":"socrata/soda-js","owner":"socrata","description":"A Javascript-based library for accessing the SODA2 API.","archived":false,"fork":false,"pushed_at":"2023-07-06T02:24:46.000Z","size":81,"stargazers_count":176,"open_issues_count":12,"forks_count":49,"subscribers_count":63,"default_branch":"main","last_synced_at":"2025-10-29T21:52:46.101Z","etag":null,"topics":["engineering","socrata-sdk"],"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/socrata.png","metadata":{"files":{"readme":"README.textile","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":"2012-07-21T16:18:29.000Z","updated_at":"2025-09-28T01:05:28.000Z","dependencies_parsed_at":"2023-01-30T05:25:13.299Z","dependency_job_id":null,"html_url":"https://github.com/socrata/soda-js","commit_stats":{"total_commits":45,"total_committers":11,"mean_commits":4.090909090909091,"dds":0.5777777777777777,"last_synced_commit":"d6d528c919b6586abe211fdc8924af439677c830"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/socrata/soda-js","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/socrata%2Fsoda-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/socrata%2Fsoda-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/socrata%2Fsoda-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/socrata%2Fsoda-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/socrata","download_url":"https://codeload.github.com/socrata/soda-js/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/socrata%2Fsoda-js/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28680693,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-23T04:33:33.518Z","status":"ssl_error","status_checked_at":"2026-01-23T04:33:30.433Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["engineering","socrata-sdk"],"created_at":"2026-01-23T05:27:52.650Z","updated_at":"2026-01-23T05:27:52.792Z","avatar_url":"https://github.com/socrata.png","language":"JavaScript","readme":"h1. soda-js \"!https://secure.travis-ci.org/socrata/soda-js.png!\":http://travis-ci.org/socrata/soda-js\n\nA client implementation of the Socrata Open Data API in Coffeescript and Javascript.\n\nh2. Important Note\n\nIn order to access the SODA API via HTTPS, clients must now \"support the Server Name Indication (SNI)\":https://dev.socrata.com/changelog/2016/08/24/sni-now-required-for-https-connections.html extension to the TLS protocol. What does this mean? It means that if you're using @soda-js@, you must use a JavaScript VM that supports SNI:\n\n* \"Internet Explorer 7+\":https://en.wikipedia.org/wiki/Server_Name_Indication#Support\n* \"Mozilla Firefox 2+\":https://en.wikipedia.org/wiki/Server_Name_Indication#Support\n* \"Apple Safari (all versions)\":https://en.wikipedia.org/wiki/Server_Name_Indication#Support\n* \"Google Chrome 6.0+\":https://en.wikipedia.org/wiki/Server_Name_Indication#Support\n* \"node.js 0.5.3+\":https://github.com/nodejs/node/blob/e1643ccc5a5ecf7cb779472d244459469c9971a1/doc/changelogs/CHANGELOG_ARCHIVE.md#20110801-version-053-unstable\n\nh2. Supported Operations\n\nSupports both consumer and producer API, but does not currently support creating datasets or the import workflow.\n\nh2. Usage\n\nSee the @sample/@ directory for sample code, but here's the general idea:\n\nbc.. var soda = require('soda-js');\n\nh3. Consumer API\n\nYou can query a dataset by SODA2 clauses, or supply a custom SoQL query to be run.\n\nbc.. var consumer = new soda.Consumer('explore.data.gov');\n\nconsumer.query()\n  .withDataset('644b-gaut')\n  .limit(5)\n  .where({ namelast: 'SMITH' })\n  .order('namelast')\n  .getRows()\n    .on('success', function(rows) { console.log(rows); })\n    .on('error', function(error) { console.error(error); });\n\np. Using 'like' in a where clause:\n\nbc.. .where(\"namelast like '%MITH'\")\n\nh3. Producer API\n\nYou can add, update, replace, delete, and upsert rows, as well as truncate a dataset.\n\nbc.. var producer = new soda.Producer('sandbox.demo.socrata.com', sodaConnectionOptions);\n\nvar data = { mynum : 42, mytext: \"hello world\" }\n\nproducer.operation()\n  .withDataset('rphc-ayt9')\n  .add(data)\n    .on('success', function(row) { console.log(row); })\n    .on('error', function(error) { console.error(error); })\n\nh2. License\n\nProvided under the MIT license.\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsocrata%2Fsoda-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsocrata%2Fsoda-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsocrata%2Fsoda-js/lists"}