News for hackers. Stuff that matters.

Sahil121

Show HN: NPM install is a security hole, so we built a guard for it

https://github.com/safedep/pmg

`npm install` is more trusted than it should be.PMG is a guard in front of your package manager that intercepts installs and blocks malicious dependencies before they land on your system.It also consists of an sandbox layer which protects you from unknown malicious threats.Curious if install-time enforcement makes sense in your workflow.

( Read More... | no comments | on HN )

Show HN: Minimal container-like sandbox built from scratch in C

https://github.com/Sahilb315/runbox

Runbox recreates core container features without relying on existing runtimes or external libraries. It uses namespaces, cgroups v2, and seccomp to create an isolated process environment, with a simple shell for interaction. For future gonna work on adding an interface so external applications can be executed inside Runbox, similar to containers.Github: https://github.com/Sahilb315/runboxHappy...

( Read More... | no comments | on HN )
Re:Show HN: A Database Written in Golang on Wednesday February 26, 2025 @01:21PM (#43186439)
thanks for the suggestion man, will definitely think about this
Re:Show HN: A Database Written in Golang on Wednesday February 26, 2025 @01:20PM (#43186421)
sure man
Re:Show HN: A Database Written in Golang on Wednesday February 26, 2025 @12:30PM (#43185892)
it is kind of a sql db but currently does not have the query lang (sql lang) & data is stored in tables similar to other relational DBs. Still have a lot of stuff to add & fix Will add more detail to it
Re:Show HN: A Database Written in Golang on Wednesday February 26, 2025 @12:27PM (#43185869)
yes man it is currently a sql db, have to work on adding query language thanks for checking it out
Re:Show HN: A Database Written in Golang on Wednesday February 26, 2025 @12:26PM (#43185853)
Re:Show HN: A Database Written in Golang on Wednesday February 26, 2025 @12:24PM (#43185834)
will surely checkout thanks man
Re:Show HN: A Database Written in Golang on Wednesday February 26, 2025 @12:24PM (#43185830)
thanks man
Re:Show HN: A Database Written in Golang on Wednesday February 26, 2025 @12:23PM (#43185824)
thanks man yes currently it is not a fully sql database (have to add query support) My fav part of code is the data retrieval code because had some issues there & got to know lot about it

Learnt about B+ Trees, transactions, managing concurrent reads & data presistence

Re:Show HN: A Database Written in Golang on Wednesday February 26, 2025 @12:16PM (#43185728)
yes man have to work on adding the sql cmd support thanks for the links

Show HN: A Database Written in Golang

https://github.com/Sahilb315/AtomixDB

Recently created a minimal persistent relational database in Go. Main focus was on implementing & understanding working the of database, storage management & transaction handling. Use of B+ Tree for storage engine(support for indexing), managing a Free List (for reusing nodes), Support for transactions, Concurrent Reads. Still have many things to add & fix like query processing...

( Read More... | 69 comments | 76 points | on HN )