WebExtension API
The Plugin API gives extensions access to Quira-specific features. Underneath, Quira supports the standard WebExtensions API with both MV2 and MV3 manifest versions, thanks to its Gecko foundation. This means most Firefox and Chrome extensions work out of the box.
MV2 + MV3 compatibility
Unlike Chrome which has fully deprecated Manifest V2, Quira continues to support both versions. This means extensions like uBlock Origin (which relies on MV2's webRequestBlocking API) work without modifications. MV3 extensions are also fully supported.
Quira-specific extensions
In addition to the standard browser.* APIs, Quira provides the quira.* namespace for Context Graph and AI interactions:
// Example: Extension that shows related research in a sidebar
browser.tabs.onActivated.addListener(async (activeInfo) => {
const tab = await browser.tabs.get(activeInfo.tabId);
// Use Quira's graph API to find related nodes
const related = await quira.graph.getRelated(tab.url, {
hops: 2,
limit: 5
});
// Display in extension sidebar
updateSidebar(related);
});