npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@izara_project/izara-core-generate-service-code

v1.0.79

Published

Code for locally generating per service files

Readme

IzaraCore-SupportServices-GenerateServiceCodeV2

New implementation of the schema-driven service generator. The legacy GenerateServiceCode repository remains the behavior oracle during migration.

The first V2 seam is deliberately small:

GenerationRequest -> ProjectModel -> GenerationPlan -> Artifact[] -> committed files

test-lib-generateCode now points its local dependency at this checkout. Its V2 acceptance suites use only generate(rootPath, options). Legacy golden comparison remains an oracle review: generation and artifact paths pass, while content differences are not accepted automatically.

Current Slice

generate(rootPath, options) is the only public entrypoint. It loads the three schema directories once, emits every currently migrated schema, application, and resource slice, then commits all artifacts in one transaction and returns one GenerationResult. Managed artifacts retain their existing slice ownership, so stale files are cleaned without deleting legacy-owned output.

generate() rejects invalid project/schema/artifact input before it commits. If staging or replacing an output target fails (including a directory or symlink where a generated file belongs), it restores every affected artifact and manifest from the same transaction; callers receive the original error.

Current Cutover Boundary

V2 is generator-only for the current migration. test-lib-generateCode is the approved V2 consumer and calls the supported generate() API. Deployed services continue to use the legacy 1.x package for runtime imports; V2 does not provide legacy runtime exports such as generateCode, utils, consts, or libs.

Do not replace the legacy package in a deployed service with V2 until a separate runtime migration removes those generated-code imports and verifies the resulting service behavior. The legacy repository is read-only and non-runtime now. After the first successful V2 production deployment, 90 days and two release cycles must both complete before it is archived as a protected, read-only Git repository. Archive retains its tags, history, and fixtures; it does not delete the repository.

Generated function YAML preserves FunctionSetting hook blocks across regeneration and rollback. Completion SQS handlers retain the established callingFlow filter contract.

Internally, the custom-flow emitter owns fixture-level application artifacts for eventBridge, ownTopic, extTopic, lambdaSyncInv, lambdaSyncApi, and S3's five entry handlers. The Phase 7 contract is artifact-level (paths, JavaScript syntax, YAML and resource/IAM wiring), not an end-to-end invocation contract.

Architecture Status

The implemented V2 layout makes the pipeline ownership explicit:

src/compile/  request and local schema loading
src/plan/     GenerationPlan construction
src/emit/     schema, application, function, resource, and system emitters
src/output/   artifact validation, hook merge, and transaction commit

src/generate.js remains the high-level orchestration entrypoint. Emitter domains and their templates stay together beneath src/emit/; no pass-through modules were added only to mirror the proposed diagram. Internal modules are not part of the package API.

Development

npm test