frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

Show HN: I've made an easy to extend and flexible JavaScript logger

https://github.com/inshinrei/halua
7•inshinrei•22h ago
hi! I've made a logger for JS/TS. It's easily extendable, easy to use and configure.

Would like to hear a feedback from you!

Comments

gus_massa•10h ago
In case someone miss the link at the bottom of the readme, there is a detailed explanation in https://github.com/inshinrei/halua/blob/main/docs/tour_of_ha...
inshinrei•6h ago
thanks for highlighting, I've updated the README file and move docs on top with "documentation" header so that it will be easier to find
inshinrei•6h ago
i'm also leaving an example of production app setup here:

import {Level, halua, NewTextHandler, NewJSONHandler, NewWebConsoleHandler} from 'halua'

// an array of handlers that would accept logs

let handlers = [

  NewJSONHandler(writeToZipArchive, {level: Level.Info}), // writes to client-size archive, only logs that are Info-Level or higher

  NewTextHandler(sendToServer, {level: Level.Notice}), // writes to server, only logs tat are Notice-level or higher
  
  NewTextHandler(sendUserAction, {level: Level.Info + 1}), // we will log user actions on a different level, so that it will be easy to filter

  NewTextHandler(sendToErrorMonitoringSystem, {level: Level.Fatal}) // writes to monitoring system
]

if (debug) {

  handlers.push(NewWebConsoleHandler(self.console)) // writes to web / nodejs console
}

// now we have to apply the handlers we created

let logger = halua.New(handlers)

// or

halua.setHandler(handlers)

// later, you may call .New on any logger instance to get a new instance

Thomaschaaf•1h ago
Can you give insights into what makes it different from e.g. pino[1]? It's amazingly even faster than console.logging because of the way it buffers the data.

[1]: https://github.com/pinojs/pino

matsemann•1h ago
Pino seems to be catered for backend, while this project looks to be more for web clients?

Tidewave Web: in-browser coding agent for Rails and Phoenix

https://tidewave.ai/blog/tidewave-web-phoenix-rails
69•kieloo•2h ago•9 comments

AGENTS.md – Open format for guiding coding agents

https://agents.md/
583•ghuntley•12h ago•266 comments

How to Think About GPUs

https://jax-ml.github.io/scaling-book/gpus/
163•alphabetting•1d ago•39 comments

Show HN: Claude Code workflow: PRDs → GitHub Issues → parallel execution

https://github.com/automazeio/ccpm
17•aroussi•1h ago•3 comments

Ask HN: Why does the US Visa application website do a port-scan of my network?

241•mbix77•6h ago•101 comments

How to Draw a Space Invader

https://muffinman.io/blog/invaders/
364•abdusco•13h ago•40 comments

GiveCampus (YC S15) Hiring Rails engineers passionate about education

https://givecampus.breezy.hr/p/0c4a97691730
1•mkong1•20m ago

Copilot broke audit logs, but Microsoft won't tell customers

https://pistachioapp.com/blog/copilot-broke-your-audit-log
566•Sayrus•12h ago•203 comments

MapLibre Tile: A next generation geospatial format optimized for rendering

https://arxiv.org/abs/2508.10791
7•mtremmel•2d ago•0 comments

How we exploited CodeRabbit: From simple PR to RCE and write access on 1M repos

https://research.kudelskisecurity.com/2025/08/19/how-we-exploited-coderabbit-from-a-simple-pr-to-rce-and-write-access-on-1m-repositories/
621•spiridow•20h ago•208 comments

The End of Handwriting

https://www.wired.com/story/the-end-of-handwriting/
55•beardyw•2d ago•97 comments

D2 (text to diagram tool) now supports ASCII renders

https://d2lang.com/blog/ascii/
344•alixanderwang•18h ago•52 comments

The Block Stacking Problem

https://sites.pitt.edu/~jdnorton/Goodies/block_stacking/block_stacking.html
13•lisper•2d ago•0 comments

Tiny microbe challenges the definition of cellular life

https://nautil.us/a-rogue-new-life-form-1232095/
111•jnord•13h ago•31 comments

Customizing Lisp REPLs

https://aartaka.me/customize-repl.html
26•nemoniac•2d ago•8 comments

How I Made Ruby Faster Than Ruby

https://noteflakes.com/articles/2025-08-18-how-to-make-ruby-faster
52•ciconia•2d ago•14 comments

The value of hitting the HN front page

https://www.mooreds.com/wordpress/archives/3530
122•mooreds•10h ago•45 comments

Gaussian Processes for Machine Learning (2006) [pdf]

https://gaussianprocess.org/gpml/chapters/RW.pdf
36•susam•1d ago•6 comments

Intel Foundry Demonstrates First Arm-Based Chip on 18A Node

https://hothardware.com/news/intel-foundry-demos-deer-creek-falls-reference-soc
73•rbanffy•1d ago•31 comments

Mirrorshades, the Cyberpunk Anthology

https://www.rudyrucker.com/mirrorshades/HTML/
13•keepamovin•4h ago•5 comments

Type-machine

https://arthi-chaud.github.io/posts/type-machine/
27•todsacerdoti•7h ago•7 comments

Emacs as your video-trimming tool

https://xenodium.com/emacs-as-your-video-trimming-tool
252•xenodium•19h ago•127 comments

Fast and observable background job processing for .NET

https://github.com/mikasjp/BusyBee
24•mikasjp•2d ago•7 comments

Show HN: I've made an easy to extend and flexible JavaScript logger

https://github.com/inshinrei/halua
7•inshinrei•22h ago•5 comments

Rails Charts Using ECharts from Apache

https://github.com/railsjazz/rails_charts
55•amalinovic•2d ago•4 comments

Candle Flame Oscillations as a Clock

https://cpldcpu.com/2025/08/13/candle-flame-oscillations-as-a-clock/
304•cpldcpu•4d ago•68 comments

Databricks is raising a Series K Investment at >$100B valuation

https://www.databricks.com/company/newsroom/press-releases/databricks-raising-series-k-investment-100-billion-valuation
57•djhu9•6h ago•63 comments

Without the futex, it's futile

https://h4x0r.org/futex/
277•eatonphil•22h ago•126 comments

CRDT: Text Buffer

https://madebyevan.com/algos/crdt-text-buffer/
139•skadamat•16h ago•6 comments

Tiny, removable "mini SSD" could eventually be a big deal for gaming handhelds

https://arstechnica.com/gadgets/2025/08/tiny-removable-mini-ssd-could-eventually-be-a-big-deal-for-gaming-handhelds/
61•quantummagic•3d ago•63 comments