
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
create-honc-app
Advanced tools
An interactive CLI to create modular typesafe data APIs using TypeScript
Scaffolding CLI for creating modular data APIs using TypeScript
npm create honc-app@latest
HONC is a modular collection of choice technologies for building lightweight, type-safe, edge-enabled data apis that scale seamlessly to their demand.
🪿 Hono as an api framework
🪿 Neon for a relational Postgres database
🪿 Drizzle as the ORM and migrations manager
🪿 Cloudflare Workers for deployment hosting
📚 For more examples and templates, check out the Awesome Honc repository.
To get started run the following command:
npm create honc-app@latest
You'll be prompted a few simple questions, and then a fresh HONC project will arrive in a new directory on your machine.
Run the development server:
npm run dev
Once you've set up a Neon database (see below) and added the connection string to a DATABASE_URL=..
in dev.vars
, you can generate some migrations, apply them, and seed the database:
npm run db:generate
npm run db:migrate
npm run db:seed
If you're inclined to deploy the app to the wild wild internet, you can do so as follows (requires a Cloudflare account):
npm run deploy
Create a Neon account and project, retrieve the connection key from the dashboard, and add it to your dev.vars
file.
Alternatively, you can use the Neon CLI to create a project and set the context:
# Authenticate with neon cli
neonctl auth
# Create project if you haven't already
#
# > *skip this* if you already created a project,
# > and grab the DATABASE_URL from your dashboard
PROJECT_NAME=my-project
neonctl projects create --name $PROJECT_NAME --set-context
# Set project id because the call to `set-context` below needs it
PROJECT_ID=$(neonctl projects list --output=json | jq --arg name "$PROJECT_NAME" '.projects[] | select(.name == $name) | .id')
# Create a `dev` db branch then set context
BRANCH_NAME=dev
neonctl branches create --name=$BRANCH_NAME
neonctl set-context --project-id=$PROJECT_ID --branch=$BRANCH_NAME
# Finally, add connection string to .dev.vars
DATABASE_URL=$(neonctl connection-string)
echo -e '\nDATABASE_URL='$DATABASE_URL'\n' >> .dev.vars
This will create a .neon
file, which is used by the neonctl
command to know the proper context for running commands.
This file can be kept in version control. From the Neon docs:
Neon does not save any confidential information to the context file (for example, auth tokens). You can safely commit this file to your repository or share with others.
See the examples folder for some sample APIs.
We have an Awesome HONC repository with further guides, use cases and examples.
FAQs
An interactive CLI to create modular typesafe data APIs using TypeScript
The npm package create-honc-app receives a total of 3 weekly downloads. As such, create-honc-app popularity was classified as not popular.
We found that create-honc-app demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers 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.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.