Skip to content

About

Shared data layer for the Decodie ecosystem. Provides TypeScript types, a data parser, and a content-based reference resolver used by decodie-ui, decodie-ui-shared, and decodie-vscode.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

37 Commits

Folders and files

Repository files navigation

Decodie

Decodie Core

Shared data layer for the Decodie ecosystem. Provides TypeScript types, a data parser, and a content-based reference resolver used by decodie-ui, decodie-ui-shared, and decodie-vscode.

What's included

  • Types -- TypeScript interfaces for all .decodie/ data structures (index entries, session entries, config, references, resolutions)
  • Parser -- Reads and caches index.json, session files, and config. Merges index metadata with session content. Supports cache invalidation for file watchers.
  • Reference Resolver -- Content-based anchor matching that maps entries to source code using function signatures and class declarations instead of line numbers. Handles exact, fuzzy, drifted, and stale resolution statuses.

Installation

npm install @owenbush/decodie-core

Usage

import { DataParser, resolveReference } from '@owenbush/decodie-core';

const parser = new DataParser('/path/to/project');
const index = parser.loadIndex();
const entry = parser.getEntryWithContent('entry-1234-abcd');

Zero runtime dependencies

This package uses only Node.js built-ins (fs, path, crypto).

Tests

npm test

Related Repositories

About

Shared data layer for the Decodie ecosystem. Provides TypeScript types, a data parser, and a content-based reference resolver used by decodie-ui, decodie-ui-shared, and decodie-vscode.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages