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.
npm run statsnpm run visualizeOpen ubicity-data/ubicity-map.html in your browser.
# 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'))"node -e "import('./src/export.js').then(m => m.exportData('markdown', 'journeys.md'))"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?
Capture 5+ learning experiences in different locations.
Run npm run report and look for patterns.
Found 1+ meaningful connection? Keep going. Add a collaborator or stop.
Meet, discuss, capture that collaboration.
Success = 1 unexpected insight + 1 new question
If yes: UbiCity works for you. Keep using it. If no: That's okay. At least you know.
- Full tutorial: See
GETTING_STARTED.md - API reference: See
docs/API.md - Philosophy: Read
MINIMAL_VIABLE_PROTOCOL.md - Examples: Run
npm run examples
npm install # Reinstall dependencies
npm test # Should see 23 passingNeed Node.js v18+ installed.
Check: node --version
npm run migrate:check # Check compatibility
npm run migrate:fix # Fix issues (makes backup)- Check
MIGRATION.mdfor upgrade guide - Read
docs/API.mdfor API reference - Open an issue on GitHub
- Learning happens everywhere - capture it.
- Analyze patterns to find unexpected connections.
- Let data guide next steps, not grand plans.
That's it. Start capturing.
Ready?
npm run capture:quick