
Product
Introducing Tier 1 Reachability: Precision CVE Triage for Enterprise Teams
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
create-craftjs
Advanced tools
A starter kit backend framework powered by Express, TypeScript, EJS Engine, and Prisma — designed for rapid development, simplicity, and scalability.
A starter kit backend framework powered by Express, TypeScript, EJS Engine, and Prisma — designed for rapid development, simplicity, and scalability.
craft
) for project automation💡 Note: EJS View Engine is included but disabled by default. To enable it: Open src/application/web.ts and uncomment the following lines:
import expressLayouts from "express-ejs-layouts";
import path from "path";
web.set("view engine", "ejs");
web.set("views", path.join(\_\_dirname, "..", "views"));
web.use(expressLayouts);
web.set("layout", "layouts/main");
Then, go to src/routes/main-route.ts and uncomment this:
mainRouter.get("/", (req, res) => {
res.render("index", { title: "Home Page" });
});
npx create-craftjs my-app
OR
npm init craftjs my-app
cd my-app
npm install
node craft key:generate
node craft generate
node craft db:migrate
node craft dev
node craft help
my-app/
├── craft/
├── src/
│ ├── apidocs/
│ ├── config/
│ ├── controllers/
│ ├── middleware/
│ ├── repositories/
│ ├── dtos/
│ ├── routes/
│ └── services/
│ └── types/
│ └── utils/
│ └── validations/
│ └── main.ts
├── test/
├── logs/
├── docker-compose.yml
├── Dockerfile
├── .env
├── .env.example
├── prisma/
├── .gitignore
├── babel.config.json
├── craft.js
├── nodemon.json
├── package.json
├── package-lock.json
└── tsconfig.json
Command | Description |
---|---|
craft start | Start production server |
craft dev | Run in development mode |
craft build | Build for production |
craft test | Run Jest tests |
craft db:generate | Generate Prisma client |
craft db:migrate | Run Prisma migrations |
craft db:reset | Run Prisma migrations refresh |
craft key:generate | Generate secret keys |
craft make:controller | Make Controller File |
craft make:command | Make Command File |
craft make:middleware | Make Middleware File |
craft make:repository | Make repository File |
craft make:dto | Make Data Transfer Object File |
craft make:route | Make Route File |
craft make:service | Make Service File |
craft make:test | Make Test case |
craft make:utils | Make Utils |
craft make:validation | Make Validation |
craft make:view | Make View |
Made by @muhammadisa-n
FAQs
A starter kit backend framework powered by Express, TypeScript, EJS Engine, and Prisma — designed for rapid development, simplicity, and scalability.
We found that create-craftjs demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
Research
/Security News
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.
Security News
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.