
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
@tcn/aip-160
Advanced tools
A specialized package that provides AIP-160 standard implementation for filtering and querying data with a powerful grammar-based parsing system.
A specialized package that provides AIP-160 standard implementation for filtering and querying data with a powerful grammar-based parsing system.
@tcn/aip-160 implements the AIP-160 standard for data filtering and querying. This package provides a robust filtering system that allows you to create complex queries using a standardized grammar, making it easy to filter and search through data collections with powerful, human-readable syntax.
import { AipFilter } from '@tcn/aip-160';
async function filterUsers() {
const filter = new AipFilter();
const users = [
{ name: 'John Doe', age: 30, email: 'john@example.com' },
{ name: 'Jane Smith', age: 25, email: 'jane@example.com' },
{ name: 'Bob Johnson', age: 35, email: 'bob@example.com' }
];
// Filter by name containing "John"
const johnUsers = await filter.filter('name contains "John"', users);
// Filter by age greater than 25
const olderUsers = await filter.filter('age > 25', users);
// Global search across all properties
const emailUsers = await filter.filter('"@example.com"', users);
}
import { AipFilter } from '@tcn/aip-160';
async function complexFiltering() {
const filter = new AipFilter();
const products = [
{ name: 'Laptop', price: 999, category: 'Electronics', inStock: true },
{ name: 'Book', price: 29, category: 'Books', inStock: false },
{ name: 'Phone', price: 699, category: 'Electronics', inStock: true }
];
// Complex query with multiple conditions
const expensiveElectronics = await filter.filter(
'category = "Electronics" AND price > 500 AND inStock = true',
products
);
// Date-based filtering
const recentOrders = await filter.filter(
'orderDate > "2024-01-01"',
orders
);
}
import { AipFilter } from '@tcn/aip-160';
async function caseSensitiveFiltering() {
const filter = new AipFilter();
const data = [
{ name: 'Apple', type: 'FRUIT' },
{ name: 'apple', type: 'COMPANY' },
{ name: 'APPLE', type: 'BRAND' }
];
// Case-sensitive filtering
const exactMatch = await filter.filter('name = "Apple"', data, true);
// Case-insensitive filtering (default)
const anyCase = await filter.filter('name = "apple"', data, false);
}
import { getAip160Patterns, AIP160_GRAMMAR } from '@tcn/aip-160';
async function grammarUsage() {
// Get available patterns
const patterns = await getAip160Patterns();
// Access grammar definition
console.log('Available patterns:', Object.keys(patterns));
console.log('Grammar definition:', AIP160_GRAMMAR);
}
=, !=>, <, >=, <=contains, not containsAND, OR, NOT"quoted string" or 'single quotes'123, 45.67"2024-01-01", "2024-01-01T10:00:00Z"true, false// Simple equality
'status = "active"'
// Numeric comparison
'age >= 18 AND age <= 65'
// String contains
'name contains "john" OR email contains "john"'
// Date filtering
'createdDate > "2024-01-01" AND createdDate < "2024-12-31"'
// Complex logical expressions
'(category = "Electronics" OR category = "Books") AND price < 100'
Choose @tcn/aip-160 when you need:
The package integrates seamlessly with:
Apache-2.0
FAQs
A specialized package that provides AIP-160 standard implementation for filtering and querying data with a powerful grammar-based parsing system.
We found that @tcn/aip-160 demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 8 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.