Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.law4devs.eu/llms.txt

Use this file to discover all available pages before exploring further.

Overview

The frameworks resource provides access to all 19 EU regulatory frameworks — GDPR, CRA, NIS2, AI Act, DORA, and more.

Methods

list()

Future<Page<Framework>> list({int? page, int? perPage})
Parameters
ParameterTypeDefaultDescription
pageint?1Page number
perPageint?20Items per page

get()

Future<FrameworkDetail> get(String slug)

iter()

Stream<Framework> iter({int perPage = 20})
Lazy stream — fetches the next page only when the current page is exhausted.

Models

Framework

FieldTypeDescription
idintInternal ID
slugStringURL-safe identifier (e.g. gdpr)
nameStringFull regulation name
shortNameStringAbbreviation (e.g. GDPR)
celexNumberStringEUR-Lex CELEX identifier
descriptionString?Short description
isActiveboolWhether actively maintained
statusStringactive or superseded
articleCountintNumber of scraped articles
recitalCountintNumber of scraped recitals
createdAtStringISO 8601 timestamp

FrameworkDetail

Extends Framework with:
FieldTypeDescription
eurLexUrlStringLink to EUR-Lex source
requirementCountintNumber of requirements
annexCountintNumber of annexes
tagCountintNumber of associated tags
coverageMap?Coverage statistics

Examples

List all frameworks

final page = await client.frameworks.list();
print('${page.meta.total} frameworks');

for (final fw in page.data) {
  print('${fw.slug}${fw.name} (${fw.articleCount} articles)');
}

Get framework detail

final gdpr = await client.frameworks.get('gdpr');
print('GDPR: ${gdpr.articleCount} articles, ${gdpr.recitalCount} recitals');
print('EUR-Lex: ${gdpr.eurLexUrl}');

Auto-paginate all frameworks

await for (final fw in client.frameworks.iter()) {
  if (fw.status == 'active') {
    print(fw.name);
  }
}

Filter active frameworks

final page = await client.frameworks.list();
final active = page.data.where((fw) => fw.isActive).toList();
print('${active.length} active frameworks');