Overview
Frameworks are the top-level objects in Law4Devs. Each framework represents one EU regulatory act (e.g. GDPR, NIS2, CRA) and acts as a namespace for articles, recitals, requirements, and annexes.Methods
list()
Returns a page of framework summaries.
Returns
Promise<Page<Framework>>
get()
Fetch the full detail of a single framework by its slug.
Returns
Promise<FrameworkDetail>
iter()
Iterate over all frameworks without managing pagination.
list() (except page, which is managed internally).
Returns AsyncGenerator<Framework>
Models
Framework
Returned by list() and iter().
FrameworkDetail
Returned by get(). Extends Framework with:
Example: filter active frameworks
NIS1 has
status: "superseded" and remains browsable for historical reference. Filter by status === "active" if you only want current legislation.