{"id":45658857,"url":"https://github.com/codeforboston/ma-laws","last_synced_at":"2026-02-24T08:57:53.001Z","repository":{"id":150932177,"uuid":"11713980","full_name":"codeforboston/ma-laws","owner":"codeforboston","description":"The General Laws of the Commonwealth of Massachusetts","archived":false,"fork":false,"pushed_at":"2013-12-05T12:56:39.000Z","size":14436,"stargazers_count":18,"open_issues_count":6,"forks_count":3,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-10-08T18:46:17.067Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://macode.org","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/codeforboston.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},"funding":{"custom":"https://www.codeforamerica.org/donate-to-a-brigade?utm_campaign=CodeforBoston\u0026utm_source=github"}},"created_at":"2013-07-28T02:27:29.000Z","updated_at":"2024-06-12T22:53:33.000Z","dependencies_parsed_at":"2023-04-04T21:34:03.869Z","dependency_job_id":null,"html_url":"https://github.com/codeforboston/ma-laws","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/codeforboston/ma-laws","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeforboston%2Fma-laws","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeforboston%2Fma-laws/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeforboston%2Fma-laws/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeforboston%2Fma-laws/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codeforboston","download_url":"https://codeload.github.com/codeforboston/ma-laws/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeforboston%2Fma-laws/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29777483,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-24T04:54:30.205Z","status":"ssl_error","status_checked_at":"2026-02-24T04:53:58.628Z","response_time":75,"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":[],"created_at":"2026-02-24T08:57:51.521Z","updated_at":"2026-02-24T08:57:52.985Z","avatar_url":"https://github.com/codeforboston.png","language":"JavaScript","funding_links":["https://www.codeforamerica.org/donate-to-a-brigade?utm_campaign=CodeforBoston\u0026utm_source=github"],"categories":[],"sub_categories":[],"readme":"ma-laws\n=======\nlaws of Massachusetts as JSON, there is also a [version in couchdb](https://cloudant.com/futon/database.html?kublai%2Flaw/_all_docs) feel free to replicate it and a [work in progress web app](http://macode.org/)\n\nor just query the web api each list is available as a page or as JSON, the JSON is also available as JSONP by appending `?callback=callback`\n\nget a section as JSON\n\n```\nhttp://macode.org/db/c{{chapter}}s{{section}}\n```\n\nas JSONP\n\n```\nhttp://macode.org/db/c{{chapter}}s{{section}}?callback={{callback}}\n```\n\nas HTML\n\n```\nhttp://macode.org/c{{chapter}}s{{section}}\n```\n\ne.g. section 2 of chapter 276 is http://macode.org/db/c276s2 for JSON, http://macode.org/db/c276s2?callback=cb for JSONP and http://macode.org/c276s2 for HTML\n\nyou can use the web app to find them as HTML, the JSON formulae are as follows\n\n- chapter: `http://macode.org/api/chapter/{{chapter}}` e.g. http://macode.org/api/chapter/276\n- title: `http://macode.org/api/{{part}}/{{title}}` e.g. http://macode.org/api/IV/II note the upper case roman numerals\n- part: `http://macode.org/api/part/{{part}}` e.g. http://macode.org/api/part/IV note the upper case roman numerals\n- chapter of session law: `http://macode.org/db/y{{year}}c{{chapter}}` e.g. http://macode.org/db/y2013c2\n- year of session law: `http://macode.org/api/year/{{year}}` e.g. http://macode.org/api/year/2003\n- all general law: http://macode.org/api/general\n- all session law: http://macode.org/api/session\n- search: http://macode.org/api/search/{{term}} e.g. http://macode.org/api/search/cranberry","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodeforboston%2Fma-laws","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodeforboston%2Fma-laws","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodeforboston%2Fma-laws/lists"}