Thanks to visit codestin.com
Credit goes to github.com

Skip to content

chann44/prme

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

14 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

 โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•— โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•— โ–ˆโ–ˆโ–ˆโ•—   โ–ˆโ–ˆโ–ˆโ•—โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•—
 โ–ˆโ–ˆโ•”โ•โ•โ–ˆโ–ˆโ•—โ–ˆโ–ˆโ•”โ•โ•โ–ˆโ–ˆโ•—โ–ˆโ–ˆโ–ˆโ–ˆโ•— โ–ˆโ–ˆโ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•”โ•โ•โ•โ•โ•
 โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•”โ•โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•”โ•โ–ˆโ–ˆโ•”โ–ˆโ–ˆโ–ˆโ–ˆโ•”โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•—  
 โ–ˆโ–ˆโ•”โ•โ•โ•โ• โ–ˆโ–ˆโ•”โ•โ•โ–ˆโ–ˆโ•—โ–ˆโ–ˆโ•‘โ•šโ–ˆโ–ˆโ•”โ•โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•”โ•โ•โ•  
 โ–ˆโ–ˆโ•‘     โ–ˆโ–ˆโ•‘  โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•‘ โ•šโ•โ• โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•—
 โ•šโ•โ•     โ•šโ•โ•  โ•šโ•โ•โ•šโ•โ•     โ•šโ•โ•โ•šโ•โ•โ•โ•โ•โ•โ•

๐Ÿš€ Prme

A lightning-fast CLI tool to bootstrap your next project with curated starter templates

Go Version License Go Report Card PRs Welcome


๐Ÿ“– Overview

Prme is an interactive terminal-based project generator that helps developers quickly start new projects with pre-configured templates. Choose your language, select your project type, pick a template, and you're ready to code!

Built with Bubble Tea for a delightful terminal UI experience.

โœจ Features

  • ๐ŸŽจ Interactive TUI - Beautiful terminal interface powered by Bubble Tea
  • โšก Fast Setup - Clone and start coding in seconds
  • ๐Ÿ”ง Multiple Languages - Support for TypeScript, Python, Go, and more
  • ๐ŸŽฏ Project Types - Web apps, CLI tools, and other project types
  • ๐Ÿ“ฆ Curated Templates - Hand-picked starter templates with best practices
  • ๐Ÿ› ๏ธ Extensible - Easy to add your own custom templates

๐Ÿš€ Installation

Quick Install (macOS/Linux) - Recommended

Install with a single command:

curl -fsSL https://raw.githubusercontent.com/chann44/homebrew-prme/main/install.sh | sh

Or if you prefer to review the script first:

curl -fsSL https://raw.githubusercontent.com/chann44/homebrew-prme/main/install.sh -o install.sh
chmod +x install.sh
./install.sh

Homebrew (macOS/Linux)

brew tap chann44/prme
brew install prime

Download Pre-built Binaries

Download the latest binary for your platform from the releases page:

  • macOS (Apple Silicon): prime_*_Darwin_arm64.tar.gz
  • macOS (Intel): prime_*_Darwin_x86_64.tar.gz
  • Linux (64-bit): prime_*_Linux_x86_64.tar.gz
  • Windows (64-bit): prime_*_Windows_x86_64.zip

Extract and move to your PATH:

# macOS/Linux
tar -xzf prime_*.tar.gz
sudo mv prime /usr/local/bin/

# Windows
# Extract the zip and add prime.exe to your PATH

Install from source

Make sure you have Go 1.21+ installed.

go install github.com/chann44/prme@latest

Build locally

# Clone the repository
git clone https://github.com/chann44/prme.git
cd prime

# Build the binary
go build -o prime cmd/main.go

# Optional: Move to your PATH
sudo mv prime /usr/local/bin/

๐Ÿ’ป Usage

Simply run the command and follow the interactive prompts:

prime

The CLI will guide you through:

  1. Select a language - Choose from TypeScript, Python, Go, etc.
  2. Choose project type - Web app or CLI tool
  3. Pick a template - Select from available starter templates
  4. Enter project name - Name your new project
  5. Done! - Your project is cloned and ready to go

Example

$ prime

? Select a language: TypeScript
? Choose project type: web_app
? Select a template: Next.js + Prisma + PostgreSQL
? Enter project name: my-awesome-app

โœ“ Cloning template...
โœ“ Project created successfully!

cd my-awesome-app && npm install

๐Ÿ“š Available Templates

TypeScript

Web Apps

  • Next.js + Prisma + PostgreSQL
  • Next.js + Prisma + MySQL
  • Next.js + Prisma + MongoDB

CLI

  • TypeScript CLI Starter

Python

Web Apps

  • FastAPI + SQLAlchemy + PostgreSQL
  • FastAPI + SQLAlchemy + MySQL
  • FastAPI + SQLAlchemy + MongoDB

CLI

  • Python CLI Starter

Go

Web Apps

  • Fiber + GORM

CLI

  • Cobra CLI Starter

๐Ÿ”ง Configuration

Templates are defined in templates/templs.yml. You can easily add your own templates:

your_language:
  web_app:
    - name: Your Template Name
      repo: https://github.com/username/your-template
  cli:
    - name: Your CLI Template
      repo: https://github.com/username/your-cli-template

๐Ÿ—๏ธ Project Structure

prime/
โ”œโ”€โ”€ cmd/
โ”‚   โ””โ”€โ”€ main.go           # Entry point
โ”œโ”€โ”€ internals/
โ”‚   โ”œโ”€โ”€ clone.go          # Git cloning logic
โ”‚   โ””โ”€โ”€ options.go        # Template selection logic
โ”œโ”€โ”€ templates/
โ”‚   โ”œโ”€โ”€ template.go       # Template parsing
โ”‚   โ””โ”€โ”€ templs.yml        # Template definitions
โ”œโ”€โ”€ ui/
โ”‚   โ”œโ”€โ”€ modal.go          # UI components
โ”‚   โ””โ”€โ”€ view.go           # UI views
โ””โ”€โ”€ go.mod

๐Ÿค Contributing

Contributions are welcome! Here's how you can help:

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

Adding New Templates

To add a new template:

  1. Add your template repository to templates/templs.yml
  2. Ensure the repository is publicly accessible
  3. Test the template cloning works correctly
  4. Submit a PR with your addition

๐Ÿ“ License

This project is licensed under the MIT License - see the LICENSE file for details.

๐Ÿ™ Acknowledgments

  • Bubble Tea - For the amazing TUI framework
  • All template maintainers for their excellent starter projects

๐Ÿ“ฎ Contact

Author: @chann44

Project Link: https://github.com/chann44/prme


If you find this project helpful, please consider giving it a โญ!

Made with โค๏ธ by chann44

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors