Observed since 20 Oct, 17:42 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
Python tooling for analyzing, cleaning, and enriching React / TypeScript projects.
abstract_react started as an automated TypeScript import/helper toolkit and gradually expanded into a broader project utility layer for React and TypeScript codebases. It now includes import cleanup, dependency graph analysis, metadata generation, domain/title utilities, and build/path helpers — all driven from Python.
Frontend projects often end up needing automation that lives outside the frontend itself.
Whether the goal is cleaning imports, tracing dependency structure, generating metadata, or supporting a larger publishing/build pipeline, the usual Node-only toolchain is not always the most convenient orchestration layer.
abstract_react exists to let Python drive that work.
This is not a React component library.
This is a Python-side utility package for working around React and TypeScript projects:
That distinction matters.
React / TypeScript project
│
├── import parsing + reconstruction
│
├── export / re-export inspection
│
├── dependency graph building
│
├── metadata + Open Graph generation
│
└── path/build utility support
pip install abstract-react
Or from source:
git clone <your-repo-url>
cd abstract_react
pip install -e .
from pathlib import Path
from abstract_react.analyze_utils.src.graph_utils import build_graph_reachable
graph = build_graph_reachable(
entry=Path("src/main.tsx"),
src_root=Path("src")
)
print(graph["nodes"])
print(graph["edges"])
from abstract_react.clean_imports.src.functions.importUtils import extract_all_imports_robust
imports = extract_all_imports_robust("src/example.ts")
for imp in imports:
print(imp.from_path, imp.imports)
from abstract_react.clean_imports.src.functions.importUtils import extract_all_imports_robust
from abstract_react.clean_imports.src.functions.fileUtils import replace_imports_in_file
imports = extract_all_imports_robust("src/example.ts")
replacement = replace_imports_in_file(
file_path="src/example.ts",
new_imports=[
'import { something } from "./utils";'
],
imports=imports
)
print(replacement.new_content)
from abstract_react.meta_utils.generators.metadata_builder import generate_metadata
info = {
"title": "Example Page",
"description": "Example description",
"share_url": "https://example.com/page",
"thumbnail": "thumb.jpg",
"thumbnail_link": "https://example.com/thumb.jpg",
}
meta = generate_metadata(info)
print(meta["og"])
print(meta["twitter"])
abstract_react/
├── analyze_utils/
│ ├── graph analysis
│ ├── worker utilities
│ └── import/export inspection
├── clean_imports/
│ ├── import parsing
│ ├── file reconstruction
│ ├── schemas
│ └── replacement utilities
├── meta_utils/
│ ├── metadata builders
│ ├── Open Graph helpers
│ ├── Twitter helpers
│ ├── title/domain utilities
│ └── API-facing helpers
├── build_utils/
│ └── path/build helpers
This package grew outward from a narrower original purpose.
It began as automated TypeScript helper/import tooling, but the same workflows naturally led into adjacent needs:
So while the package is broader now than the original intent, the growth is still coherent: it is all centered on Python-controlled tooling for React/TypeScript projects.
CLI entrypoints for common workflows
clearer public API surface
graph export targets beyond DOT
project config presets
stronger separation between:
Actively evolving utility package.
Originally import-focused. Now a broader automation toolkit for React/TypeScript ecosystems managed from Python.
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 0.0.0.155 | 6 Jun 2026 | 5 |
This describes our collected data; it is not a security assessment.
Shared repository data · GitHub
Observed since 20 Oct, 17:42 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:d5a7e1a99b08a47afd0b91bd8c613d323c980dd57d389dbc112d72ab32fa26f2