A monorepo containing powerful JSON-LD processing tools and utilities.
This repository provides a comprehensive set of tools for working with JSON-LD data, including advanced filtering, graph processing, and configuration management capabilities.
A powerful, generic JSON-LD builder with comprehensive entity and property filtering capabilities. Features include:
- Configuration-First Design: Separate immutable configuration from graph processing
- Fluent Interface: Chainable methods for building complex filtering logic
- Property-Level Filtering: Filter properties by entity IDs or types
- Subgraph Extraction: Extract connected subgraphs with reference following
- Type Safety: Full TypeScript support with proper type inference
# Install the main package
pnpm add jsonldjs
# Basic usage
import { createJsonLdBuilder } from 'jsonldjs';
const result = createJsonLdBuilder()
.baseGraph(jsonldGraph)
.includeTypes(['Organization', 'Person'])
.excludeTypes(['ImageObject'])
.build({ prettyPrint: true });
- Node.js 16+
- pnpm (recommended package manager)
- Clone the repository:
git clone https://github.com/hyperweb-io/jsonld-tools.git
cd jsonld-tools
- Install dependencies:
pnpm install
- Build all packages:
pnpm run build
jsonld-tools/
├── packages/
│ └── jsonld-tools/ # Main JSON-LD processing library
├── fixtures/ # Test data and examples
└── docs/ # Documentation
For detailed documentation and API reference, see the individual package READMEs:
MIT License - see LICENSE file for details.
Contributions are welcome! Please read our contributing guidelines and submit pull requests to the main branch.