@aturio/aturio
v0.1.2
Published
Aturio.ai is the Southeast Asia-wide unified regulation API. Pasal.id is the Indonesia-specific API, and laws.sg is its Singapore surface.
Maintainers
Readme
Aturio
Aturio.ai - The Southeast Asia-Wide Unified Regulation API
Aturio.ai is the Southeast Asia-wide unified regulation API. It connects country-specific regulation surfaces across the region, including pasal.id for Indonesia and laws.sg for Singapore.
Current Release
This JavaScript SDK currently includes the Indonesia-specific Pasal.id API. Aturio.ai is the broader Southeast Asia-wide API layer, with laws.sg as the Singapore surface in the same network.
Installation
npm install @aturio/aturioUsage
const { createIndonesiaClient, search, getLaw } = require("@aturio/aturio");
const client = createIndonesiaClient();
const searchResults = await search("upah minimum", { limit: 3 });
const law = await getLaw("/akn/id/act/uu/2003/13");
const recentLaws = await client.listLaws({ type: "UU", limit: 5 });
console.log(searchResults.total);
console.log(law.work.title);
console.log(recentLaws.laws[0]?.frbr_uri);Included Methods
search(query, options)-> search Indonesian legal materialslistLaws(options)-> list laws with pagination and filtersgetLaw(frbrUri)-> fetch one law with article contentcreateIndonesiaClient(options)-> create a reusable client instance
Platform Coverage
- pasal.id - Indonesia-specific API (live, included in this package)
- laws.sg - Singapore surface in the Aturio.ai network (coming soon)
Links
- Website: aturio.ai
- Indonesia: pasal.id
- Singapore: laws.sg
- GitHub: github.com/Aturio
- API docs: pasal.id/api
