Documentation
v1.2.0

ForSure Documentation

A prompting programming language for describing and documenting file structures in a clear and concise manner.

Getting Started

Learn the basics and get up and running with ForSure quickly.

Prompting Syntax

Comprehensive guide to ForSure prompting syntax and features.

CLI & Web App

Learn how to use the ForSure CLI and web application.

Neural Network

Learn about ForSure's AI capabilities that adapt to your coding style.

Introduction

ForSure is a prompting programming language designed to simplify projects by using a flat-file-like structured language/compiler/cli/converter system. It allows you to describe and document file structures in a clear and concise manner, similar to how you would write a Dockerfile for a container.

ForSure uses a simple, human-readable prompting syntax to represent directories, files, and their relationships, making it easy to understand and maintain project structures. Available as both a CLI tool and web application.

Why ForSure?

ForSure was created to solve the problem of documenting and sharing project structures in a standardized way. As a prompting programming language, it helps teams maintain consistency across projects and makes onboarding new developers easier.

Interactive Demo

Try ForSure's prompting language right in your browser. Edit the code below and see the generated file structure.

Interactive ForSure Demo

Edit the ForSure code and see the generated file structure

Key Features

Prompting Language

A powerful prompting programming language that mimics the natural file system's hierarchy for intuitive organization.

Comments and Annotations

Offers inline commenting and metadata association for better documentation.

CLI Tool

Powerful command-line interface for generating and managing project structures from ForSure prompts.

Web Application

Intuitive web interface for creating, managing, and sharing project structures without installing anything.

@import Directives

Facilitates file inclusion for reusable structures across projects.

AI-Enhanced

Leverages artificial intelligence to optimize and enhance your project structures.

Basic Example

Here's a basic example of what a .forsure file looks like:

basic-example.forsure
forsure
root: # Main source code directory - src: - main.js { entry: true } - utils: # Utility scripts - helpers.js - date.js { timezone: "UTC" } # Assets for front-end design - assets: - logo.svg - css: # Style sheets - theme.css # Documentation file - README.md

The example above shows how ForSure's prompting language represents a simple project structure with directories, files, comments, and attributes.

Getting Started

To start using ForSure, follow these steps:

1

Install ForSure

Clone the repository or install via npm to get started with ForSure.

bash
# Install the CLI npm install -g forsure-cli # Or clone the repository git clone https://github.com/elicharlese/ForSure.git cd ForSure
2

Create your first ForSure file

Create a new .forsure file using our prompting language in any text editor.

my-first-project.forsure
forsure
root: - src: - index.js - README.md
3

Generate the file structure

Use the ForSure CLI or web app to generate the file structure from your .forsure file.

bash
forsure generate my-first-project.forsure --output ./my-project
4

Learn the prompting syntax

Explore the ForSure prompting syntax to create more complex file structures.

Was this page helpful?