Skip to content

Modules ​

Modules add tools, prompt instructions and public data sources to Tablette. They are installed npm packages (@tablette/module-*), except the core-owned BIMR engine.

All six modules are enabled by default. The five data modules are scoped to Sketch mode; the core-owned BIMR engine is scoped to Explore, Learn and Build. Toggle them in Settings > Modules or Explore > Modules; the agent uses the new set on its next turn.

Catalogue ​

ModulePackageWhat it addsToolsSurface
Canutes@tablette/module-canutesFrench parliamentary open data4Canutes browser
Open Data@tablette/module-opendataCatalogue of public sources by topic and country3Open Data browser
Reports@tablette/module-reportSelf-contained, printable HTML research reports1Reports library
Wikidata@tablette/module-wikidataCC0 facts, coordinates, types and identifiers4—
Wikimedia@tablette/module-wikimediaWikipedia summaries and Commons media3—
BIMRcore (src/modules/bimr/)Legacy BIMR Python/IFCX runtime3—

Sources at a glance ​

SourceEndpointLicenseModule
Canutes (Tricoteuses / Code4code)https://db.code4code.eu/canutesLicence Ouverte 2.0Canutes
Wikidata APIhttps://www.wikidata.org/w/api.phpCC0 1.0Wikidata
Wikidata Query Servicehttps://query.wikidata.org/sparqlCC0 1.0Wikidata
Wikipédiahttps://<lang>.wikipedia.org/w/api.phpCC BY-SA 4.0Wikimedia
Wikimedia Commonshttps://commons.wikimedia.org/w/api.phpper fileWikimedia

Open Data is metadata only: it returns catalogue records, never datasets.

How the modules compose ​

When you ask for an app, the assistant can combine modules in one turn. For example:

text
Map the vote on scrutin VTANR5L17V9651 by department, add a Wikidata
description for each department, and write a one-page report with the result.

A plausible tool path is:

text
canutes_get ──► canutes_vote_by_department ──► wikidata_entity
      │                                              │
      └──────────────► report_build ◄────────────────┘
                           │
                           └──► reports/<slug>.html

Data is fetched while composing and inlined. The generated app or report does not call the source at runtime.

Module rules ​

  • Read-only. No module writes to a public source.
  • Bounded. Tools cap limits and projections; no whole-table downloads.
  • Attributed. Every source declares its license and credit line.
  • Static output. Generated apps and reports are self-contained.
  • Scoped. A module only appears in the modes it declares.

Adding a module ​

See Module SDK for the package layout and contract. The short version:

  1. Create @tablette/module-<id> implementing the SDK.
  2. Export a descriptor with id, label, modes, createTools and optional Surface, dataSources, attribution and settings.
  3. Add the package to the core's package.json.
  4. Run npm install && npm run gen:modules && npm run typecheck.
  5. Point docs at a page on this site (/modules/<id>).

Next steps ​

  • Canutes — votes, deputies, dossiers and laws.
  • Reports — turn fetched data into a document.
  • Modules guide — enablement and per-mode scope.

Released under the MIT license.