@ffacet/bootstrap
v0.1.0
Published
facet 카탈로그 단일 출처. bubbleSort/bfs/queue/stack/array/linkedList/bst/hashTable/lruCache/messagingPubsub/cachingCdn/relationalTablesAndKeys/conditionalStatement/tokenization/asymmetricRsa/linearRegression/contextSwitching/matrixTransform2d/ipRouting lazy load
Downloads
77
Maintainers
Readme
@ffacet/bootstrap
FACET facet 카탈로그 단일 출처다. View·트랜스파일러 6종을 정적 등록하고, algorithm facet 19종을 lazy loader(import())로 등록한다. facet 모듈을 로드하지 않고도 추가 가능한 시각화 목록을 조회하는 빌드타임 카탈로그를 제공한다.
설치
npm install @ffacet/bootstrap @ffacet/core@ffacet/core 는 peerDependency 다 — 호스트의 단일 registry 인스턴스를 공유하기 위해 직접 설치해야 한다. @ffacet/core 의 registry 단일 인스턴스 설명을 참고하라.
사용
import { bootstrapFacet, getFacetCatalog } from '@ffacet/bootstrap';
bootstrapFacet(); // 앱 부팅 시 1회 — View/트랜스파일러 등록 + facet lazy loader 매핑
const catalog = getFacetCatalog(); // [{ id, title, description, domain }, ...] — facet 모듈 미로드bootstrapFacet() 호출 후, 각 facet 은 실제 재생 시점에 lazy chunk 로 로드된다. getFacetCatalog() 는 빌드타임 매니페스트만 동기 조회하므로 facet chunk 를 로드하지 않는다.
공개 API
| export | 설명 |
| --- | --- |
| bootstrapFacet() | View/트랜스파일러 정적 등록 + facet lazy loader 매핑 (부팅 시 1회) |
| getFacetCatalog() | facet 모듈 미로드 상태로 추가 가능 시각화 목록 조회 |
| FacetCatalogEntry | 카탈로그 항목 타입 |
라이선스
MIT
