{"id":13895746,"url":"https://github.com/leafo/lapis-console","last_synced_at":"2025-05-12T20:39:53.915Z","repository":{"id":7507928,"uuid":"8858020","full_name":"leafo/lapis-console","owner":"leafo","description":"Interactive console for working with Lapis","archived":false,"fork":false,"pushed_at":"2021-01-25T16:55:07.000Z","size":228,"stargazers_count":43,"open_issues_count":5,"forks_count":8,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-01T03:13:25.277Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/leafo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-03-18T16:03:34.000Z","updated_at":"2025-02-07T23:55:12.000Z","dependencies_parsed_at":"2022-06-29T13:01:30.011Z","dependency_job_id":null,"html_url":"https://github.com/leafo/lapis-console","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leafo%2Flapis-console","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leafo%2Flapis-console/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leafo%2Flapis-console/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leafo%2Flapis-console/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leafo","download_url":"https://codeload.github.com/leafo/lapis-console/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249933552,"owners_count":21347698,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-06T18:02:26.605Z","updated_at":"2025-04-20T17:33:19.339Z","avatar_url":"https://github.com/leafo.png","language":"Lua","funding_links":[],"categories":["Lua"],"sub_categories":[],"readme":"# Lapis Console\n\nAn interactive console for the [Lapis][1] web framework.\n\n```moonscript\n-- app.moon\nlapis = require \"lapis\"\nconsole = require \"lapis.console\"\n\nclass extends lapis.Application\n  \"/console\": console.make!\n```\n\n```bash\n$ lapis server development\n```\n\nHit \u003chttp://localhost:8080/console\u003e\n\n![Screenshot](http://leafo.net/dump/lapis_console.png)\n\n## Tips\n\nEach command executes on the server. The `print` function has been overwritten\nto print to the browser. It has also been enhanced, you can print tables and\nget an interactive version that you can open and close in the browser. Just\nclick on the bold `{ ... }` to open the table up.\n\nAny SQL queries that take place when running the code you submit will also be\ncaptured and printed as part of the result.\n\nThe input field is a full multi-line text editor. You can write an entire\nprogram in it.\n\nThe code that runs is not restricted in any way. If you run `while true` it\nwill run forever. If someone malicious gets access to it then they can do\ndamage to you system.\n\nThe console is only accessible in the `\"development\"` environment. It will\nreturn a 404 if accessed in any other environment. You can bypass this protection\nby passing `{env = \"all\"}` as the first argument of `make_console`.\n\n## Building\n\nUses [Tup][2], the build system.\n\n```bash\n$ tup init\n$ tup upd\n```\n\nOn UNIX or Linux systems, you might need to remove the `.lua` source\nfiles first to get `tup` to build properly:\n\n```bash\n$ find . -name \"*.lua\" -exec rm {} \\;\n```\n\n# Contact\n\nAuthor: Leaf Corcoran (leafo) ([@moonscript](http://twitter.com/moonscript))  \nEmail: leafot@gmail.com  \nHomepage: \u003chttp://leafo.net\u003e  \nLicense: MIT\n\n# License\n\nLapis Console includes the following libraries:\n\n```\njQuery v1.9.1 | (c) 2005, 2012 jQuery Foundation, Inc. | jquery.org/license\n```\n\n```\nCodeMirror 3.1 Copyright (C) 2013 by Marijn Haverbeke \u003cmarijnh@gmail.com\u003e\n```\n\n  [1]: https://github.com/leafo/lapis\n  [2]: http://gittup.org/tup/\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleafo%2Flapis-console","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleafo%2Flapis-console","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleafo%2Flapis-console/lists"}