{"id":16762452,"url":"https://github.com/tlack/stex","last_synced_at":"2025-03-16T10:21:21.222Z","repository":{"id":7143142,"uuid":"8440540","full_name":"tlack/stex","owner":"tlack","description":"Static site generator for Express.js apps","archived":false,"fork":false,"pushed_at":"2013-02-27T18:57:18.000Z","size":112,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-04-14T02:18:42.676Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/tlack.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-02-26T19:51:55.000Z","updated_at":"2014-10-08T11:37:37.000Z","dependencies_parsed_at":"2022-09-18T09:01:23.982Z","dependency_job_id":null,"html_url":"https://github.com/tlack/stex","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tlack%2Fstex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tlack%2Fstex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tlack%2Fstex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tlack%2Fstex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tlack","download_url":"https://codeload.github.com/tlack/stex/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243853623,"owners_count":20358451,"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-10-13T04:44:47.295Z","updated_at":"2025-03-16T10:21:21.151Z","avatar_url":"https://github.com/tlack.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Stex: Static sites from Express apps\n====================================\n\n*Note:* This is very alpha. Mirror mode works but build mode is still lacking\nsome big parts. Proceed with caution.\n\nStex is a static site generator tht works with *existing* Express apps, by\nlooking at the routes you have defined and building static versions of each\npage.\n\nIt operates in two different modes:\n\n- `online`/`mirror` mode: produce a static page for each URL that is requested\n\tthrough the app; think of it as \"live spidering\" your site as users user it.\n\n- `offline`/`build` mode: given a list of possible pages (basically, URL\n\tparameter values mapped against the routes defined), build out all possible\n\tstatic pages. As of v0.0.1 this mode is not complete.\n\nWhy another static site generator?\n----------------------------------\n\nThere are a million great static site generators for Node.js out there.\nUnfortunately, they all seem to share one glaring fault: they're all\nframeworks, meaning you have to build your site *around* the product rather\nthan just *including* the library and using it.\n\nI wanted a simple solution that you could drop in to an existing Express app in\na couple of hours and easily configure.\n\nExamples\n--------\n\nSee `examples/stupid-content-management` for an example of a braindead content\nmanagement system which works seamlessly as a static site generator as well.\n\nLimitations\n-----------\n\n- Not safe to use when the page output includes personal data. In the future\n\tperhaps we could turn off online mode when certain cookies are set, etc.\n\n- Mostly useful for GET routes (this is configurable; see the `methods` option)\n\n- Requires an annoying/agonizing list of URL parameters for offline build mode\n\t(i.e., all valid user IDs or blog post slugs that may wind up in URLs).\n\tLuckily these are usually trivially available in your database somewhere if\n\tyou care to look. \n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftlack%2Fstex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftlack%2Fstex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftlack%2Fstex/lists"}