Get started with UbiCity in 5 minutes.
# Clone the repository
git clone https://github.com/Hyperpolymath/ubicity.git
cd ubicity
# Install dependencies
npm install
# Run tests to verify installation
npm testnpm run capture:quickAnswer the prompts: - Learner ID: your-pseudonym - Location: Local Coffee Shop - Type: reading - Description: Learned about urban planning - Domains (optional): urban-planning, architecture
Done! Your first experience is captured.
# Capture (quick mode)
npm run capture:quick
# Capture (with full details)
npm run capture:full
# Generate analysis report
npm run report
# Find learning hotspots
npm run hotspots
# Generate visualization
npm run visualize
# Show storage stats
npm run stats
# Populate example data
npm run populate
# Run API examples
npm run examplesnode -e "import('./src/export.js').then(m => m.exportData('csv', 'data.csv'))"node -e "import('./src/export.js').then(m => m.exportData('geojson', 'map.json'))"import { createMapper } from './src/index.js';
// Create and initialize
const mapper = await createMapper();
// Capture an experience
await mapper.captureExperience({
learner: { id: 'alice' },
context: { location: { name: 'Makerspace' } },
experience: {
type: 'experiment',
description: 'Built LED circuit',
domains: ['electronics', 'art']
}
});
// Analyze
const hotspots = mapper.findLearningHotspots();
console.log(`Found ${hotspots.length} hotspots`);Want to test if UbiCity works for you?
-
Full tutorial: See
GETTING_STARTED.md -
API reference: See
docs/API.md -
Philosophy: Read
MINIMAL_VIABLE_PROTOCOL.md -
Examples: Run
npm run examples
npm run migrate:check # Check compatibility
npm run migrate:fix # Fix issues (makes backup)