
Security News
New CVE Forecasting Tool Predicts 47,000 Disclosures in 2025
CVEForecast.org uses machine learning to project a record-breaking surge in vulnerability disclosures in 2025.
turbo-daemon
Advanced tools
A tool for running turbo locally as a demon that can be integrated with monorepo scripts.
A tool for running turbo locally as a demon that can be integrated with monorepo scripts.
pnpm add turbo-daemon
Or from git: In your package.json:
"devDependencies": {
"turbo-daemon": "github:NullVoxPopuli/turbo-daemon"
}
To test out a specific branch / tag:
"devDependencies": {
"turbo-daemon": "github:NullVoxPopuli/turbo-daemon#branch-name"
}
In your tooling that wraps turbo
commands,
add a function that determines what the turbo environment variables should be.
For example:
import { execa } from 'execa';
import { createDaemon, TURBO_TOKEN } from 'turbo-daemon';
import ci from 'ci-info';
const daemon = createDaemon();
const TURBO_TEAM = 'team_your_team_name_here';
async function getServer() {
if (ci.isCI) {
return {
TURBO_API: 'https://turborepo.your-domain-here.com',
TURBO_TEAM,
TURBO_TOKEN: process.env['TURBO_TOKEN'],
}
}
/**
* Environment variables from
* https://ducktors.github.io/turborepo-remote-cache/environment-variables.html
*
* These environment variables are required for the daemon to have
* access to remote storage.
* If these are omitted, turbo will still work, but fallback to local, in-repo cache.
*/
Object.assign(process.env, {
TURBO_TEAM,
/* ... */
});
await daemon.ensureStarted();
return {
TURBO_API: `http://localhost:${daemon.info.data.port}`,
TURBO_TEAM,
TURBO_TOKEN,
}
}
/**
* have your package.json scripts call this instead of turbo directly
*/
export async function wrappedTurbo(args) {
const connectionInfo = await getServer();
await execa(`pnpm`, [`turbo`, ...args], {
env: {
...connectionInfo,
}
})
}
This project stores files in <git root>/node_modules/.turbo-daemon/
pnpm turbo-daemon start
or when working in this project:
pnpm cli start
pnpm turbo-daemon restart
or when working in this project:
pnpm cli restart
pnpm turbo-daemon stop
or when working in this project:
pnpm cli stop
pnpm turbo-daemon status
or when working in this project:
pnpm cli status
pnpm turbo-daemon logs
or when working in this project:
pnpm logs
watch -n 2 "cat node_modules/.turbo-daemon/.turbo.pid"
in this project, run:
node ./src/run-turbo.js
and observe the output, logs, and pidfile.
If that's fine, try the daemonized version:
pnpm cli start
ls -la node_modules/.turbo-daemon/**
This may require
shopt -s globstar
and to watch for changes:
watch -n 2 "ls -la node_modules/.turbo-daemon/**"
find . -name '.turbo' -type d -prune -exec rm -rf '{}' +
.turbo
folders are in each package's node_modules
directory.
To see if your local credentials have access to the s3 bucket, run:
❯ aws s3 ls $NAME_OF_BUCKET
# output doesn't matter
❯ echo $?
0 # this is what you're looking for
FAQs
A tool for running turbo locally as a demon that can be integrated with monorepo scripts.
The npm package turbo-daemon receives a total of 3,341 weekly downloads. As such, turbo-daemon popularity was classified as popular.
We found that turbo-daemon demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
CVEForecast.org uses machine learning to project a record-breaking surge in vulnerability disclosures in 2025.
Security News
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Research
Security News
Eight new malicious Firefox extensions impersonate games, steal OAuth tokens, hijack sessions, and exploit browser permissions to spy on users.