Login or sign up
For business
Average ratingGreat
4.2/ 5

Based on 5 reviews

540%
440%
320%
20%
10%
Ask AI

Questions about Cruft

Based on 5 reviews, listing data and website checks · updated 5 days ago

What is Cruft?

Cruft is an alpha-release JavaScript runtime and application stack designed for agents. It runs untrusted JavaScript in isolated compartments with explicitly granted capabilities and enforced timeouts. The stack supports npm packages, built-in PostgreSQL and SQLite databases, HTTP, TLS, HTTP/2, and cryptographic functions. It is available for macOS, Linux, and Windows.

How does the compartment isolation mechanism work?

The runtime executes untrusted code like plugins, dependencies, and a model's output across threads that share a single garbage-collected heap. This architecture allows running thousands of compartments without the per-worker VM cost found in other systems. Each compartment operates in a separate realm with its own globalThis, ensuring capabilities are only granted by explicit request.

What is CruftScript and how does it differ from TypeScript?

Cruft includes a sound, statically typed language called CruftScript that sits on top of the engine. Unlike TypeScript, it keeps types and enforces them at the boundary where untyped data enters. The checker rejects any and unproven casts, preventing implicit escapes and ensuring secure type boundaries.

What components are built into a single binary?

The entire stack, including the parser, JIT, GC, TLS, HTTP/2, two database engines, and the package manager, is written in Rust. This means the code running your code is code the project can fully account for, with no vendored components on the hot path. Everything is contained within a single binary.

How do the built-in databases handle data validation?

The built-in database engines include PostgreSQL and SQLite, both embedded directly into the runtime. The ORM validates rows at the crossing, halting execution if a cell drifts from its column's declared type rather than silently returning garbage. This ensures data integrity for queries like filtering users by age.

How can I install Cruft on my system?

To get started, users can install the runtime via npm using the command 'npm i -g cruftjs'. Alternatively, they can use the provided install scripts for macOS, Linux, or Windows. The website notes that version 0.0.10 is an alpha release and should not be used in production environments.

Who builds and maintains Cruft?

The project is built by Jared Foy, who owns and operates Frist Development, LLC. Frist Development is a web development agency that specializes in marketing sites built in Webflow. Cruft is maintained under cruftless.dev as a long-term project separate from the agency's core services.

What are the official channels for contacting the team?

The team can be reached via email at support@cruft.sh for bugs, questions, security reports, licensing, or trademark inquiries. For public bug tracking and feature requests, users are encouraged to open an issue on the Cruft GitHub repository instead.

How does the memory model compare to Node.js worker_threads?

The system uses a shared heap across workers, which contrasts with Node's worker_threads that require gigabytes of memory for similar tasks. This approach allows hundreds of MiB of memory usage where other systems might need gigabytes, making it efficient for running many isolated compartments.

How does Cruft implement its HTTP and Node-like features?

The runtime includes a compat surface for HTTP and other Node-like features, but these are implemented by Cruft's own Rust code rather than relying on libuv or C++. This ensures the engine, JIT, and GC are all part of the same accountable stack.

What is the current version and what are the production constraints?

The project explicitly states that version 0.0.10 is an alpha release and should not be used in production. This caution is reiterated in the footer and about sections, emphasizing the experimental nature of the current build.

How does the team handle communication with users?

The website states that the fastest way to reach the team is via email, and that a real person named Jared Foy reads all incoming messages. This personal touch is part of the contact policy for the project.

What is the official website of Cruft?

The official website of Cruft is cruft.sh.

How is Cruft rated on Trustburn?

On Trustburn, Cruft has a rating of 4.2 out of 5 based on 5 reviews.

AI-generated from reviews on this page. Verify anything important with the company directly.

Emily Watson
Reviews 1

The technical approach to isolation and shared heaps is genuinely impressive for agent workloads. However, the site mentions it is an alpha release, which makes me wonder about the long-term stability. Also, I did not see any clear information about licensing or pricing structures yet.

Michael Chen
Reviews 1

The architecture behind Cruft is really compelling, especially for anyone dealing with third-party plugins or model outputs. The idea of compartments that run untrusted code with enforced timeouts and explicit capability grants is exactly what the industry needs. It is refreshing to see a runtime that owns its entire stack, from the engine to the package manager, rather than just assembling parts. This ownership likely translates to better security guarantees and performance. The inclusion of embedded SQLite and Postgres, along with a sound ORM, means you do not need to bolt on a bunch of dependencies. The fact that it supports TypeScript natively without a separate build step is a huge plus for modern development workflows. It seems like a robust solution for scaling worker compartments.

Sarah Jenkins
Reviews 1

What really stands out is how Cruft manages to combine deep isolation with a full ecosystem. The ability to run untrusted code in compartments with strict timeouts, while still having access to node built-ins and WebCrypto, feels like a massive leap forward. The fact that it uses a shared heap across workers without the heavy memory overhead of traditional VMs is genuinely impressive. It seems like the team has thought deeply about security without sacrificing the developer experience. Having the ORM and database engines built right in also removes a lot of friction. For anyone building agent-based systems, this looks like a very exciting tool to watch.

News

No news yet. This is where the business shares its own updates and press.

Photos

No photos yet. Photos shared by reviewers will show up here.

Widgets

Boost your business trust by displaying a widget on your website — a simple way to convert your visitors into customers.

Get the widget for your site →

About Cruft

Cruft is an alpha-release JavaScript runtime and application stack for agents. It runs untrusted JavaScript in isolated compartments with explicitly granted capabilities and enforced timeouts. The stack includes support for npm packages, built-in PostgreSQL and SQLite databases, HTTP, TLS, HTTP/2, and cryptographic functions. Cruft is available for macOS, Linux, and Windows, but the website states that version 0.0.10 should not be used in production.

Website
cruft.sh