{"_id":"@aturio/pasal","name":"@aturio/pasal","dist-tags":{"latest":"0.1.3"},"versions":{"0.1.3":{"name":"@aturio/pasal","version":"0.1.3","description":"Pasal.id is the Indonesia-specific regulation API in the Aturio.ai network. Aturio.ai is the Southeast Asia-wide unified regulation API.","main":"index.js","types":"index.d.ts","type":"commonjs","exports":{".":"./index.js"},"publishConfig":{"access":"public"},"license":"Apache-2.0","author":{"name":"Ilham Firdausi Putra"},"homepage":"https://pasal.id","repository":{"type":"git","url":"https://github.com/pasal"},"engines":{"node":">=18"},"keywords":["legal","law","indonesia","regulations","undang-undang","peraturan","api","sdk","rest","mcp"],"_id":"@aturio/pasal@0.1.3","_nodeVersion":"22.17.1","_npmVersion":"10.9.2","dist":{"integrity":"sha512-QvqTh/j1u56Dm8a8q5FPuD7k/Fv58oPPZORmOQSyIt6AVq+j686MwzrX3Kvd0tMUEJAt49QZIbymRI+/hPwY3w==","shasum":"b637ac6eb3553dc6fcdffcdd6e3bd7c025c9882d","tarball":"https://registry.npmjs.org/@aturio/pasal/-/pasal-0.1.3.tgz","fileCount":4,"unpackedSize":9265,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIADkCoWoFjX1tTGvexIpSR5Cu9sn1FJFmw8ANJ10Z6yxAiEA1eMzLwhGLAAhvCsutAaB7xJCtJAWJY6vleT5752wpmw="}]},"_npmUser":{"name":"ilhamfp","email":"halo@pasal.id"},"directories":{},"maintainers":[{"name":"ilhamfp","email":"halo@pasal.id"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/pasal_0.1.3_1773867767759_0.21390857557238618"},"_hasShrinkwrap":false}},"time":{"created":"2026-03-18T21:02:47.657Z","0.1.3":"2026-03-18T21:02:47.928Z","modified":"2026-03-18T21:02:48.161Z"},"maintainers":[{"name":"ilhamfp","email":"halo@pasal.id"}],"description":"Pasal.id is the Indonesia-specific regulation API in the Aturio.ai network. Aturio.ai is the Southeast Asia-wide unified regulation API.","homepage":"https://pasal.id","keywords":["legal","law","indonesia","regulations","undang-undang","peraturan","api","sdk","rest","mcp"],"repository":{"type":"git","url":"https://github.com/pasal"},"author":{"name":"Ilham Firdausi Putra"},"license":"Apache-2.0","readme":"# Pasal\n\n**Open Indonesian Legal Intelligence Platform**\n\nPasal.id provides structured access to Indonesian regulations and legal articles through a website, public REST API, and MCP server. It is the Indonesia-specific API, while [Aturio.ai](https://aturio.ai) is the Southeast Asia-wide unified regulation API above it. [laws.sg](https://laws.sg) is the Singapore surface in the same network.\n\n## Current Release\n\nThis package is a working JavaScript client for the public [Pasal.id REST API](https://pasal.id/api).\n\n## Installation\n\n```bash\nnpm install @aturio/pasal\n```\n\n## Usage\n\n```js\nconst { createClient, search, listLaws, getLaw } = require(\"@aturio/pasal\");\n\nconst client = createClient();\n\nconst results = await search(\"upah minimum\", { limit: 3 });\nconst laws = await listLaws({ type: \"UU\", limit: 5 });\nconst law = await getLaw(\"/akn/id/act/uu/2003/13\");\n\nconsole.log(results.total);\nconsole.log(laws.laws[0]?.title);\nconsole.log(law.articles.length);\n```\n\n## Included Methods\n\n- `search(query, options)` -> search Indonesian legal materials\n- `listLaws(options)` -> list laws with filters and pagination\n- `getLaw(frbrUri)` -> fetch a law and its article content\n- `createClient(options)` -> create a reusable client instance\n\n## Links\n\n- Website: [pasal.id](https://pasal.id)\n- Aturio.ai: [aturio.ai](https://aturio.ai)\n- Singapore: [laws.sg](https://laws.sg)\n- API: [pasal.id/api](https://pasal.id/api)\n- MCP Server: [pasal.id/connect](https://pasal.id/connect)\n- GitHub: [github.com/pasal](https://github.com/pasal)\n- PyPI: [pypi.org/project/pasal](https://pypi.org/project/pasal/)\n","readmeFilename":"README.md","_rev":"1-17b161c2959b2c78889509d16206f16d"}