Quick Start¶
This guide will help you get started with AiHint Standard in just a few minutes.
Prerequisites¶
Before you begin, make sure you have:
- Chosen your implementation - Select Python, JavaScript, or PHP
- Basic programming knowledge in your chosen language
- A website or domain where you want to add AiHint metadata
Step 1: Install Your Implementation¶
Python¶
JavaScript/Node.js¶
PHP¶
Step 2: Generate Keys (Optional)¶
For self-signing, you'll need cryptographic keys:
Python¶
JavaScript¶
PHP¶
<?php
require_once 'vendor/autoload.php';
use AiHint\KeyManager;
$keyManager = new KeyManager();
$keyManager->generateKeys('./keys');
?>
Step 3: Create Your First AiHint¶
Python¶
from aihint import AiHint
# Create AiHint metadata
aihint = AiHint(
target="https://example.com",
issuer="https://example.com",
score=0.85,
method="aihint-core-v1"
)
# Sign with your private key
aihint.sign("keys/private_key.pem")
# Save to file
aihint.save("aihint.json")
JavaScript¶
const { AiHint } = require('aihint-js');
// Create AiHint metadata
const aihint = new AiHint({
target: "https://example.com",
issuer: "https://example.com",
score: 0.85,
method: "aihint-core-v1"
});
// Sign with your private key
aihint.sign("keys/private_key.pem");
// Save to file
aihint.save("aihint.json");
PHP¶
<?php
require_once 'vendor/autoload.php';
use AiHint\AiHint;
// Create AiHint metadata
$aihint = new AiHint([
'target' => 'https://example.com',
'issuer' => 'https://example.com',
'score' => 0.85,
'method' => 'aihint-core-v1'
]);
// Sign with your private key
$aihint->sign('keys/private_key.pem');
// Save to file
$aihint->save('aihint.json');
?>
Step 4: Deploy to Your Website¶
Place the generated aihint.json
file at:
Step 5: Verify Your Implementation¶
Python¶
JavaScript¶
PHP¶
What's Next?¶
- Installation Guide - Detailed setup instructions
- Key Concepts - Understand the fundamentals
- Implementation Guide - Advanced usage examples
- API Reference - Complete API documentation
Need Help?¶
- Check the FAQ for common questions
- Review the Implementation Guide for detailed examples
- See the Technical Reference for protocol details