
Security News
Ruby's Bundler 4.0.18 Extends Cooldown to bundle lock and bundle cache
The supply chain control that delays freshly published gems now covers lockfile generation and gem vendoring in Ruby projects.
@nowline/core
Advanced tools
Reads and checks the Nowline roadmap language — the parser and validator every Nowline tool builds on.
Parser, typed AST, and validator for the Nowline DSL. Pure TypeScript, built on Langium, no DOM or Node-specific APIs in the hot path. This package is the foundation everything else in the toolchain (@nowline/layout, @nowline/renderer, @nowline/cli, @nowline/lsp) is built against.
pnpm add @nowline/core
import { createNowlineServices, resolveIncludes } from '@nowline/core';
import { URI } from 'langium';
import { readFile } from 'node:fs/promises';
const { shared, Nowline } = createNowlineServices();
const text = await readFile('roadmap.nowline', 'utf-8');
const doc = shared.workspace.LangiumDocumentFactory.fromString(
text,
URI.file('/absolute/path/to/roadmap.nowline'),
);
await shared.workspace.DocumentBuilder.build([doc], { validation: true });
const ast = doc.parseResult.value; // typed AST root: NowlineFile
const parserErrors = doc.parseResult.parserErrors;
const diagnostics = doc.diagnostics ?? []; // validation errors/warnings
const resolved = await resolveIncludes(ast, '/absolute/path/to/roadmap.nowline', {
services: Nowline,
});
resolved.config.styles; // Map<string, StyleDeclaration>
resolved.content.swimlanes; // Map<string, SwimlaneDeclaration>
resolved.content.isolatedRegions;
resolved.diagnostics; // Array<ResolveDiagnostic>
For embedding in editors or one-shot validation against a string:
import { createNowlineServices } from '@nowline/core';
import { URI } from 'langium';
const { shared } = createNowlineServices();
const doc = shared.workspace.LangiumDocumentFactory.fromString(
text,
URI.parse('memory:///roadmap.nowline'),
);
await shared.workspace.DocumentBuilder.build([doc], { validation: true });
const ast = doc.parseResult.value;
src/language/nowline.langium (Langium, indentation-aware).src/generated/ast.ts — use isItemDeclaration, isSwimlaneDeclaration, etc. as type guards.After editing the grammar, regenerate:
pnpm run langium:generate
pnpm test # one-shot
pnpm test:watch # watch mode
Apache 2.0.
FAQs
Reads and checks the Nowline roadmap language — the parser and validator every Nowline tool builds on.
We found that @nowline/core demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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
The supply chain control that delays freshly published gems now covers lockfile generation and gem vendoring in Ruby projects.

Security News
During a UK cyber test, a Mythos 5 agent used sockpuppets, social engineering, and prompt injection to try to get a maintainer to merge malware.

Company News
Socket is now in the AWS Security Hub Extended plan. Adopt it through AWS, apply committed spend, and block malicious open source packages.