JSPM

codeshift-learn

1.0.5
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 15
  • Score
    100M100P100Q88499F
  • License MIT

Learn to code. Never leave the terminal.

Package Exports

  • codeshift-learn
  • codeshift-learn/dist/cli.mjs

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (codeshift-learn) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

CodeShift

Learn to code. Never leave the terminal.

npm version npm downloads Node.js License: MIT

CodeShift is a fully interactive coding education CLI that runs entirely in your terminal โ€” no browser, no account, no installation wizard. Structured lessons, real code execution, spaced repetition, daily challenges, and achievement badges, all from the command line.


Install

npm install -g codeshift-learn

Requirements: Node.js 18+


Quick Start

codeshift start

That's it. Pick a language track and start learning.


What's Inside

๐Ÿ—‚๏ธ Language Tracks

Track Levels Lessons Access
Python ๐Ÿ 4 64 Free
JavaScript ๐ŸŸก 3 35 Free
More coming โ€” โ€” โ€”

๐Ÿ“š Lesson Types

Type Description
๐Ÿ“– Read Concept explanation with syntax-highlighted code
โœ๏ธ Fill in the Blank Type the missing keyword or expression
๐Ÿ”˜ Multiple Choice Pick from four options
๐Ÿ’ป Write Code Write a real solution in your editor โ€” CodeShift runs it against test cases
๐Ÿ› Fix the Bug Find and correct broken code
๐Ÿ” Explain This Code Read a snippet and predict what it outputs
๐Ÿ—๏ธ Mini Project End-of-level capstone challenges

๐ŸŒ Real-World Challenges

A separate challenge mode with no hand-holding โ€” just a brief, test cases, and your editor. Current Python challenges:

  • Tip Calculator (beginner)
  • Temperature Converter (beginner)
  • Password Generator (intermediate)
  • Grade Calculator (intermediate)
  • Word Frequency Analyzer (intermediate)
  • Caesar Cipher (advanced)

โšก Learning Features

  • Spaced Repetition โ€” wrong answers resurface every 5 lessons automatically
  • Daily Challenge โ€” one question per day from your completed lessons, earns streak bonus XP
  • Unlimited Attempts โ€” no lockouts; hints appear after the first wrong answer
  • Streak System โ€” daily coding habit tracker with bonus XP
  • XP & Progress โ€” track completion per level, per track, and overall
  • ๐Ÿ“‹ Cheat Sheet โ€” instant terminal reference card: codeshift cheat python

๐Ÿ… Achievement Badges

Earn badges as you hit milestones:

๐Ÿ–ฅ๏ธ  Hello World       First lesson complete
โšก  Syntax Learned    Complete Level 1
๐Ÿ’พ  Committed         10 lessons complete
๐Ÿš€  Deployed          25 lessons complete
๐Ÿ”ง  Debugger          Fix a bug on the first try
๐Ÿ”  Code Reader       Nail an Explain This Code lesson
๐ŸŒ  Polyglot          Start a second language track
๐Ÿ”ฅ  Hot Streak        3-day coding streak
โญ  Star Developer    7-day streak
๐Ÿ†  Elite Coder       30-day streak
๐Ÿ’ก  Lightbulb         100 XP earned
โš™๏ธ  Senior Engineer   500 XP earned
๐Ÿ–ค  10x Engineer      1000 XP earned
๐ŸŒ  Real World Ready  Complete a real-world challenge
โ˜•  Coffee++          Complete a daily challenge
๐ŸŽฏ  Sharp             5 correct answers in a row

All Commands

codeshift start              # Launch the app โ€” main menu
codeshift progress           # XP, streaks, and completion stats
codeshift cheat python       # Python quick-reference card
codeshift cheat javascript   # JavaScript quick-reference card
codeshift activate <key>     # Activate a Pro license
codeshift update             # Check for a newer version
codeshift help               # Full command reference
codeshift version            # Print version number

In-App Navigation

Key Action
โ†‘ โ†“ Navigate menus
Enter Select / confirm answer
M + Enter Exit to main menu from any lesson
A B C D Answer multiple choice questions

โ—† CodeShift โ€” Learn to code. Never leave the terminal.

  Continue โ€” Python ยท Level 2 ยท Lesson 4
  ๐ŸŒ Real-World Challenges
  โšก Daily Challenge  โ€” bonus XP available!
  ๐Ÿ”„ Review Queue  (2 lessons to review)
  ๐Ÿ“‹ Cheat Sheet
  Browse all lessons
  Switch language track
  View my progress & badges
  Settings
  Exit

Progress is Saved Locally

All progress, XP, streaks, and badges are stored on your machine at ~/.config/codeshift/config.json. Nothing is sent to a server. No account required.


Contributing

Contributions are welcome โ€” especially new lessons and language tracks.

Bug reports & feature requests: Open an issue

Discussions & ideas: GitHub Discussions

Adding lessons:

  1. Fork the repo
  2. Add lessons to src/lessons/tracks/<language>/level-0X.json
  3. Follow the schema in src/lessons/schema.ts
  4. Run npm test to validate
  5. Open a pull request

Lesson JSON schema is documented in src/lessons/schema.ts


Roadmap

  • More language tracks (TypeScript, Rust, Go)
  • VS Code extension integration
  • GitHub Actions for auto-publish
  • Leaderboard between friends (shared key)
  • Timed challenge mode

License

  • CLI core & free lesson content: MIT License
  • Pro lesson content (if/when added): Proprietary

Copyright ยฉ 2024 CodeShift