npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@talocode/tradia

v0.1.2

Published

Agentic trading intelligence for trade proposals, risk checks, journals, performance reports and public accountability updates.

Readme

Tradia Agentic Trading OS

Your trading journal, risk engine, and proposal system — in one CLI and SDK.

Stop spreadsheeting your trades. Tradia gives you structured proposals, position sizing, risk checks, journals, backtests, and accountability reports from your terminal.

npm install @talocode/tradia

⚠️ Not financial advice. Human review required before acting on any trade.


Why Tradia?

Every trader hits the same wall: you take a trade, forget why, and repeat the same mistake. Tradia codifies your process so every decision is planned, reviewed, and learned from.

| Without Tradia | With Tradia | |----------------|-------------| | Gut-feel entries | Structured proposals with invalidation criteria | | Forgot why you entered | Journals with lessons and discipline scores | | No idea if your strategy works | Backtest equity curves, win rates, drawdowns | | No accountability | Public updates explaining your trades |


One workflow, four commands

# 1. Propose a trade — get a structured plan with risk baked in
tradia propose --symbol XAUUSD --market forex --strategy liquidity_sweep --balance 500 --risk 0.5 --entry 2365.5 --stop 2372 --target 2350

# 2. Journal the result — capture the lesson
tradia journal --file trade-result.json

# 3. Analyze your performance
tradia performance --file trades.json

# 4. Share accountability
tradia public-update --file performance-report.json

What's inside

| Capability | What it does | |------------|-------------| | Proposal Engine | Generates structured trade proposals with entry, stop, target, invalidation, and risk-reward | | Risk Engine | Position sizing, max drawdown, exposure limits, revenge trading detection | | Journals | Trade entries with lessons, discipline scores, emotional state tracking | | Performance Analysis | Win rate, profit factor, expectancy, max drawdown, R-multiples | | Backtest Simulation | Equity curves, Monte Carlo, strategy comparison | | Accountability Cards | Public-facing trade explanations for transparency | | Portfolio Reports | Account-level performance summaries across all positions | | Exports | Markdown and JSON for sharing or further analysis |


SDK (in your code)

import { TradiaClient } from '@talocode/tradia'

const tradia = new TradiaClient()

// Propose a trade with full risk analysis
const proposal = await tradia.trade.propose({
  market: 'forex',
  symbol: 'XAUUSD',
  accountBalance: 500,
  riskPercent: 0.5,
  strategy: 'liquidity_sweep',
  entry: 2365.5,
  stopLoss: 2372,
  takeProfit: 2350,
})
// → { entry, stopLoss, takeProfit, riskReward, positionSize, maxDrawdown, invalidation }

// Journal the outcome
const journal = await tradia.trade.journal({
  trade: proposal,
  outcome: { pnl: 45.20, closed: true },
  lessons: ['Waited for confirmation — good discipline'],
})
// → { disciplineScore, lessons, emotionalState }

// Analyze performance over time
const analysis = await tradia.performance.analyze({
  trades: [journal, journal2, journal3],
  accountBalance: 500,
})
// → { winRate, profitFactor, expectancy, maxDrawdown }

CLI Reference

| Command | Description | |---------|-------------| | tradia propose | Generate a structured trade proposal | | tradia risk | Check risk parameters and position sizing | | tradia journal | Create a trade journal entry | | tradia performance | Analyze trading performance | | tradia backtest | Run a backtest simulation | | tradia portfolio | Generate a portfolio report | | tradia public-update | Generate a public accountability update | | tradia export | Export data as markdown or JSON |


API Server

# Start local server
PORT=3070 npx tradia-server

# Use any endpoint
curl -X POST http://localhost:3070/v1/tradia/trade/propose \
  -H 'Content-Type: application/json' \
  -d '{
    "symbol": "XAUUSD",
    "market": "forex",
    "accountBalance": 500,
    "riskPercent": 0.5,
    "entry": 2365.5,
    "stopLoss": 2372,
    "takeProfit": 2350
  }'

Talocode Cloud

import { TradiaClient } from '@talocode/tradia'

const tradia = new TradiaClient({
  apiKey: process.env.TALOCODE_API_KEY,
  useCloud: true,
})

All 14 endpoints available via Talocode Cloud API at api.talocode.site.


Safety

Tradia v0.1 is agentic trading intelligence, not live autonomous execution.

  • No real trade execution — does not connect to any broker
  • No financial advice — all outputs are educational analysis
  • No guaranteed profits — past performance does not guarantee future results
  • Human review required before action

License

MIT