{"openapi":"3.0.0","info":{"title":"Pterocos","description":"Welcome to the official docs of pterocos.eu.org. \nAbout Pterocos,\nPterocos is a Free Online Code Editor for Python, Rust, PHP, SQL, Java, C#, Ruby, Lua \u0026 More\n\nOpen-source, browser-based code editor that supports 10+ programming languages including Python, Rust, PHP, SQL (SQLite \u0026 DuckDB), Java, C#, Ruby, Lua, and frontend tools like HTML/CSS/JS with SCSS and TypeScript support. Powered by the Monaco Editor (the engine behind VS Code), it features syntax highlighting, intelligent autocomplete, and a built-in AI assistant for debugging and code generation.\n\nPerfect for developers, students, and educators who need a fast, secure, and accessible online code editor for testing snippets, prototyping ideas, or sharing runnable examples with teammates. Whether you're debugging a Python script, testing a Rust function, or prototyping an SQL query, Pterocos makes coding frictionless.\n\nAvailable at https://pterocos.eu.org\n","version":"1.0.0","contact":{"name":"Amine KHD","url":"https://github.com/aminkheddache-dotcom/Pterocos"},"license":{"name":"Apache 2.0","url":"https://www.apache.org/licenses/LICENSE-2.0"}},"servers":[{"url":"https://pterocos.eu.org","description":"Live demo of Pterocos"}],"tags":[{"name":"Getting started","description":"Getting started with Pterocos"},{"name":"AI for coding","description":"AI coding assistance"},{"name":"Preprocessors","description":"HTML CSS Javascript Preprocessors"},{"name":"FAQ","description":"Frequently Asked Questions"},{"name":".JC files","description":"Learn about .JC files"},{"name":"Contact the Maintainer","description":"Get in touch with the maintainer"}],"paths":{"/how-to-start":{"get":{"summary":"How to start","description":"Welcome to Pterocos! To start using the editor:\n1. Open your browser and go to https://pterocos.eu.org\n2. Select the language you want to code with or just click [Start Coding] button on topbar.\n3. You'll find yourself at https://pterocos.eu.org/?page_id=15\n4. Start your journey by creating your first folder name it anything you want.\n5. Open the folder you've created\n6. Create your first File select the lang you want PHP, Lua or anything \n7. Done. you can start coding\n\nNo signup, no installation, just code instantly.\n","tags":["Getting started"]}},"/create-file":{"get":{"summary":"How do I create a file","description":"To create a new file in Pterocos:\n1. Inside the code editor https://pterocos.eu.org/?page_id=15 after choosing the folder you want\n2. you'll find yourself at a area asks you to create a file\n3. Create [+ New File] there please select file name and the lang you want. (php or anything)\n4. Create file and done. open it and start coding\n","tags":["Getting started"]}},"/create-folder":{"get":{"summary":"How do I create a folder","description":"To create a folder in Pterocos:\n1. Go to https://pterocos.eu.org/?page_id=15\n2. Click on [+ New Folder] button\n3. Choose a name for the folder\n4. Click Create button and done.\n","tags":["Getting started"]}},"/how-to-use-ai":{"get":{"summary":"How to use AI for coding","description":"Pterocos includes an AI assistant to help you code:\n1. Go to your editor (on the code editor of each lang - inside editor)\n2. Click on (Use AI Builder) on sidebar\n3. After that the ai chat will appear, it'll ask you to complete a captcha \n4. After succcessfully settings up the captcha you can use the AI\n","tags":["AI for coding"]}},"/getting-help":{"get":{"summary":"Getting help","description":"Need help? Here's how to get assistance:\nUse the built-in AI chat for instant help with code.\n1. Go to your editor (on the code editor of each lang - inside editor)\n2. Click on (Use AI Builder) on sidebar\n3. After that the ai chat will appear, it'll ask you to complete a captcha \n4. After succcessfully settings up the captcha you can use the AI\n","tags":["AI for coding"]}},"/use-own-api":{"get":{"summary":"I want to use my own API for the AI","description":"How to use your own AI API on Pterocos:\n\nFollow these steps to configure your own AI API:\n\n1. Go to the inside coding editor of each language (PHP, Python, Rust, etc.).\n2. Click on \"Use my own AI API\" on the sidebar.\n3. Configure it (enter your API key and endpoint).\n4. Click \"Save \u0026 use my API\" button and done.\n\n**Privacy Note:** Pterocos does not store your AI API data on its servers. Your API key is hidden and stored securely in your browser's local storage. Only you have access to it, and it is never sent to Pterocos servers.\n\nYou can now use your own AI API for code assistance.\n","tags":["AI for coding"]}},"/change-preprocessors":{"get":{"summary":"How to change HTML CSS Javascript Preprocessors","description":"Pterocos supports preprocessors for HTML, CSS, and JavaScript:\nTwo methods:\nMethod 1: Outside the code editor from the file creation area, \n1. Click on [+ New File] button\n2. Select (HTML CSS JS) \n3. Click on [Configuration] button.\n4. Choose the preprocessors you want.\n\nMethod 2: Inside the Editor\n1. Click on the gear button ⚙️ (you'll find it inside the editor cards on html, css or js)\n2. Choose the preprocessor you want to change to\n3. Save and done. \n","tags":["Preprocessors"]}},"/general-questions":{"get":{"summary":"General Questions","description":"**Frequently Asked Questions**\n\n**Q: Is Pterocos free to use?**\nA: Yes, Pterocos is completely free and open-source under the Apache 2.0 license.\n\n**Q: Do I need to create an account?**\nA: No, you can use Pterocos without signup or installation.\n\n**Q: What languages does Pterocos support?**\nA: PHP, Python, Rust, C#, SQL, HTML/CSS/JS, Lua, Ruby, Java, C++, C(.net) JSON, and More\n\n**Q: Can I save my projects?**\nA: Yes, you can save.\n\n**Q: Where can I report a bug?**\nA: Please report issues on our GitHub repository.\n\n(You can add more Q\u0026A here.)\n","tags":["FAQ"]}},"/what-is-jc":{"get":{"summary":"What is it?","description":"**What are .JC Files?**\n\n.JC files work like a zip for files. Pterocos allows multiple coding language files inside it. From the same language, making it very good for complex tasks and construction. It collects all your selected language codes into one convenient file.\n\n**Benefits:**\n- **Organization:** Keep related code files together.\n- **Complex Tasks:** Manage multi-file projects easily.\n- **Construction:** Build and share complete code projects.\n","tags":[".JC files"]}},"/contact":{"get":{"summary":"Contact","description":"**Contact the Maintainer**\n\nIf you have any questions, suggestions, or need support, feel free to reach out:\n\n**Email:** lackhosting@gmail.com\n\nYou can also open an issue on our GitHub repository:\nhttps://github.com/aminkheddache-dotcom/Pterocos\n","tags":["Contact the Maintainer"]}}}}