Skip to content

tiagordebarros/vero

Repository files navigation

Vero Cover

Vero β€” See the Truth in Your Code


A zero-dependency, isomorphic visual logger that makes console.log actually beautiful.
Built for developers who care deeply about Developer Experience (DX).


πŸŽ₯ Video Demo

Watch the demo


⚑ Why Vero Exists

Let’s be honest.

console.log() is functional β€” but not expressive.

  • Walls of unformatted objects
  • [Object object] noise
  • No circular reference handling
  • Manual performance timing
  • Tables that collapse in narrow terminals

Vero fixes that β€” without breaking the console.

It is not a production logger.
Use Pino or Winston for structured production logging.

Vero is a visual debugger for development.


🎯 Core Principles

  • πŸ›‘ Zero Dependencies
  • 🌐 Isomorphic by Design
  • πŸ”Œ Does NOT override globalThis.console
  • 🎨 Type-aware color formatting
  • πŸ“ Responsive ASCII tables
  • ⏱ Visual performance timers
  • 🧠 Runtime-agnostic (Web Standards only)

πŸš€ Installation

# Deno
deno add jsr:@tiagordebarros/vero
# pnpm
pnpm i jsr:@tiagordebarros/vero
# pnpm (using pnpm 10.8 or older)
pnpm dlx jsr add @tiagordebarros/vero
# Yarn
yarn add jsr:@tiagordebarros/vero
# Yarn (using Yarn 4.8 or older)
yarn dlx jsr add @tiagordebarros/vero
# vlt
vlt install jsr:@tiagordebarros/vero
# npm
npx jsr add @tiagordebarros/vero
# Bun
bunx jsr add @tiagordebarros/vero

πŸ§ͺ Quick Start

import { logger } from "@tiagordebarros/vero";

logger.info("Hello world");
logger.success("It works!");

🎨 Smart Object Formatting

const user = {
  id: 1,
  name: "Alice",
  roles: ["admin", "editor"],
  meta: { active: true },
};

logger.info(user);

βœ” Circular-safe
βœ” Depth-limited
βœ” Type-aware coloring
βœ” Clean nested visualization


πŸ“ Responsive Tables

logger.table([
  { endpoint: "/api/v1", latency: "12ms", status: 200 },
  { endpoint: "/api/auth", latency: "450ms", status: 500 },
]);
  • Two-pass column width calculation
  • Unicode box drawing
  • Auto card-view fallback on narrow terminals
  • Layout adapts to terminal width

⏱ Visual Performance Timing

logger.time("DatabaseQuery");
await db.query("SELECT * FROM users");
logger.timeEnd("DatabaseQuery");

Example output:

⏱ DatabaseQuery    β– β– β– β– β– Β·Β·Β·Β·    42.3ms

Color-coded thresholds:

  • 🟒 < 50ms
  • 🟑 < 200ms
  • πŸ”΄ > 200ms

🌐 Runtime Support

Vero works identically across:

  • πŸ¦• Deno
  • 🟒 Node.js
  • πŸ₯Ÿ Bun
  • ☁️ Cloudflare Workers
  • 🌐 Browsers

No runtime hacks.
No conditional builds.
Only Web Standards.


πŸ— Architecture

The project follows a layered architecture:

  • constants/ β†’ visual & theme primitives
  • core/ β†’ logger engine & configuration
  • formatting/ β†’ ANSI, layout & object formatting
  • performance/ β†’ benchmarking & timing utilities
  • utils/ β†’ environment & terminal helpers
  • types/ β†’ public type definitions
  • mod.ts β†’ public entrypoint

For full technical details, see:

➑ ARCHITECTURE.md


πŸ“š Documentation

  • CONTRIBUTING.md
  • SECURITY.md
  • SUPPORT.md
  • ARCHITECTURE.md

πŸ›‘ Stability Guarantees

Vero guarantees:

  • No console override
  • No runtime coupling
  • No external dependencies
  • Stable public API
  • Deterministic formatting behavior

πŸ—Ί Roadmap

  • Plugin system
  • Theme system
  • Extended browser styling
  • Terminal charts
  • Implement OSC 8
  • Coverage automation

🀝 Contributing

Before submitting a PR, read CONTRIBUTING.md.

Architectural rules are strict:

  • Zero Dependencies
  • Isomorphic only
  • No console override
  • No runtime-specific branches

This is intentional.


πŸ’– Support

If Vero improves your DX, consider sponsoring development.

See FUNDING.yml for available options.


πŸ“œ License

MIT Β© 2026
Tiago Ribeiro de Barros
ORCID: https://orcid.org/0000-0001-6823-3562

See LICENSE for more details.


🌟 Why β€œVero”?

From Latin verus β€” truth.

See the truth in your code.


⭐ Star this repository if Vero made your terminal beautiful.

About

Beautiful and simple visual debugger.

Resources

License

Code of conduct

Contributing

Security policy

Stars

4 stars

Watchers

1 watching

Forks

Sponsor this project

 

Contributors

Languages