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

lucasapp-cli

v0.6.8

Published

LucasApp CLI - Financial data management for AI agents

Downloads

1,354

Readme

LucasApp CLI

Manage LucasApp finances from the terminal. The CLI is built for humans, scripts, and AI agents: command output is structured JSON unless a command is explicitly interactive.

Install

npm install -g lucasapp-cli

Authenticate

lucas auth login
lucas auth status
lucas auth logout

login opens LucasApp in your browser and asks you to approve a short visible code. Credentials are stored locally in ~/.config/lucas/credentials.json with owner-only permissions. logout clears the local credentials and attempts to revoke the CLI device token server-side.

Common Commands

lucas accounts list --include-archived
lucas accounts create --name "Savings" --type SAVINGS --bank BCP --currency PEN
lucas accounts debt-detail <account-id> --mode current_cycle

lucas transactions list --from 2026-05-01 --to 2026-05-31 --search rappi --limit 10
lucas transactions create --account-id <id> --amount 35 --type EXPENSE --description "Lunch"

lucas transfers list --limit 10 --offset 0
lucas transfers create --from-account-id <id> --to-account-id <id> --amount 500

lucas subscriptions list --type SERVICE --limit 20
lucas subscriptions calendar --month 2026-05 --type SUBSCRIPTION --frequency MONTHLY
lucas subscriptions mark-paid <id>
lucas subscription-groups list
lucas subscription-charges pending --limit 10
lucas subscription-charges pay <charge-id>

lucas investments instruments --rank popular --limit 20
lucas investments refresh --action eod
lucas investments trade <account-id> --instrument-id <id> --side BUY --quantity 1 --price 100
lucas investments history <account-id> --range 90d

lucas loans list
lucas loans pay <id> --amount 750 --verified
lucas loans mark-paid <id> --verified

lucas stats summary
lucas stats by-category --year 2026 --month 5
lucas exchange-rate convert --from USD --to PEN --amount 25

lucas ai usage
lucas ai parse-expenses "lunch at Pardos S/ 35" --date 2026-05-08 --account-id <id>
lucas ai parse-expenses-image receipt.jpg --date 2026-05-08 --account-id <id>
lucas ai insights "How am I doing this month?" --period month --currency PEN

Command groups: auth, accounts, transactions, transfers, investments, subscriptions, subscription-groups, subscription-charges, loans, stats, categories, exchange-rate, and ai. The ai group is intentionally limited to usage, text/image expense parsing, and read-only insights.

List commands are intentionally agent-friendly:

  • transactions list supports --account-id, --account-ids, --category-id, --category-ids, --type, --search, --min-amount, --max-amount, --from, --to, --limit, and --offset.
  • transfers list supports --limit and --offset over transfer pairs. Each transfer pair still returns its two transaction rows.
  • subscriptions list supports --limit, --offset, --frequency, --type, and --group-id.
  • subscriptions calendar mirrors the backend monthly billing calendar, and subscription-groups exposes group list/create/update/delete/reorder.
  • subscription-charges exposes generated charges, pending-charge pagination, account-scoped charges, and pay/confirm/manual-paid actions.
  • investments mirrors the Premium backend contract for instrument discovery, portfolio overview, positions, activity, history, trades, cash adjustments, backend refresh jobs, and archived investment recovery.
  • accounts list --include-archived includes archived accounts in the account array and adds archivedAccounts metadata. Balance/debt totals remain the active-account totals returned by LucasApp.
  • exchange-rate convert --amount <n> includes a client-side convertedAmount derived from the backend rate.

JSON Output

Success:

{ "ok": true, "data": { "example": true } }

Error:

{
  "ok": false,
  "error": {
    "message": "Not authenticated. Run: lucas auth login",
    "statusCode": 401
  }
}

Security Notes

  • Do not pass arbitrary local files to agent-driven commands.
  • parse-expenses-image accepts only real JPG, PNG, WebP, or HEIC files and rejects symlinks, suspicious credential paths, unsupported extensions, and oversized images.
  • Resource IDs are validated before building API paths.
  • Backend error details are summarized by default. Set LUCAS_DEBUG=1 only while debugging locally; sensitive fields are redacted.
  • Network failures return structured JSON instead of raw Node stack traces.
  • The default production API is https://api.lucasapp.app.
  • LUCAS_API_URL is intended for local development and advanced testing. Normal users should keep the default production URL.
  • Never commit .env, .npmrc, credentials, keys, certificates, service account files, database dumps, or private fixtures.

Development

bun install --frozen-lockfile
bun run format:check
bun run typecheck
bun run lint
bun run test
bun run build
npm pack --dry-run --json --ignore-scripts

The npm package publishes only the built CLI and package metadata. Releases use npm Trusted Publishing with provenance; do not add long-lived npm tokens to the repository or workflow.

License

MIT