The Omoika plugins framework for graph-based information analysis and offline local-first investigative workflows.
Project description
Introducing the OMOIKA framework
I have no data yet. It is a capital mistake to theorize before one has data. Insensibly one begins to twist facts to suit theories, instead of theories to suit facts.
The OMOIKA Plugins Framework
This is the plugin framework for OMOIKA, a graph-based OSINT platform for recon, OSINT investigations, link analysis, and more. Offline. Local-first workflows. No cloud dependency required.
Overview
OMOIKA's plugin system enables you to define entities (nodes in the graph) and transforms (operations that create new entities from existing ones). The framework provides:
- Entity definitions with rich metadata, icons, colors, and form elements
- Transform decorators with dependency management and version targeting
- Result types for subgraphs, custom edges, and file attachments
- Field types for semantic type-based transform matching
- Settings framework for persistent configuration
- CLI tools for development and integration
Installation
pip install omoika[all]
For development:
git clone https://github.com/omoika-institute/framework.git
cd framework/
pip install -e ".[dev]"
Quick Start
Define an Entity
from omoika import Plugin
from omoika.elements import TextInput, CopyText
from omoika.types import FieldType
class EmailEntity(Plugin):
version = "1.0.0"
label = "Email"
icon = "mail"
color = "#3B82F6"
category = "Identity"
elements = [
TextInput(label="Email", icon="mail", field_type=FieldType.EMAIL),
CopyText(label="Domain"),
]
Create a Transform
from omoika import transform, Entity, Edge
@transform(
target="email@>=1.0.0",
label="Extract Domain",
icon="world",
)
async def extract_domain(entity):
email = entity.email
domain = email.split("@")[1] if "@" in email else None
if domain:
return Entity(
data=DomainEntity.blueprint(domain=domain),
edge=Edge(label="has domain"),
)
Run a Transform
omoika run -T '{"label": "email", "version": "1.0.0", "transform": "extract_domain", "data": {"email": "user@example.com"}}'
Documentation
| Guide | Description |
|---|---|
| Getting Started | Installation, project setup, and first plugin |
| Plugins & Entities | Defining entities with the Plugin class |
| Transforms | Creating transforms with the @transform decorator |
| Elements | Input and display elements for entity forms |
| Field Types | Semantic types for fields and type-based matching |
| Settings | Transform configuration and persistence |
| CLI Reference | Command-line interface documentation |
| API Reference | Complete API documentation |
Key Concepts
Plugins & Entities
Every node type in the graph is defined as a Plugin subclass. Plugins are automatically registered when defined:
class IPAddress(Plugin):
version = "1.0.0"
label = "IP Address"
elements = [TextInput(label="IP", field_type=FieldType.IP_ADDRESS)]
Transforms
Transforms operate on entities to produce new entities. They target specific entity versions:
@transform(target="ip_address@>=1.0.0", label="GeoIP Lookup", deps=["geoip2"])
async def geoip_lookup(entity):
# Transform logic
return Entity(data=Location.blueprint(city="..."))
Result Types
Transforms return Entity, Edge, File, or Subgraph objects:
return Entity(
data=TargetEntity.blueprint(field="value"),
edge=Edge(label="discovered", color="#22C55E"),
files=[File(path="/tmp/report.pdf")],
)
Project Structure
For plugin development and registry submissions, organize your code as:
my-plugins-repo/
├── entities/
│ ├── email.py
│ ├── domain.py
│ └── ip_address.py
└── transforms/
├── email_transforms.py
├── domain_transforms.py
├── network_traceroute_transform.py
└── network_transforms.py
Load plugins via:
from omoika import load_plugins_fs
load_plugins_fs("/path/to/my-plugins", "my_plugins")
CLI Commands
# List entities and transforms
omoika ls entities
omoika ls transforms -L email
# Run a transform
omoika transform '{"label": "email", "version": "1.0.0", "transform": "to_domain", "data": {...}}'
# Get entity blueprints
omoika blueprints -L email
# Initialize a new plugins project
omoika init
# Sync manifest and README metadata after repo changes
omoika sync
# Compile JSON entity to Python
omoika compile entity.json -O entity.py
Requirements
- Python 3.13+
License
MIT License, see LICENSE for details.
Links
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file omoika-2.1.2.tar.gz.
File metadata
- Download URL: omoika-2.1.2.tar.gz
- Upload date:
- Size: 63.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cf91e819994c3db6110a166392ea018b7de0f71e3695cab1852242cfa820b846
|
|
| MD5 |
c4b5ae06862d05bd0f387bcccb6a15cf
|
|
| BLAKE2b-256 |
32ace1f49d4b4a1694e9043895df845a3740e1ada8a7a0eb7882b13c52c516b3
|
Provenance
The following attestation bundles were made for omoika-2.1.2.tar.gz:
Publisher:
publish.yml on omoika-institute/framework
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
omoika-2.1.2.tar.gz -
Subject digest:
cf91e819994c3db6110a166392ea018b7de0f71e3695cab1852242cfa820b846 - Sigstore transparency entry: 2048488354
- Sigstore integration time:
-
Permalink:
omoika-institute/framework@a400697c6f5f1242322004ace8e5cdf59d67cbc2 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/omoika-institute
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@a400697c6f5f1242322004ace8e5cdf59d67cbc2 -
Trigger Event:
push
-
Statement type:
File details
Details for the file omoika-2.1.2-py3-none-any.whl.
File metadata
- Download URL: omoika-2.1.2-py3-none-any.whl
- Upload date:
- Size: 70.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a83495589b85e600c9895fffbd3b1db5a9e6fbd7b858c58a4726fc151a877ecc
|
|
| MD5 |
b9d7a1a3896957e888fe215a12efa49b
|
|
| BLAKE2b-256 |
5803ca9b03112bdf5df83b915c5d8ec925569a394bef4badacd54d5add15ed48
|
Provenance
The following attestation bundles were made for omoika-2.1.2-py3-none-any.whl:
Publisher:
publish.yml on omoika-institute/framework
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
omoika-2.1.2-py3-none-any.whl -
Subject digest:
a83495589b85e600c9895fffbd3b1db5a9e6fbd7b858c58a4726fc151a877ecc - Sigstore transparency entry: 2048488358
- Sigstore integration time:
-
Permalink:
omoika-institute/framework@a400697c6f5f1242322004ace8e5cdf59d67cbc2 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/omoika-institute
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@a400697c6f5f1242322004ace8e5cdf59d67cbc2 -
Trigger Event:
push
-
Statement type: