
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
algo-practice
Advanced tools
A CLI-first algorithm practice tool for TypeScript/Node.js that provides spoiler-free practice environments and tracks attempt history across Windows, Linux, and macOS.
# Install globally from npm
npm install -g algo-practice
# Or install locally in your project
npm install algo-practice
# Or build from source
git clone https://github.com/chris-amaya/algo.git
cd algo
pnpm install
pnpm build
npm install -g .
# Create a new problem
algo new
# Start practicing a problem
algo practice <slug>
# Run tests for current problem
algo test
# Run tests in watch mode
algo watch [slug]
# Submit your solution
algo submit [-n "note"]
# Resume active sandbox
algo resume
# View past attempts
algo reveal [slug]
# Get help
algo --help
The CLI follows a two-phase spoiler-free design:
algo new)problems/<slug>/ with:
prompt.md - Problem descriptiontests.ts - Test cases (no solutions visible)meta.json - Metadata and attempt historysolutions/ - Directory for archived attemptssolution.ts is created here to keep it spoiler-freealgo practice <slug>)sandbox/<slug>/solution.ts with intelligent stub based on test analysisRun tests: algo test or algo watch
Submit solution: algo submit
problems/<slug>/solutions/Review attempts: algo reveal
algo/
├── problems/ # Your problem collection
│ └── <slug>/
│ ├── prompt.md # Problem description
│ ├── meta.json # Metadata and attempt history
│ ├── tests.ts # Test cases
│ └── solutions/ # Archived solutions
├── sandbox/ # Active practice area (gitignored)
│ ├── <slug>/
│ │ ├── solution.ts # Your current work
│ │ └── tests.ts # Copied test file
│ └── _active.json # Tracks active sandboxes
└── src/ # CLI source code
# Run in development mode
pnpm dev
# Run tests
pnpm test
pnpm test:coverage
# Type checking
pnpm typecheck
# Linting
pnpm lint
# Build for production
pnpm build
# Create a new two-sum problem
algo new
# Enter: two-sum, Two Sum, easy
# Start practicing
algo practice two-sum
# Run tests in watch mode
algo watch
# Submit when ready
algo submit -n "O(n) hash table solution"
# View all attempts later
algo reveal two-sum
ISC
FAQs
A CLI-first algorithm practice tool for TypeScript/Node.js
We found that algo-practice demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.