
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
@meta-aiml/parser
Advanced tools
AIML Parser SDK v2.0.1 - Production-ready schema validation for Meta-AIML.org entity schemas. Supports all 31 entity types with enhanced error handling, universal browser compatibility, and complete API implementation. Zero exceptions, works everywhere.
AIML Parser SDK v2.0.1 - Official validation library for Meta-AIML.org entity schemas
🎯 SAME VALIDATION LOGIC AS UI VALIDATOR - Complete schema validation for 31 entity types across 6 categories with META-AIML Intelligent Scoring Engine and comprehensive v2.0.1 compliance.
{
"@context": "https://schemas.meta-aiml.org/v2.0.1/context.jsonld",
"@id": "https://example.com/entity",
"@type": "EntityTypeName",
"schemaVersion": "2.0.1",
"entityType": "entity_type",
"entityCategory": "category",
"subcategory": "subcategory",
"name": { "en": "Name" },
"description": { "en": "Description 50+ characters" }
}
npm install @meta-aiml/parser
const AIMLParser = require('@meta-aiml/parser');
// Validate a schema using EXACT SAME LOGIC as UI validator
const parser = new AIMLParser();
const result = parser.validate({
"@context": "https://schemas.meta-aiml.org/v2.0.1/context.jsonld",
"@id": "https://bellavista.com/entity",
"@type": "Restaurant",
"schemaVersion": "2.0.1",
"entityType": "restaurant",
"entityCategory": "organization",
"subcategory": "hospitality",
"name": {
"en": "Bella Vista Restaurant",
"es": "Restaurante Bella Vista"
},
"description": {
"en": "A cozy neighborhood restaurant serving fresh, local cuisine with modern twist and exceptional dining experience in a warm and inviting atmosphere."
},
"url": "https://bellavista.com",
// NEW v2.0.1 FIELDS - Required for complete validation
"entityCapabilities": {
"functionalFeatures": {
"acceptsReservations": true,
"hasDelivery": true,
"hasTakeout": true,
"acceptsCreditCards": true,
"hasWifi": true
},
"contentTypes": ["menu", "photos", "reviews", "location"],
"businessModel": "restaurant",
"paymentMethods": ["credit_card", "cash", "digital_wallet"]
},
"siteCapabilities": {
"availableActions": ["view_menu", "make_reservation", "order_delivery"],
"interactionMethods": ["online_form", "phone_call"],
"supportedDevices": ["desktop", "mobile", "tablet"],
"languages": ["en", "es"]
},
// Required module for restaurant entities
"modules": {
"location": {
"version": "2.0.1",
"enabled": true
}
}
});
if (result.isValid) {
console.log(`✅ Valid schema! Score: ${result.score}/100`);
console.log(`📊 Completeness: ${result.completeness}%`);
// Quality zones (same as UI validator)
if (result.score >= 90) {
console.log('🟢 EXCELLENT - Production ready!');
} else if (result.score >= 50) {
console.log('🟡 GOOD - Minor improvements needed');
} else {
console.log('🔴 POOR - Address critical errors');
}
} else {
console.log('❌ Validation errors:', result.errors);
console.log('⚠️ Warnings:', result.warnings);
}
Same scoring algorithm as the official UI validator:
// Base calculation: 100 - (ERRORS×30 + WARNINGS×10 + SUGGESTIONS×5)
// Enhanced logic:
// - No warnings → 90 + (completeness × 10%) up to 100
// - Has errors (≤3) → minimum 50 points (Good zone)
// - Multiple errors (>3) → may fall to Poor zone (floor 25 points)
clinic - Healthcare clinics (Required modules: auth, security, compliance)education_platform - Educational platforms (Required: auth, user-management)fitness_platform - Fitness and wellness centershotel - Hotels and accommodation (Required: location, payments)restaurant - Food service establishments (Required: location)store - Physical retail storesecommerce_store - Online stores (Required: auth, payments)marketplace - Multi-vendor marketplaces (Required: auth, payments, user-management)product - Physical productssoftware_product - Digital software productsbusiness_services - Professional servicesgenerative_ai_platform - AI platforms (Required: auth, security)real_estate_platform - Property servicesridesharing_service - Transportation (Required: auth, location)task_management_app - Productivity appstelemedicine_platform - Remote healthcare (Required: auth, security, compliance, streaming)virtual_event_platform - Online eventsweb_app - Web applicationswebsite_services - Website development servicesblog - Content publishing platformsevent - Events and gatheringsfile_hosting - File storage servicesgaming_platform - Gaming platformsnews - News and media outletspersonal_website - Personal websitesphoto_hosting - Image sharing platformsstreaming_platform - Media streamingvideo_hosting - Video platformsdating_platform - Dating platformssocial_network - Social networks (Required: auth, user-management)online_banking - Digital banking (Required: auth, security, compliance)const parser = new AIMLParser(options);
Options:
debug (boolean): Enable debug modestrict (boolean): Enable strict validationversion (string): Target AIML version (default: "2.0.1")validate(data)Complete schema validation with META-AIML Intelligent Scoring Engine.
const result = parser.validate(schema);
// Returns: AIMLValidationResult with exact same logic as UI validator
isValid(data)Quick boolean validation check.
const valid = parser.isValid(schema);
// Returns: boolean
getEntityInfo(data)Extract detailed entity information.
const info = parser.getEntityInfo(schema);
// Returns: AIMLEntityInfo | null
// Quick validation (same as UI validator)
const result = AIMLParser.validate(schema, options);
// Factory methods
const prodParser = AIMLParser.createProduction();
const devParser = AIMLParser.createDevelopment();
// Utility methods
const version = AIMLParser.getVersion(); // "2.0.1"
const entityTypes = AIMLParser.getEntityTypes(); // All 31 types
const categories = AIMLParser.getEntityCategories(); // 6 categories
const modules = AIMLParser.getModules(); // 14 available modules
const subcategories = AIMLParser.getSubcategories(); // 15 subcategories
{
isValid: boolean, // Overall validation status
errors: AIMLValidationError[], // Critical errors (30 points each)
warnings: AIMLValidationError[], // Warnings (10 points each)
suggestions: AIMLValidationError[], // Suggestions (5 points each)
entityInfo: { // Entity information
entityType: string, // One of 31 supported types
entityCategory: string, // One of 6 base categories
subcategory: string, // One of 15 subcategories
baseSchema: string, // Base schema category
modules: string[], // Active modules (max 14)
hasEntityCapabilities: boolean, // NEW v2.0.1
hasSiteCapabilities: boolean // NEW v2.0.1
},
score: number, // META-AIML Intelligent Scoring Engine (0-100)
completeness: number, // Completeness percentage (0-100)
performance: { // Performance metrics
schemaSize: number, // Schema size in bytes
complexity: 'low'|'medium'|'high', // Complexity assessment
moduleCount: number // Number of enabled modules
}
}
Objective, verifiable business capabilities:
"entityCapabilities": {
"functionalFeatures": {
// Boolean values for objective verification
"acceptsReservations": true,
"hasDelivery": true,
"acceptsCreditCards": true,
"hasWifi": true
},
"contentTypes": ["menu", "photos", "reviews"], // Available content
"businessModel": "restaurant", // Business model type
"paymentMethods": ["credit_card", "cash"] // Supported payments
}
Website interaction and accessibility features:
"siteCapabilities": {
"availableActions": ["view_menu", "make_reservation"], // User actions
"interactionMethods": ["online_form", "phone_call"], // Contact methods
"contentAccess": ["public", "members_only"], // Access levels
"supportedDevices": ["desktop", "mobile", "tablet"], // Device support
"languages": ["en", "es"], // UI languages
"realTimeFeatures": ["real_time_availability"] // Real-time features
}
const marketplaceSchema = {
"@context": "https://schemas.meta-aiml.org/v2.0.1/context.jsonld",
"@id": "https://techbazaar.com/entity",
"@type": "Marketplace",
"schemaVersion": "2.0.1",
"entityType": "marketplace",
"entityCategory": "product_offering",
"subcategory": "ecommerce_platform",
"name": {
"en": "TechBazaar Global Marketplace",
"es": "Mercado Global TechBazaar"
},
"description": {
"en": "Leading B2B2C technology marketplace connecting vendors and buyers worldwide with comprehensive product catalog and secure payment processing."
},
"url": "https://techbazaar.com",
"shortDescription": "Global technology marketplace platform",
// Required v2.0.1 fields
"entityCapabilities": {
"functionalFeatures": {
"supportsOnlinePayments": true,
"hasShoppingCart": true,
"hasUserAccounts": true,
"hasProductReviews": true,
"hasVendorVerification": true
},
"contentTypes": ["products", "reviews", "guides", "vendor_profiles"],
"businessModel": "marketplace",
"paymentMethods": ["credit_card", "paypal", "digital_wallet"]
},
"siteCapabilities": {
"availableActions": ["browse_products", "compare_products", "add_to_cart", "checkout"],
"interactionMethods": ["online_form", "live_chat", "email"],
"supportedDevices": ["desktop", "mobile", "tablet"],
"languages": ["en", "es", "zh"]
},
// Required modules for marketplace
"modules": {
"auth": { "version": "2.0.1", "enabled": true },
"payments": { "version": "2.0.1", "enabled": true },
"user-management": { "version": "2.0.1", "enabled": true }
}
};
const result = AIMLParser.validate(marketplaceSchema);
console.log(`Score: ${result.score}/100 - ${result.score >= 90 ? 'EXCELLENT' : result.score >= 50 ? 'GOOD' : 'POOR'}`);
const result = parser.validate(schema);
// Same error structure as UI validator
if (!result.isValid) {
console.log('🔴 Critical Errors (Must Fix):');
result.errors.forEach(error => {
console.log(` - ${error.field}: ${error.message}`);
if (error.suggestion) {
console.log(` 💡 ${error.suggestion}`);
}
});
console.log('🟡 Warnings (Recommended):');
result.warnings.forEach(warning => {
console.log(` - ${warning.field}: ${warning.message}`);
});
console.log('🔵 Suggestions (Optional):');
result.suggestions.forEach(suggestion => {
console.log(` - ${suggestion.field}: ${suggestion.message}`);
});
}
// Quality assessment (same as UI validator)
const getQualityZone = (score) => {
if (score >= 90) return { name: 'EXCELLENT', color: 'green', description: 'Production ready' };
if (score >= 50) return { name: 'GOOD', color: 'orange', description: 'Minor improvements needed' };
return { name: 'POOR', color: 'red', description: 'Critical issues' };
};
const zone = getQualityZone(result.score);
console.log(`${zone.name} (${result.score}/100) - ${zone.description}`);
const schemas = [restaurantSchema, marketplaceSchema, clinicSchema];
const results = schemas.map(schema => AIMLParser.validate(schema));
// Quality distribution (same logic as UI validator)
const excellent = results.filter(r => r.score >= 90).length;
const good = results.filter(r => r.score >= 50 && r.score < 90).length;
const poor = results.filter(r => r.score < 50).length;
console.log(`Quality Distribution: ${excellent} Excellent, ${good} Good, ${poor} Poor`);
// ERRORS if missing - from required_fields_v2.0.1.md
const criticalRequired = [
'@context', // Must be "https://schemas.meta-aiml.org/v2.0.1/context.jsonld"
'@id', // Unique URI identifier
'@type', // Pascal Case entity name
'schemaVersion', // Must be "2.0.1"
'entityType', // snake_case type (one of 31)
'entityCategory',// one of 6 base categories
'subcategory', // must match entityType
'name', // Multilingual object (minimum "en")
'description' // Multilingual object (minimum "en", 50+ chars)
];
const requiredModules = {
"clinic": ["auth", "security", "compliance"],
"education_platform": ["auth", "user-management"],
"hotel": ["location", "payments"],
"restaurant": ["location"],
"ecommerce_store": ["auth", "payments"],
"marketplace": ["auth", "payments", "user-management"],
"generative_ai_platform": ["auth", "security"],
"ridesharing_service": ["auth", "location"],
"social_network": ["auth", "user-management"],
"online_banking": ["auth", "security", "compliance"],
"telemedicine_platform": ["auth", "security", "compliance", "streaming"]
};
<script src="https://unpkg.com/@meta-aiml/parser@2.1.0/dist/aiml-parser.min.js"></script>
<script>
const parser = new AIMLParser();
const result = parser.validate(mySchema);
// Same quality assessment as UI validator
if (result.score >= 90) {
console.log('🟢 EXCELLENT - Ready for production!');
}
</script>
<script type="module">
import AIMLParser from 'https://unpkg.com/@meta-aiml/parser@2.1.0/dist/index.esm.js';
const result = AIMLParser.validate(schema);
console.log(`META-AIML Score: ${result.score}/100`);
</script>
All AIML v2.0.1 schemas follow this exact structure:
@type → entityCategory → subcategory → entityType
Examples:
Restaurant → organization → hospitality → restaurantMarketplace → product_offering → ecommerce_platform → marketplaceSocialNetwork → community → social_platform → social_networkecommerce_platform, hospitality, healthcare_serviceseducation_services, ai_platform, professional_servicesridesharing_services, website_services, property_servicesphysical_product, digital_product, media_entertainmentsocial_platform, event_platform, financial_servicessemanticProperties - Subjective AI qualitiesintentContext - User intent contextsappliedContexts - External context referencescontext/ folder - Geographic/cultural contextsentityCapabilities - Objective business capabilitiessiteCapabilities - Website interaction featuresThank you for your interest.
However, this project does not accept external contributions at this time.
Please do not submit pull requests or feature requests.
We appreciate your understanding.
Source-Available License - see LICENSE file.
Built for AI agents and developers. 🤖✨
Validated with the same engine that powers the official Meta-AIML.org UI validator.
FAQs
AIML Parser SDK v2.0.1 - Production-ready schema validation for Meta-AIML.org entity schemas. Supports all 31 entity types with enhanced error handling, universal browser compatibility, and complete API implementation. Zero exceptions, works everywhere.
We found that @meta-aiml/parser demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.