@aturio/pasal
v0.1.3
Published
Pasal.id is the Indonesia-specific regulation API in the Aturio.ai network. Aturio.ai is the Southeast Asia-wide unified regulation API.
Maintainers
Readme
Pasal
Open Indonesian Legal Intelligence Platform
Pasal.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 is the Southeast Asia-wide unified regulation API above it. laws.sg is the Singapore surface in the same network.
Current Release
This package is a working JavaScript client for the public Pasal.id REST API.
Installation
npm install @aturio/pasalUsage
const { createClient, search, listLaws, getLaw } = require("@aturio/pasal");
const client = createClient();
const results = await search("upah minimum", { limit: 3 });
const laws = await listLaws({ type: "UU", limit: 5 });
const law = await getLaw("/akn/id/act/uu/2003/13");
console.log(results.total);
console.log(laws.laws[0]?.title);
console.log(law.articles.length);Included Methods
search(query, options)-> search Indonesian legal materialslistLaws(options)-> list laws with filters and paginationgetLaw(frbrUri)-> fetch a law and its article contentcreateClient(options)-> create a reusable client instance
Links
- Website: pasal.id
- Aturio.ai: aturio.ai
- Singapore: laws.sg
- API: pasal.id/api
- MCP Server: pasal.id/connect
- GitHub: github.com/pasal
- PyPI: pypi.org/project/pasal
