Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

create-replicate

Package Overview
Dependencies
Maintainers
3
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

create-replicate

Generate a simple Node.js project structure for running AI models with Replicate's API

  • 1.7.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
56
increased by75%
Maintainers
3
Weekly downloads
 
Created
Source

create-replicate

⚡️🐢⚡️ Generate a simple Node.js project structure for running AI models with Replicate.

What it does:

  • Creates a directory for your project
  • Lets you specify any public model as a starting point, or defaults to stability-ai/sdxl
  • Adds a package.json file with necessary dependencies like the replicate npm package.
  • Runs npm install
  • Adds a .env file and helps you add your Replicate API token
  • Gitignores the .env file so you keep your secrets out of source control
  • Runs your app with a simple example input

Usage

Make sure you have Node.js 18 or greater installed, then run:

npm create replicate

You can specify an optional name for your project:

npm create replicate foo

You can also specify which model you want to use as a starting point. The latest version of the model will be used:

npm create replicate my-image-interrogator --model=yorickvp/llava-13b

You can also specify a version of the model you want to use:

npm create replicate my-image-interrogator --model=yorickvp/llava-13b:2cfef05a8e8e648f6e92ddb53fa21a81c04ab2c4f1390a6528cc4e331d608df8

FAQs

Package last updated on 09 Feb 2024

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc