JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2
  • Score
    100M100P100Q77280F
  • License ISC

A TypeScript utility library for code analysis

Package Exports

  • codn_ts
  • codn_ts/utils/lsp_core
  • codn_ts/utils/os_utils
  • codn_ts/utils/reference_analyzer
  • codn_ts/utils/symbol_utils

Readme

codn_ts - Multi-language Code Analysis Toolkit

TypeScript Node.js

codn_ts is a Language Server Protocol (LSP) based code analysis tool that provides cross-language code intelligence capabilities.

Features

Current Capabilities

  • 🗂️ Multi-language source code analysis
  • 🔍 Symbol reference detection (functions, classes, methods, etc.)
  • 📊 Code relationship visualization (caller-callee triples)
  • 🌐 Supports:
    • TypeScript/JavaScript
    • Python
    • C/C++
    • (More languages coming soon)

Planned Features

  • 🧩 Plugin system for language extensions
  • 📈 Advanced code metrics collection
  • 🏗️ Architecture dependency graphs
  • 🔗 Cross-file reference analysis

Installation

npm install -g codn_ts
# or
yarn global add codn_ts

Usage

CLI Interface

# Analyze references in a project
codn_ts analyze /path/to/project

# Detect project languages
codn_ts detect-lang /path/to/project

# (More commands coming soon)

Programmatic API

import {
  analyzeProjectReferences,
  detectDominantLanguages
} from 'codn_ts';

// Analyze code references
const triples = await analyzeProjectReferences(projectPath);

// Detect project languages
const languages = await detectDominantLanguages(projectPath);

Examples

Basic Analysis

codn_ts analyze ./my-project > analysis.json

Integration Example

const analysis = await analyzeProjectReferences('./src');
analysis.forEach(({caller, callee}) => {
  console.log(`${caller}${callee}`);
});

Development

Build

git clone https://github.com/dweb-lab/codn_ts.git
cd codn_ts
npm install
npm run build

Contributing

We welcome contributions! Please see our Contribution Guidelines.

Architecture

codn_ts/
├── core/            # LSP core implementation
├── analyzers/       # Language-specific analyzers
├── utils/           # Shared utilities
├── cli/             # Command line interface
└── plugins/         # (Future) Plugin system

Roadmap

  • Basic TypeScript analysis
  • Multi-language support
  • Advanced visualization
  • Plugin API
  • CI/CD pipeline

License

MIT © askender