SpikePrimeGit Documentation
Sync your LEGO SPIKE Prime projects to GitHub
🎉 Chrome Extension Approved!
The Chrome Web Store Extension is now live and ready to install!
⚠️ GitHub Marketplace Approval Pending: The GitHub Marketplace App approval is currently underway. You won't be able to search for SpikePrimeGit in the GitHub Marketplace yet.
Meanwhile: Advanced users can set up their own GitHub App or explore the project on GitHub.
🌟 New to GitHub? Start Here!
If you're a student, parent, or coach who's never used GitHub before, we've created a special guide just for you!
📚 Read the Beginner's Guide (for Kids & Parents)
Learn what GitHub is, why it's useful, and how this plugin helps - explained in simple terms!
📖 What is SpikePrimeGit?
SpikePrimeGit is a Chrome extension that helps students and coaches automatically save LEGO SPIKE Prime projects to GitHub. This makes it easy to:
- Version Control: Keep track of changes to your projects over time
- Backup: Never lose your hard work - everything is safely stored in the cloud
- Collaboration: Share projects with teammates and coaches
- Portfolio: Build a portfolio of your robotics projects
✨ Features
- One-Click Setup: Simple GitHub authentication, no complex configuration
- Auto-Capture: Automatically detects when you save projects
- Version Control: Every save creates a Git commit with your custom message
- Upload Support: Works with both new projects and uploaded .llsp3 files
- Sync History: Track all your uploads in the popup
- Privacy First: No data collection, direct GitHub communication
- Native UI: Integrated sync button and notifications on SPIKE Prime page
📋 What You'll Need
- Google Chrome browser
- A GitHub account (free)
- Access to LEGO SPIKE Prime software
- About 10-15 minutes for setup
⚙️ Setup Guide - One Time Activity
Follow these steps carefully to set up SpikePrimeGit. Don't worry - you only need to do this once!
Install the Chrome Extension
- Click the badge above or visit the Chrome Web Store
- Click "Add to Chrome"
- Click "Add extension" in the confirmation dialog
- You should see the SpikePrimeGit icon appear in your Chrome toolbar
Create a GitHub Account
If you don't have a GitHub account yet:
- Go to github.com/signup
- Enter your email address and create a password
- Choose a username (this will be visible to others)
- Verify your email address
Create a GitHub Repository
A repository is like a folder where your projects will be saved.
- Go to github.com/new
- Enter a repository name (e.g., "spike-prime-projects")
- Choose "Public" or "Private" (Private keeps your code hidden)
- Check "Add a README file"
- Click "Create repository"
Connect to GitHub
Connect the extension to your GitHub account using the SpikePrimeGit GitHub App.
- Click the SpikePrimeGit extension icon in Chrome
- Click "Connect to GitHub"
- You'll be redirected to GitHub to authorize the SpikePrimeGit app
- Select the repositories you want to give SpikePrimeGit access to
- Click "Install & Authorize"
- You'll be redirected back to the extension
Extension popup before connecting to GitHub
Configure Your Settings
Now you're connected! Configure where your projects will be saved:
- Select your Repository from the dropdown
- Select a Branch (usually "main" or "master")
- Set a Project Path (e.g., "projects/" - this is where files will be saved in your repository)
- Click "Save Settings"
Extension popup after connecting to GitHub with settings configured
🎉 Setup Complete!
You're all set! Your SPIKE Prime projects can now sync to GitHub.
🚀 How to Use SpikePrimeGit
Now that you're set up, here's how to use the extension every day.
Syncing Your Projects
The extension integrates directly into the SPIKE Prime interface, making syncing simple:
- Open SPIKE Prime software in Chrome
- Work on your project as normal
- Click "Save" in SPIKE Prime (the extension captures it automatically)
- Look for the SpikePrimeGit card on the page (injected by the extension)
- Enter a commit message describing your changes in the text area
- Click "Sync to GitHub"
- Wait for the success notification
SpikePrimeGit interface integrated into SPIKE Prime page
What Happens When You Sync?
Every sync creates a commit in your GitHub repository with:
- Your custom commit message
- The project name
- A timestamp
- The complete .llsp3 file
Viewing Your Projects on GitHub
Your projects are saved as .llsp3 files in your repository:
- Go to your GitHub repository
- Navigate to the folder you specified (e.g., "projects/")
- You'll see all your SPIKE Prime projects listed
- Click on any project to see when it was last updated
- Click on "History" to see the complete history of changes
- Download any version to restore it
Typical repository structure:
your-repo/
└── projects/
├── MyRobot.llsp3
├── LineFollower.llsp3
└── CompetitionReady.llsp3
Checking Recent Syncs
To see your recent uploads:
- Click the SpikePrimeGit extension icon
- Scroll down to "Recent Syncs"
- You'll see a list of your recent project uploads with timestamps
🔧 Troubleshooting
"No project captured yet" Error
Problem: You clicked "Sync to GitHub" but no project is captured.
Solutions:
- Make sure you saved the project in SPIKE Prime first
- Try saving again (Ctrl+S or Cmd+S)
- Check the browser console (F12) for detailed logs
- If you uploaded a file, make sure to save it at least once
Connection Issues
Problem: Extension shows "Not Connected" status.
Solutions:
- Click the extension icon
- Click "Connect to GitHub" again
- Make sure you authorized the GitHub App
- Check that you selected at least one repository
"Extension context invalidated" Error
Problem: Extension was reloaded while page was open.
Solution:
- Simply refresh the SPIKE Prime page (F5)
- The extension will reconnect automatically
Projects Not Appearing on GitHub
Solutions:
- Check you're looking at the correct branch
- Verify the project path matches your settings (e.g., "projects/")
- Check repository commits to see if files are being created
- Open browser console (F12) and look for errors
How to Add More Repositories
To grant SpikePrimeGit access to additional repositories:
- Go to your GitHub App Installations
- Click "Configure" next to SpikePrimeGit
- Select additional repositories
- Click "Save"
- Click the refresh button (↻) in the extension popup to reload repositories
How to Start Over
To reset the extension:
- Click the extension icon
- Click "Disconnect"
- Follow the setup steps again
👨🏫 Tips for Coaches
Managing Student Projects
Here are some strategies for using SpikePrimeGit with your team:
Option 1: Individual Student Repositories
- Each student creates their own GitHub account and repository
- Pros: Students learn to manage their own code
- Cons: Harder to monitor all students
Option 2: Team Organization (Recommended)
- Create a GitHub Organization for your team
- Create one repository per student or per project
- You (coach) have access to all repositories
- Pros: Easy to monitor, backup, and manage
- Cons: Requires initial setup
Best Practices
- Have students name their projects descriptively (e.g., "line-follower-v2")
- Encourage regular saves to build up project history
- Review commit history to see student progress over time
- Use GitHub Issues to give feedback on projects
- Create a shared repository for team resources and example code
Privacy Considerations
- Students under 13 may need parental permission for GitHub accounts
- Consider using private repositories for student work
- Remind students not to include personal information in code comments
💬 Need Help?
If you're still having trouble:
- Check the browser console (F12) for detailed error messages
- Ask your coach or teacher for help
- Report issues on the GitHub repository
🔐 Privacy & Security
- Zero Telemetry - No analytics or tracking
- Local Storage - Tokens stored securely in your browser
- Direct Communication - Extension talks directly to GitHub API
- Open Source - All code available for inspection
- No Backend - No third-party servers, no data leaves your control
Learn more: Privacy Policy • Authentication & Data Storage